diff options
| author | Michael Bestas <mkbestas@lineageos.org> | 2019-02-25 22:08:57 +0200 |
|---|---|---|
| committer | Julian Veit <claymore1298@gmail.com> | 2022-09-05 17:01:43 +0200 |
| commit | f7d9f9c45fe2b93036e19b2f9f27a4d6ada578cd (patch) | |
| tree | 4c1e7fa9bfc64599a82e556736f8437d0acc8a1d | |
| parent | c23b23eb167c07b20faea74cc42897dd92a9912e (diff) | |
msm8974-common: gps: Silence all build warnings
Change-Id: I94f738e457d26f4e0ec6fade595f4508e06fce64
| -rw-r--r-- | gps/core/Android.mk | 12 | ||||
| -rw-r--r-- | gps/loc_api/libloc_api_50001/Android.mk | 19 | ||||
| -rw-r--r-- | gps/utils/Android.mk | 13 |
3 files changed, 33 insertions, 11 deletions
diff --git a/gps/core/Android.mk b/gps/core/Android.mk index 83695b0..ac8680c 100644 --- a/gps/core/Android.mk +++ b/gps/core/Android.mk @@ -22,9 +22,15 @@ LOCAL_SRC_FILES += \ loc_core_log.cpp LOCAL_CFLAGS += \ - -fno-short-enums \ - -D_ANDROID_ \ - -Wno-unused-parameter + -fno-short-enums \ + -D_ANDROID_ \ + -Wno-format \ + -Wno-null-conversion \ + -Wno-overloaded-virtual \ + -Wno-reorder \ + -Wno-unneeded-internal-declaration \ + -Wno-unused-parameter \ + -Wno-unused-variable LOCAL_C_INCLUDES:= \ $(TARGET_OUT_HEADERS)/gps.utils \ diff --git a/gps/loc_api/libloc_api_50001/Android.mk b/gps/loc_api/libloc_api_50001/Android.mk index dd45d67..6a0ce76 100644 --- a/gps/loc_api/libloc_api_50001/Android.mk +++ b/gps/loc_api/libloc_api_50001/Android.mk @@ -33,9 +33,16 @@ LOCAL_SRC_FILES += \ loc_eng_dmn_conn_glue_pipe.c LOCAL_CFLAGS += \ - -fno-short-enums \ - -D_ANDROID_ \ - -Wno-unused-parameter + -fno-short-enums \ + -D_ANDROID_ \ + -Wno-format \ + -Wno-mismatched-tags \ + -Wno-null-conversion \ + -Wno-reorder \ + -Wno-sign-compare \ + -Wno-unused-function \ + -Wno-unused-parameter \ + -Wno-unused-variable LOCAL_C_INCLUDES:= \ $(TARGET_OUT_HEADERS)/gps.utils \ @@ -76,8 +83,10 @@ LOCAL_SRC_FILES += \ LOCAL_CFLAGS += \ -fno-short-enums \ - -D_ANDROID_ \ - -Wno-unused-parameter + -D_ANDROID_ \ + -Wno-format \ + -Wno-mismatched-tags \ + -Wno-unused-parameter ## Includes LOCAL_C_INCLUDES:= \ diff --git a/gps/utils/Android.mk b/gps/utils/Android.mk index a479466..1bca8e0 100644 --- a/gps/utils/Android.mk +++ b/gps/utils/Android.mk @@ -24,9 +24,16 @@ LOCAL_SRC_FILES += \ # Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true LOCAL_CFLAGS += \ - -fno-short-enums \ - -D_ANDROID_ \ - -Wno-unused-parameter + -fno-short-enums \ + -D_ANDROID_ \ + -Wno-format \ + -Wno-macro-redefined \ + -Wno-missing-braces \ + -Wno-missing-field-initializers \ + -Wno-null-conversion \ + -Wno-unused-const-variable \ + -Wno-unused-parameter \ + -Wno-unused-variable ifeq ($(TARGET_BUILD_VARIANT),user) LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER |
