From b571c31b33768f481bb9dc386ecb085e87075fd5 Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 9 Oct 2018 11:09:29 +0200 Subject: [PATCH] samsung_slsi: openmax: hide/ignore all warnings Change-Id: Id96114d2d4991b3360cde34c187c8556d81edb77 --- component/audio/dec/mp3/Android.mk | 8 +++++++- component/audio/dec/wma/Android.mk | 8 +++++++- component/audio/seiren_dec/aac/Android.mk | 8 +++++++- component/audio/seiren_dec/flac/Android.mk | 8 +++++++- component/audio/seiren_dec/mp3/Android.mk | 8 +++++++- component/common/Android.mk | 16 ++++++++++++++-- component/video/dec/Android.mk | 8 ++++++++ component/video/dec/h264/Android.mk | 8 +++++++- component/video/dec/hevc/Android.mk | 8 +++++++- component/video/dec/mpeg2/Android.mk | 8 +++++++- component/video/dec/mpeg4/Android.mk | 10 +++++++++- component/video/dec/vc1/Android.mk | 8 +++++++- component/video/dec/vp8/Android.mk | 8 +++++++- component/video/dec/vp9/Android.mk | 8 +++++++- component/video/enc/Android.mk | 8 ++++++++ component/video/enc/h264/Android.mk | 8 +++++++- component/video/enc/hevc/Android.mk | 8 +++++++- component/video/enc/mpeg4/Android.mk | 8 +++++++- component/video/enc/vp8/Android.mk | 8 +++++++- component/video/enc/vp8/Exynos_OMX_Vp8enc.c | 2 +- component/video/enc/vp9/Android.mk | 9 ++++++++- core/Android.mk | 8 +++++++- osal/Android.mk | 17 +++++++++++++++-- 23 files changed, 175 insertions(+), 23 deletions(-) diff --git a/component/audio/dec/mp3/Android.mk b/component/audio/dec/mp3/Android.mk index 71cc70e..a638afa 100644 --- a/component/audio/dec/mp3/Android.mk +++ b/component/audio/dec/mp3/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.MP3.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/component/audio/dec/wma/Android.mk b/component/audio/dec/wma/Android.mk index dc0be75..e29b9f9 100644 --- a/component/audio/dec/wma/Android.mk +++ b/component/audio/dec/wma/Android.mk @@ -12,7 +12,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.WMA.Decoder LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/component/audio/seiren_dec/aac/Android.mk b/component/audio/seiren_dec/aac/Android.mk index 60bd522..2ed599d 100644 --- a/component/audio/seiren_dec/aac/Android.mk +++ b/component/audio/seiren_dec/aac/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.AAC.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/component/audio/seiren_dec/flac/Android.mk b/component/audio/seiren_dec/flac/Android.mk index 236d893..f4e273d 100644 --- a/component/audio/seiren_dec/flac/Android.mk +++ b/component/audio/seiren_dec/flac/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.FLAC.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/component/audio/seiren_dec/mp3/Android.mk b/component/audio/seiren_dec/mp3/Android.mk index 23a3b18..e5a8860 100644 --- a/component/audio/seiren_dec/mp3/Android.mk +++ b/component/audio/seiren_dec/mp3/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.MP3.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/component/common/Android.mk b/component/common/Android.mk index ddcf53e..c6e447a 100644 --- a/component/common/Android.mk +++ b/component/common/Android.mk @@ -9,7 +9,13 @@ LOCAL_SRC_FILES := \ LOCAL_MODULE := libExynosOMX_Basecomponent -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_STATIC_LIBRARIES := libExynosOMX_OSAL LOCAL_SHARED_LIBRARIES := libcutils libutils liblog @@ -47,7 +53,13 @@ LOCAL_SRC_FILES := \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libExynosOMX_Resourcemanager -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_STATIC_LIBRARIES := libExynosOMX_OSAL LOCAL_SHARED_LIBRARIES := liblog libcutils libutils diff --git a/component/video/dec/Android.mk b/component/video/dec/Android.mk index 97d0310..c6faf18 100644 --- a/component/video/dec/Android.mk +++ b/component/video/dec/Android.mk @@ -25,6 +25,14 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \ LOCAL_STATIC_LIBRARIES := libExynosVideoApi +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline + ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true) LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos diff --git a/component/video/dec/h264/Android.mk b/component/video/dec/h264/Android.mk index 9dd9118..aee8691 100644 --- a/component/video/dec/h264/Android.mk +++ b/component/video/dec/h264/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.AVC.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_ANB), true) LOCAL_CFLAGS += -DUSE_ANB diff --git a/component/video/dec/hevc/Android.mk b/component/video/dec/hevc/Android.mk index 6dda85a..a37953f 100644 --- a/component/video/dec/hevc/Android.mk +++ b/component/video/dec/hevc/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.HEVC.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_CFLAGS += -DUSE_HEVC_SUPPORT ifeq ($(BOARD_USE_ANB), true) diff --git a/component/video/dec/mpeg2/Android.mk b/component/video/dec/mpeg2/Android.mk index 3bf590c..4ea6d14 100644 --- a/component/video/dec/mpeg2/Android.mk +++ b/component/video/dec/mpeg2/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.MPEG2.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_ANB), true) LOCAL_CFLAGS += -DUSE_ANB diff --git a/component/video/dec/mpeg4/Android.mk b/component/video/dec/mpeg4/Android.mk index bda30f5..45c181d 100644 --- a/component/video/dec/mpeg4/Android.mk +++ b/component/video/dec/mpeg4/Android.mk @@ -11,7 +11,15 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.MPEG4.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline \ + -Wno-sign-compare \ + -Wno-pointer-arith ifeq ($(BOARD_USE_ANB), true) LOCAL_CFLAGS += -DUSE_ANB diff --git a/component/video/dec/vc1/Android.mk b/component/video/dec/vc1/Android.mk index 8d8465a..fad5b93 100644 --- a/component/video/dec/vc1/Android.mk +++ b/component/video/dec/vc1/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.WMV.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_ANB), true) LOCAL_CFLAGS += -DUSE_ANB diff --git a/component/video/dec/vp8/Android.mk b/component/video/dec/vp8/Android.mk index 79f6f9a..834a9c2 100644 --- a/component/video/dec/vp8/Android.mk +++ b/component/video/dec/vp8/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.VP8.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_CFLAGS += -DUSE_VP8_SUPPORT ifeq ($(BOARD_USE_ANB), true) diff --git a/component/video/dec/vp9/Android.mk b/component/video/dec/vp9/Android.mk index 5b78f13..f3eb5d0 100644 --- a/component/video/dec/vp9/Android.mk +++ b/component/video/dec/vp9/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.VP9.Decoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_CFLAGS += -DUSE_VP9_SUPPORT ifeq ($(BOARD_USE_ANB), true) diff --git a/component/video/enc/Android.mk b/component/video/enc/Android.mk index 55ae45b..06aa755 100644 --- a/component/video/enc/Android.mk +++ b/component/video/enc/Android.mk @@ -23,6 +23,14 @@ LOCAL_C_INCLUDES := \ LOCAL_ADDITIONAL_DEPENDENCIES += \ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline + ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true) LOCAL_CFLAGS += -DUSE_KHRONOS_OMX_HEADER LOCAL_C_INCLUDES += $(EXYNOS_OMX_INC)/khronos diff --git a/component/video/enc/h264/Android.mk b/component/video/enc/h264/Android.mk index fe9f0df..e105764 100644 --- a/component/video/enc/h264/Android.mk +++ b/component/video/enc/h264/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.AVC.Encoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_ANDROID), true) LOCAL_CFLAGS += -DUSE_ANDROID diff --git a/component/video/enc/hevc/Android.mk b/component/video/enc/hevc/Android.mk index 547dbb7..3037cac 100644 --- a/component/video/enc/hevc/Android.mk +++ b/component/video/enc/hevc/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.HEVC.Encoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_CFLAGS += -DUSE_HEVC_SUPPORT ifeq ($(BOARD_USE_ANDROID), true) diff --git a/component/video/enc/mpeg4/Android.mk b/component/video/enc/mpeg4/Android.mk index f69355e..616b366 100644 --- a/component/video/enc/mpeg4/Android.mk +++ b/component/video/enc/mpeg4/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.MPEG4.Encoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_METADATABUFFERTYPE), true) LOCAL_CFLAGS += -DUSE_METADATABUFFERTYPE diff --git a/component/video/enc/vp8/Android.mk b/component/video/enc/vp8/Android.mk index ad641da..75966be 100644 --- a/component/video/enc/vp8/Android.mk +++ b/component/video/enc/vp8/Android.mk @@ -11,7 +11,13 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.VP8.Encoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_CFLAGS += -DUSE_VP8_SUPPORT ifeq ($(BOARD_USE_METADATABUFFERTYPE), true) diff --git a/component/video/enc/vp8/Exynos_OMX_Vp8enc.c b/component/video/enc/vp8/Exynos_OMX_Vp8enc.c index 0f41215..845ede6 100644 --- a/component/video/enc/vp8/Exynos_OMX_Vp8enc.c +++ b/component/video/enc/vp8/Exynos_OMX_Vp8enc.c @@ -210,7 +210,7 @@ EXIT: return (bProfileSupport && bLevelSupport); } -static OMX_U32 OMXVP8ProfileToProfileIDC(OMX_VIDEO_VP8PROFILETYPE eProfile) +static __unused OMX_U32 OMXVP8ProfileToProfileIDC(OMX_VIDEO_VP8PROFILETYPE eProfile) { OMX_U32 ret; diff --git a/component/video/enc/vp9/Android.mk b/component/video/enc/vp9/Android.mk index 035d1d4..188b793 100644 --- a/component/video/enc/vp9/Android.mk +++ b/component/video/enc/vp9/Android.mk @@ -11,7 +11,14 @@ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libOMX.Exynos.VP9.Encoder LOCAL_MODULE_RELATIVE_PATH := omx -LOCAL_CFLAGS := -DUSE_VP9_SUPPORT +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline +LOCAL_CFLAGS += -DUSE_VP9_SUPPORT ifeq ($(BOARD_USE_METADATABUFFERTYPE), true) LOCAL_CFLAGS += -DUSE_METADATABUFFERTYPE diff --git a/core/Android.mk b/core/Android.mk index a75eb9e..ffd2e83 100644 --- a/core/Android.mk +++ b/core/Android.mk @@ -10,7 +10,13 @@ LOCAL_SRC_FILES := \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libExynosOMX_Core -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline LOCAL_ARM_MODE := arm diff --git a/osal/Android.mk b/osal/Android.mk index 18e364f..d93f3f8 100644 --- a/osal/Android.mk +++ b/osal/Android.mk @@ -12,7 +12,14 @@ LOCAL_MODULE_TAGS := optional LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libExynosOMX_SkypeHD_Enc -LOCAL_CFLAGS := -DUSE_SKYPE_HD +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline +LOCAL_CFLAGS += -DUSE_SKYPE_HD LOCAL_CFLAGS += -DBUILD_ENC LOCAL_SRC_FILES := Exynos_OSAL_SkypeHD.c @@ -103,7 +110,13 @@ LOCAL_SRC_FILES := \ LOCAL_PRELINK_MODULE := false LOCAL_MODULE := libExynosOMX_OSAL -LOCAL_CFLAGS := +LOCAL_CFLAGS := \ + -Wno-enum-conversion \ + -Wno-unused-label \ + -Wno-unused-parameter \ + -Wno-unused-variable \ + -Wno-parentheses-equality \ + -Wno-undefined-inline ifeq ($(BOARD_USE_ANDROID), true) LOCAL_SRC_FILES += \ -- 2.20.1