diff options
author | Frédéric Boisnard <fredericx.boisnard@intel.com> | 2013-08-06 19:23:46 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:05 +0100 |
commit | 11e31aedd3af9e95a860cfc1525badd4ffd7b56f (patch) | |
tree | 3aace1005e1816aff829031c43fad319c4034a4e /parameter | |
parent | 487ce850cc5f884f7689a2bfd55a7e1cf6eb3053 (diff) | |
download | external_parameter-framework-11e31aedd3af9e95a860cfc1525badd4ffd7b56f.zip external_parameter-framework-11e31aedd3af9e95a860cfc1525badd4ffd7b56f.tar.gz external_parameter-framework-11e31aedd3af9e95a860cfc1525badd4ffd7b56f.tar.bz2 |
PFW: Update CFLAGS to add Wall, Werror, Wextra everywhere
BZ: 129048
Some Makefiles of the PFW projects are missing the regular CFLAGS
-Wall, -Werror and -Wextra.
This patch aims to update the CLFAGS of these Makefiles. Some source
code had to be updated because warnings are now considered as errors.
Change-Id: Icc91f7bdc649118f822411d9b4693776a84037e9
Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Reviewed-on: http://android.intel.com:8080/123977
Reviewed-by: Rocard, KevinX <kevinx.rocard@intel.com>
Reviewed-by: De Chivre, Renaud <renaud.de.chivre@intel.com>
Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'parameter')
-rw-r--r-- | parameter/Android.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/parameter/Android.mk b/parameter/Android.mk index c356c4d..e6e9891 100644 --- a/parameter/Android.mk +++ b/parameter/Android.mk @@ -101,6 +101,12 @@ common_src_files := \ common_module := libparameter common_module_tags := optional +common_cflags := \ + -Wall \ + -Werror \ + -Wextra \ + -Wno-unused-parameter + common_c_includes := \ $(LOCAL_PATH)/include/ \ $(LOCAL_PATH)/../utility/ \ @@ -119,6 +125,8 @@ LOCAL_COPY_HEADERS := $(common_copy_headers) LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) +LOCAL_CFLAGS := $(common_cflags) + LOCAL_SRC_FILES := $(common_src_files) LOCAL_MODULE := $(common_module) @@ -142,6 +150,8 @@ include $(CLEAR_VARS) LOCAL_COPY_HEADERS_TO := $(common_copy_headers_to) LOCAL_COPY_HEADERS := $(common_copy_headers) +LOCAL_CFLAGS := $(common_cflags) + LOCAL_SRC_FILES := $(common_src_files) LOCAL_MODULE := $(common_module)_host |