diff --git a/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk b/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk index f712c3c..ce7b043 100644 --- a/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk +++ b/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk @@ -20,9 +20,10 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/ LOCAL_PRELINK_MODULE := false +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_USES_MFC_FPS),true) -LOCAL_CFLAGS := -DCONFIG_MFC_FPS +LOCAL_CFLAGS += -DCONFIG_MFC_FPS #LOCAL_CFLAGS += -DCONFIG_MFC_PERF_ALOG endif @@ -58,9 +59,10 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/ LOCAL_PRELINK_MODULE := false +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_USES_MFC_FPS),true) -LOCAL_CFLAGS := -DCONFIG_MFC_FPS +LOCAL_CFLAGS += -DCONFIG_MFC_FPS #LOCAL_CFLAGS += -DCONFIG_MFC_PERF_ALOG endif @@ -96,9 +98,10 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/ LOCAL_PRELINK_MODULE := false +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_USES_MFC_FPS),true) -LOCAL_CFLAGS := -DCONFIG_MFC_FPS +LOCAL_CFLAGS += -DCONFIG_MFC_FPS #LOCAL_CFLAGS += -DCONFIG_MFC_PERF_ALOG endif diff --git a/exynos/multimedia/openmax/component/common/Android.mk b/exynos/multimedia/openmax/component/common/Android.mk index a6f84bf..a423a17 100644 --- a/exynos/multimedia/openmax/component/common/Android.mk +++ b/exynos/multimedia/openmax/component/common/Android.mk @@ -9,7 +9,7 @@ LOCAL_SRC_FILES := \ LOCAL_MODULE := libsecbasecomponent -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error LOCAL_STATIC_LIBRARIES := libsecosal LOCAL_SHARED_LIBRARIES := libcutils libutils @@ -31,7 +31,7 @@ LOCAL_SRC_FILES := \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libSEC_OMX_Resourcemanager -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error LOCAL_STATIC_LIBRARIES := libsecosal LOCAL_SHARED_LIBRARIES := libcutils libutils diff --git a/exynos/multimedia/openmax/component/video/dec/Android.mk b/exynos/multimedia/openmax/component/video/dec/Android.mk index 349be6f..df908ce 100644 --- a/exynos/multimedia/openmax/component/video/dec/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/Android.mk @@ -20,4 +20,6 @@ LOCAL_STATIC_LIBRARIES := libsecosal LOCAL_CFLAGS += -DUSE_ANB endif +LOCAL_CFLAGS += -Wno-error + include $(BUILD_STATIC_LIBRARY) diff --git a/exynos/multimedia/openmax/component/video/dec/h264/Android.mk b/exynos/multimedia/openmax/component/video/dec/h264/Android.mk index dfc782e..d27fdaf 100644 --- a/exynos/multimedia/openmax/component/video/dec/h264/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/h264/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.AVC.Decoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk b/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk index 69f00cb..216b4d0 100644 --- a/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.M4V.Decoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk b/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk index b2c2e82..d830601 100644 --- a/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.WMV.Decoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk b/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk index 4e5cd68..ea45b05 100644 --- a/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.VP8.Decoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/component/video/enc/Android.mk b/exynos/multimedia/openmax/component/video/enc/Android.mk index e13d54d..68a398a 100644 --- a/exynos/multimedia/openmax/component/video/enc/Android.mk +++ b/exynos/multimedia/openmax/component/video/enc/Android.mk @@ -24,4 +24,6 @@ ifeq ($(BOARD_USE_STOREMETADATA), true) LOCAL_CFLAGS += -DUSE_STOREMETADATA endif +LOCAL_CFLAGS += -Wno-error + include $(BUILD_STATIC_LIBRARY) diff --git a/exynos/multimedia/openmax/component/video/enc/h264/Android.mk b/exynos/multimedia/openmax/component/video/enc/h264/Android.mk index 5f6120e..3fd91e3 100644 --- a/exynos/multimedia/openmax/component/video/enc/h264/Android.mk +++ b/exynos/multimedia/openmax/component/video/enc/h264/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.AVC.Encoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk b/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk index 9a2296d..2b82bdb 100644 --- a/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk +++ b/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk @@ -11,7 +11,7 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.SEC.M4V.Encoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(BOARD_NONBLOCK_MODE_PROCESS), true) LOCAL_CFLAGS += -DNONBLOCK_MODE_PROCESS diff --git a/exynos/multimedia/openmax/core/Android.mk b/exynos/multimedia/openmax/core/Android.mk index 234d438..2e3200d 100644 --- a/exynos/multimedia/openmax/core/Android.mk +++ b/exynos/multimedia/openmax/core/Android.mk @@ -9,7 +9,7 @@ LOCAL_SRC_FILES := SEC_OMX_Component_Register.c \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libSEC_OMX_Core -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error LOCAL_ARM_MODE := arm diff --git a/exynos/multimedia/openmax/osal/Android.mk b/exynos/multimedia/openmax/osal/Android.mk index d3bee54..c571212 100644 --- a/exynos/multimedia/openmax/osal/Android.mk +++ b/exynos/multimedia/openmax/osal/Android.mk @@ -18,7 +18,7 @@ LOCAL_SRC_FILES := \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libsecosal -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(TARGET_NEEDS_EXYNOS4_ENHANCEMENTS),true) LOCAL_CFLAGS += -DEXYNOS4_ENHANCEMENTS diff --git a/exynos/multimedia/utils/csc/exynos4/Android.mk b/exynos/multimedia/utils/csc/exynos4/Android.mk index 8609819..db9e6d1 100644 --- a/exynos/multimedia/utils/csc/exynos4/Android.mk +++ b/exynos/multimedia/utils/csc/exynos4/Android.mk @@ -28,6 +28,7 @@ LOCAL_C_INCLUDES := \ ifeq ($(BOARD_USE_SAMSUNG_COLORFORMAT), true) LOCAL_CFLAGS += -DUSE_SAMSUNG_COLORFORMAT endif +LOCAL_CFLAGS += -Wno-error LOCAL_MODULE := libseccscapi diff --git a/exynos/multimedia/utils/csc/exynos4/color_space_convertor.c b/exynos/multimedia/utils/csc/exynos4/color_space_convertor.c index 0385718..8ead43d 100644 --- a/exynos/multimedia/utils/csc/exynos4/color_space_convertor.c +++ b/exynos/multimedia/utils/csc/exynos4/color_space_convertor.c @@ -1564,9 +1564,6 @@ void csc_RGB565_to_YUV420P( unsigned int R, G, B; unsigned int Y, U, V; - unsigned int offset1 = width * height; - unsigned int offset2 = width/2 * height/2; - unsigned short int *pSrc = (unsigned short int *)rgb_src; unsigned char *pDstY = (unsigned char *)y_dst; @@ -1638,8 +1635,6 @@ void csc_RGB565_to_YUV420SP( unsigned int R, G, B; unsigned int Y, U, V; - unsigned int offset = width * height; - unsigned short int *pSrc = (unsigned short int *)rgb_src; unsigned char *pDstY = (unsigned char *)y_dst; @@ -1693,8 +1688,6 @@ void csc_ARGB8888_to_YUV420SP( unsigned int R, G, B; unsigned int Y, U, V; - unsigned int offset = width * height; - unsigned int *pSrc = (unsigned int *)rgb_src; unsigned char *pDstY = (unsigned char *)y_dst; @@ -1730,4 +1723,4 @@ void csc_ARGB8888_to_YUV420SP( } } } -} \ No newline at end of file +} diff --git a/exynos4/hal/libUMP/arch_011_udd/ump_arch.c b/exynos4/hal/libUMP/arch_011_udd/ump_arch.c index 314efbc..1e3376d 100644 --- a/exynos4/hal/libUMP/arch_011_udd/ump_arch.c +++ b/exynos4/hal/libUMP/arch_011_udd/ump_arch.c @@ -176,7 +176,7 @@ ump_secure_id ump_arch_ion_import(int ion_fd, unsigned long *size, ump_alloc_con call_arg.size = *size; call_arg.constraints = (ump_uk_alloc_constraints)constraints; - UMP_DEBUG_PRINT(4, ("%s ion_fd=%d size=%x constraints=x", __func__, ion_fd, size, constraints)); + UMP_DEBUG_PRINT(4, ("%s ion_fd=%d size=%lu constraints=%x", __func__, ion_fd, (unsigned long)size, constraints)); if ( _UMP_OSU_ERR_OK != _ump_uku_ion_import(&call_arg) ) { diff --git a/exynos4/hal/libUMP/arch_011_udd/ump_arch.h b/exynos4/hal/libUMP/arch_011_udd/ump_arch.h index f7b109c..95b943f 100644 --- a/exynos4/hal/libUMP/arch_011_udd/ump_arch.h +++ b/exynos4/hal/libUMP/arch_011_udd/ump_arch.h @@ -71,6 +71,7 @@ int ump_arch_lock( ump_secure_id secure_id, ump_lock_usage lock_usage ); /** Unlocking buffer. Let other users lock the buffer for their usage */ int ump_arch_unlock( ump_secure_id secure_id ); +ump_secure_id ump_arch_ion_import(int ion_fd, unsigned long *size, ump_alloc_constraints constraints); #ifdef __cplusplus } diff --git a/exynos4/hal/libfimc/SecFimc.cpp b/exynos4/hal/libfimc/SecFimc.cpp index 16a5733..e31fd8f 100644 --- a/exynos4/hal/libfimc/SecFimc.cpp +++ b/exynos4/hal/libfimc/SecFimc.cpp @@ -181,7 +181,7 @@ void v4l2_overlay_dump_state(int fd) } -int fimc_v4l2_query_buf(int fd, SecBuffer *secBuf, enum v4l2_buf_type type, enum v4l2_memory memory, int buf_index, int num_plane) +int fimc_v4l2_query_buf(int fd, SecBuffer *secBuf, enum v4l2_buf_type type, enum v4l2_memory memory __unused, int buf_index, int num_plane) { struct v4l2_buffer buf; memset(&buf, 0, sizeof(struct v4l2_buffer)); @@ -691,8 +691,6 @@ err : bool SecFimc::destroy() { - s5p_fimc_params_t *params = &(mS5pFimc.params); - if (mFlagCreate == false) { ALOGE("%s::Already Destroyed fail", __func__); return false; @@ -1191,8 +1189,6 @@ bool SecFimc::setDstAddr(unsigned int physYAddr, unsigned int physCbAddr, unsign bool SecFimc::setRotVal(unsigned int rotVal) { - struct v4l2_control vc; - if (mFlagCreate == false) { ALOGE("%s::Not yet created", __func__); return false; @@ -1337,7 +1333,7 @@ bool SecFimc::setColorKey(bool enable, int colorKey) return true; } -bool SecFimc::draw(int src_index, int dst_index) +bool SecFimc::draw(int src_index, int dst_index __unused) { #ifdef DEBUG_LIB_FIMC ALOGD("%s", __func__); @@ -1481,7 +1477,7 @@ bool SecFimc::m_streamOn() } bool SecFimc::m_checkSrcSize(unsigned int width, unsigned int height, - unsigned int cropX, unsigned int cropY, + unsigned int cropX __unused, unsigned int cropY __unused, unsigned int *cropWidth, unsigned int *cropHeight, int colorFormat, bool forceChange) @@ -1531,7 +1527,7 @@ bool SecFimc::m_checkSrcSize(unsigned int width, unsigned int height, } bool SecFimc::m_checkDstSize(unsigned int width, unsigned int height, - unsigned int cropX, unsigned int cropY, + unsigned int cropX __unused, unsigned int cropY __unused, unsigned int *cropWidth, unsigned int *cropHeight, int colorFormat, int rotVal, bool forceChange) { diff --git a/exynos4/hal/libfimg3x/Android.mk b/exynos4/hal/libfimg3x/Android.mk index c60274d..1da84b3 100644 --- a/exynos4/hal/libfimg3x/Android.mk +++ b/exynos4/hal/libfimg3x/Android.mk @@ -17,6 +17,8 @@ LOCAL_MODULE:= libfimg LOCAL_PRELINK_MODULE := false +LOCAL_CFLAGS := -Wno-error + include $(BUILD_SHARED_LIBRARY) endif diff --git a/exynos4/hal/libgralloc_ump/Android.mk b/exynos4/hal/libgralloc_ump/Android.mk index a941602..088fb01 100644 --- a/exynos4/hal/libgralloc_ump/Android.mk +++ b/exynos4/hal/libgralloc_ump/Android.mk @@ -45,6 +45,7 @@ LOCAL_VENDOR_MODULE := true LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -DGRALLOC_32_BITS #LOCAL_CFLAGS+= -DMALI_VSYNC_EVENT_REPORT_ENABLE +LOCAL_CFLAGS += -Wno-error LOCAL_CFLAGS += -DSAMSUNG_EXYNOS LOCAL_CFLAGS += -DSAMSUNG_EXYNOS_CACHE_UMP diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp index d781054..c4a8516 100644 --- a/exynos4/hal/libgralloc_ump/alloc_device.cpp +++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp @@ -523,7 +523,7 @@ static int alloc_device_close(struct hw_device_t *device) return 0; } -int alloc_device_open(hw_module_t const* module, const char* name, hw_device_t** device) +int alloc_device_open(hw_module_t const* module, const char* name __unused, hw_device_t** device) { alloc_device_t *dev; diff --git a/exynos4/hal/libgralloc_ump/framebuffer_device.cpp b/exynos4/hal/libgralloc_ump/framebuffer_device.cpp index 814e668..e1a12ac 100644 --- a/exynos4/hal/libgralloc_ump/framebuffer_device.cpp +++ b/exynos4/hal/libgralloc_ump/framebuffer_device.cpp @@ -85,13 +85,13 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) 0, 0, m->info.xres, m->info.yres, NULL); const size_t offset = hnd->base - m->framebuffer->base; - int interrupt; m->info.activate = FB_ACTIVATE_VBL; m->info.yoffset = offset / m->finfo.line_length; #ifdef STANDARD_LINUX_SCREEN #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) #define S3CFB_SET_VSYNC_INT _IOW('F', 206, unsigned int) + int interrupt; if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) { ALOGE("FBIOPAN_DISPLAY failed"); m->base.unlock(&m->base, buffer); @@ -389,7 +389,7 @@ static int fb_close(struct hw_device_t *device) return 0; } -int compositionComplete(struct framebuffer_device_t* dev) +int compositionComplete(struct framebuffer_device_t* dev __unused) { #ifndef HWC_HWOVERLAY unsigned char pixels[4]; @@ -413,7 +413,7 @@ int compositionComplete(struct framebuffer_device_t* dev) return 0; } -int framebuffer_device_open(hw_module_t const* module, const char* name, hw_device_t** device) +int framebuffer_device_open(hw_module_t const* module, const char* name __unused, hw_device_t** device) { int status = -EINVAL; diff --git a/exynos4/hal/libgralloc_ump/gralloc_module.cpp b/exynos4/hal/libgralloc_ump/gralloc_module.cpp index d32e4c7..22ac17f 100644 --- a/exynos4/hal/libgralloc_ump/gralloc_module.cpp +++ b/exynos4/hal/libgralloc_ump/gralloc_module.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -118,7 +119,7 @@ int release_rect(int secure_id) } #endif -static int gralloc_map(gralloc_module_t const* module, +static int gralloc_map(gralloc_module_t const* module __unused, buffer_handle_t handle, void** vaddr) { private_handle_t* hnd = (private_handle_t*)handle; @@ -161,7 +162,7 @@ static int gralloc_map(gralloc_module_t const* module, return 0; } -static int gralloc_unmap(gralloc_module_t const* module, +static int gralloc_unmap(gralloc_module_t const* module __unused, buffer_handle_t handle) { private_handle_t* hnd = (private_handle_t*)handle; @@ -374,8 +375,9 @@ static int gralloc_unregister_buffer(gralloc_module_t const* module, buffer_hand return 0; } -static int gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, - int usage, int l, int t, int w, int h, void** vaddr) +static int gralloc_lock(gralloc_module_t const* module __unused, buffer_handle_t handle, + int usage, int l __unused, int t __unused, int w __unused, + int h __unused, void** vaddr) { int err = 0; if (private_handle_t::validate(handle) < 0) { diff --git a/exynos4/hal/libhwcomposer/Android.mk b/exynos4/hal/libhwcomposer/Android.mk index 07c4c9a..1265e95 100644 --- a/exynos4/hal/libhwcomposer/Android.mk +++ b/exynos4/hal/libhwcomposer/Android.mk @@ -30,6 +30,7 @@ LOCAL_C_INCLUDES := \ LOCAL_SRC_FILES := SecHWCLog.cpp SecHWCUtils.cpp SecHWC.cpp LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libfimg +LOCAL_CFLAGS += -Wno-error ifeq ($(TARGET_NEEDS_EXYNOS4_ENHANCEMENTS),true) LOCAL_CFLAGS += -DEXYNOS4_ENHANCEMENTS diff --git a/exynos4/hal/libhwcomposer/SecHWC.cpp b/exynos4/hal/libhwcomposer/SecHWC.cpp index 9aac891..28533ed 100644 --- a/exynos4/hal/libhwcomposer/SecHWC.cpp +++ b/exynos4/hal/libhwcomposer/SecHWC.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include diff --git a/exynos4/hal/libhwcomposer/SecHWCUtils.cpp b/exynos4/hal/libhwcomposer/SecHWCUtils.cpp index d210dfd..6792f46 100644 --- a/exynos4/hal/libhwcomposer/SecHWCUtils.cpp +++ b/exynos4/hal/libhwcomposer/SecHWCUtils.cpp @@ -24,6 +24,7 @@ * */ +#include #include "SecHWCUtils.h" #define V4L2_BUF_TYPE_OUTPUT V4L2_BUF_TYPE_VIDEO_OUTPUT #define V4L2_BUF_TYPE_CAPTURE V4L2_BUF_TYPE_VIDEO_CAPTURE @@ -84,9 +85,7 @@ struct yuv_fmt_list yuv_list[] = { int window_open(struct hwc_win_info_t *win, int id) { - int fd = 0; char name[64]; - int vsync = 1; int real_id = id; char const * const device_template = "/dev/graphics/fb%u"; @@ -135,6 +134,8 @@ int window_open(struct hwc_win_info_t *win, int id) } #ifdef ENABLE_FIMD_VSYNC + int vsync = 1; + if (ioctl(win->fd, S3CFB_SET_VSYNC_INT, &vsync) < 0) { SEC_HWC_Log(HWC_LOG_ERROR, "%s::S3CFB_SET_VSYNC_INT fail", __func__); goto error; @@ -461,7 +462,7 @@ int fimc_v4l2_queue(int fd, struct fimc_buf *fimc_buf, enum v4l2_buf_type type, return 0; } -int fimc_v4l2_dequeue(int fd, struct fimc_buf *fimc_buf, enum v4l2_buf_type type) +int fimc_v4l2_dequeue(int fd, struct fimc_buf *fimc_buf __unused, enum v4l2_buf_type type) { struct v4l2_buffer buf; @@ -516,7 +517,7 @@ int fimc_v4l2_S_ctrl(int fd) return 0; } -int fimc_handle_oneshot(int fd, struct fimc_buf *fimc_src_buf, struct fimc_buf *fimc_dst_buf) +int fimc_handle_oneshot(int fd, struct fimc_buf *fimc_src_buf, struct fimc_buf *fimc_dst_buf __unused) { #ifdef CHECK_FPS check_fps(); diff --git a/exynos4/hal/libs5pjpeg/jpeg_api.c b/exynos4/hal/libs5pjpeg/jpeg_api.c index e5247e3..7e9ee50 100644 --- a/exynos4/hal/libs5pjpeg/jpeg_api.c +++ b/exynos4/hal/libs5pjpeg/jpeg_api.c @@ -133,7 +133,7 @@ int api_jpeg_decode_init() return -1; } ALOGV("api_jpeg_decode_init jpeg_ctx->args.mmapped_addr 0x%08x\n", - jpeg_ctx->args.mmapped_addr); + (unsigned int)jpeg_ctx->args.mmapped_addr); #endif /* S5P_VMEM */ return jpeg_ctx->jpeg_fd; @@ -165,12 +165,12 @@ int api_jpeg_encode_init() return -1; } ALOGV("api_jpeg_encode_init jpeg_ctx->args.mmapped_addr 0x%08x\n", - jpeg_ctx->args.mmapped_addr); + (unsigned int)jpeg_ctx->args.mmapped_addr); #endif /* S5P_VMEM */ return jpeg_ctx->jpeg_fd; } -int api_jpeg_decode_deinit(int dev_fd) +int api_jpeg_decode_deinit(int dev_fd __unused) { if (jpeg_ctx->args.mmapped_addr != NULL) munmap(jpeg_ctx->args.mmapped_addr, JPEG_TOTAL_BUF_SIZE); @@ -191,7 +191,7 @@ int api_jpeg_decode_deinit(int dev_fd) return JPEG_OK; } -int api_jpeg_encode_deinit(int dev_fd) +int api_jpeg_encode_deinit(int dev_fd __unused) { if (jpeg_ctx->args.mmapped_addr != NULL) munmap(jpeg_ctx->args.mmapped_addr, JPEG_TOTAL_BUF_SIZE); @@ -211,7 +211,7 @@ int api_jpeg_encode_deinit(int dev_fd) return JPEG_OK; } -void *api_jpeg_get_decode_in_buf(int dev_fd, unsigned int size) +void *api_jpeg_get_decode_in_buf(int dev_fd __unused, unsigned int size) { if (size < 0 || size > MAX_JPEG_RES) { ALOGE("Invalid decode input buffer size\r\n"); @@ -231,7 +231,7 @@ void *api_jpeg_get_decode_in_buf(int dev_fd, unsigned int size) return (void *)(jpeg_ctx->args.in_buf); } -void *api_jpeg_get_encode_in_buf(int dev_fd, unsigned int size) +void *api_jpeg_get_encode_in_buf(int dev_fd __unused, unsigned int size) { #ifdef S5P_VMEM jpeg_ctx->args.in_cookie = (unsigned int)ioctl(jpeg_ctx->jpeg_fd, @@ -247,12 +247,12 @@ void *api_jpeg_get_encode_in_buf(int dev_fd, unsigned int size) #endif ALOGV("api_jpeg_get_encode_in_buf: 0x%x\n", - jpeg_ctx->args.in_buf); + (unsigned int)jpeg_ctx->args.in_buf); return (void *)(jpeg_ctx->args.in_buf); } -void *api_jpeg_get_decode_out_buf(int dev_fd) +void *api_jpeg_get_decode_out_buf(int dev_fd __unused) { #ifdef S5P_VMEM jpeg_ctx->args.out_cookie = (unsigned int)ioctl(jpeg_ctx->jpeg_fd, @@ -272,7 +272,7 @@ void *api_jpeg_get_decode_out_buf(int dev_fd) return (void *)(jpeg_ctx->args.out_buf); } -void *api_jpeg_get_encode_out_buf(int dev_fd) +void *api_jpeg_get_encode_out_buf(int dev_fd __unused) { #ifdef S5P_VMEM jpeg_ctx->args.out_cookie = (unsigned int)ioctl(jpeg_ctx->jpeg_fd, @@ -287,7 +287,7 @@ void *api_jpeg_get_encode_out_buf(int dev_fd) #endif /* S5P_VMEM */ ALOGV("api_jpeg_get_encode_out_buf: 0x%x\n", - jpeg_ctx->args.out_buf); + (unsigned int)jpeg_ctx->args.out_buf); return (void *)(jpeg_ctx->args.out_buf); } @@ -304,7 +304,7 @@ void api_jpeg_set_encode_param(struct jpeg_enc_param *param) ioctl(jpeg_ctx->jpeg_fd, IOCTL_SET_ENC_PARAM, jpeg_ctx->args.enc_param); } -enum jpeg_ret_type api_jpeg_decode_exe(int dev_fd, +enum jpeg_ret_type api_jpeg_decode_exe(int dev_fd __unused, struct jpeg_dec_param *dec_param) { struct jpeg_args *arg; @@ -326,7 +326,7 @@ enum jpeg_ret_type api_jpeg_decode_exe(int dev_fd, return JPEG_DECODE_OK; } -enum jpeg_ret_type api_jpeg_encode_exe(int dev_fd, +enum jpeg_ret_type api_jpeg_encode_exe(int dev_fd __unused, struct jpeg_enc_param *enc_param) { struct jpeg_args *arg; diff --git a/exynos4/interfaces/gralloc/Android.bp b/exynos4/interfaces/gralloc/Android.bp index c99c6e0..69009de 100644 --- a/exynos4/interfaces/gralloc/Android.bp +++ b/exynos4/interfaces/gralloc/Android.bp @@ -27,7 +27,7 @@ cc_library_static { defaults: ["hidl_defaults"], srcs: ["gralloc1-adapter.cpp", "Gralloc1On0Adapter.cpp"], include_dirs: ["system/core/libsync/include"], - cflags: ["-Wall", "-Wextra"], + cflags: ["-Wall", "-Wextra", "-Wno-error"], export_include_dirs: ["."], whole_static_libs: ["libgrallocusage"], } diff --git a/liblights/lights.c b/liblights/lights.c index 875cf65..92034ea 100644 --- a/liblights/lights.c +++ b/liblights/lights.c @@ -178,7 +178,6 @@ static int write_leds(const struct led_config *led) char blink[32]; int count, err; - int color; if (led == NULL) led = &led_off; diff --git a/ril/libril/Android.mk b/ril/libril/Android.mk index eb23fd1..c6fe9de 100644 --- a/ril/libril/Android.mk +++ b/ril/libril/Android.mk @@ -29,7 +29,7 @@ LOCAL_SHARED_LIBRARIES := \ LOCAL_STATIC_LIBRARIES := \ libprotobuf-c-nano-enable_malloc \ -LOCAL_CFLAGS += -Wno-unused-parameter +LOCAL_CFLAGS += -Wno-unused-parameter -Wno-error ifeq ($(SIM_COUNT), 2) LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1 diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp index 2f7b574..e7a98d8 100644 --- a/ril/libril/ril_service.cpp +++ b/ril/libril/ril_service.cpp @@ -1428,7 +1428,6 @@ Return RadioImpl::writeSmsToSim(int32_t serial, const SmsWriteArgs& smsWri RIL_SMS_WriteArgs args; args.status = (int) smsWriteArgs.status; - int len; if (!copyHidlStringToRil(&args.pdu, smsWriteArgs.pdu, pRI)) { return Void(); } @@ -2328,7 +2327,6 @@ Return RadioImpl::requestIccSimAuthentication(int32_t serial, int32_t auth pf.authContext = authContext; - int len; if (!copyHidlStringToRil(&pf.authData, authData, pRI)) { return Void(); } @@ -4329,7 +4327,6 @@ int radio::getNetworkSelectionModeResponse(int slotId, RadioResponseInfo responseInfo = {}; populateResponseInfo(responseInfo, serial, responseType, e); bool manual = false; - int serviceClass; if (response == NULL || responseLen % sizeof(int) != 0) { RLOGE("getNetworkSelectionModeResponse Invalid response: NULL"); if (e == RIL_E_SUCCESS) responseInfo.error = RadioError::INVALID_RESPONSE; @@ -4568,7 +4565,6 @@ int radio::getMuteResponse(int slotId, RadioResponseInfo responseInfo = {}; populateResponseInfo(responseInfo, serial, responseType, e); bool enable = false; - int serviceClass; if (response == NULL || responseLen % sizeof(int) != 0) { RLOGE("getMuteResponse Invalid response: NULL"); if (e == RIL_E_SUCCESS) responseInfo.error = RadioError::INVALID_RESPONSE; diff --git a/ril/libsecril-client/Android.mk b/ril/libsecril-client/Android.mk index 2898bb2..5249f27 100755 --- a/ril/libsecril-client/Android.mk +++ b/ril/libsecril-client/Android.mk @@ -14,7 +14,7 @@ LOCAL_SHARED_LIBRARIES := \ libhardware_legacy \ liblog -LOCAL_CFLAGS := +LOCAL_CFLAGS := -Wno-error ifeq ($(TARGET_BOARD_PLATFORM),exynos4) LOCAL_CFLAGS += -DRIL_CALL_AUDIO_PATH_EXTRAVOLUME