From 9f30bd7912fe251e98262c55af85f7984373f851 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Wed, 24 Feb 2016 17:40:49 -0800 Subject: [PATCH] msm8974-common: gps: Suppress unused-parameter warnings Bug: 26936282 Change-Id: I7fdf58d232a59c0ba0d5f52c0f958f6eab0c4514 --- gps/core/Android.mk | 3 ++- gps/loc_api/libloc_api_50001/Android.mk | 6 ++++-- gps/utils/Android.mk | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gps/core/Android.mk b/gps/core/Android.mk index 0bccba2..41883e8 100644 --- a/gps/core/Android.mk +++ b/gps/core/Android.mk @@ -23,7 +23,8 @@ LOCAL_SRC_FILES += \ LOCAL_CFLAGS += \ -fno-short-enums \ - -D_ANDROID_ + -D_ANDROID_ \ + -Wno-unused-parameter 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 e44b5e6..69252f3 100644 --- a/gps/loc_api/libloc_api_50001/Android.mk +++ b/gps/loc_api/libloc_api_50001/Android.mk @@ -33,7 +33,8 @@ LOCAL_SRC_FILES += \ LOCAL_CFLAGS += \ -fno-short-enums \ - -D_ANDROID_ + -D_ANDROID_ \ + -Wno-unused-parameter LOCAL_C_INCLUDES:= \ $(TARGET_OUT_HEADERS)/gps.utils \ @@ -77,7 +78,8 @@ LOCAL_SRC_FILES += \ LOCAL_CFLAGS += \ -fno-short-enums \ - -D_ANDROID_ \ + -D_ANDROID_ \ + -Wno-unused-parameter ## Includes LOCAL_C_INCLUDES:= \ diff --git a/gps/utils/Android.mk b/gps/utils/Android.mk index 4ea6808..a77e26e 100644 --- a/gps/utils/Android.mk +++ b/gps/utils/Android.mk @@ -24,7 +24,8 @@ 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_ + -D_ANDROID_ \ + -Wno-unused-parameter ifeq ($(TARGET_BUILD_VARIANT),user) LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER