From 0b7ef392e140914e9565560abc515ba3e1ae05c7 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 7 Jun 2023 23:28:37 +0300 Subject: [PATCH] sm6225-common: gps: Remove all Wno-error flags Almost all warnings/errors have been fixed. Ignore undefined bool conversion error on purpose. Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb --- gps/Android.bp | 15 +-------------- gps/Android.mk | 15 +-------------- location/Android.bp | 15 +-------------- 3 files changed, 3 insertions(+), 42 deletions(-) diff --git a/gps/Android.bp b/gps/Android.bp index 0681f67..fb78f04 100644 --- a/gps/Android.bp +++ b/gps/Android.bp @@ -1,19 +1,6 @@ GNSS_CFLAGS = [ "-Werror", - "-Wno-error=unused-parameter", - "-Wno-error=macro-redefined", - "-Wno-error=reorder", - "-Wno-error=missing-braces", - "-Wno-error=self-assign", - "-Wno-error=enum-conversion", - "-Wno-error=logical-op-parentheses", - "-Wno-error=null-arithmetic", - "-Wno-error=null-conversion", - "-Wno-error=parentheses-equality", - "-Wno-error=undefined-bool-conversion", - "-Wno-error=tautological-compare", - "-Wno-error=switch", - "-Wno-error=date-time", + "-Wno-undefined-bool-conversion", ] /* Activate the following for debug purposes only, diff --git a/gps/Android.mk b/gps/Android.mk index 88bb0f4..60c9aa8 100644 --- a/gps/Android.mk +++ b/gps/Android.mk @@ -3,20 +3,7 @@ ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) # Set required flags GNSS_CFLAGS := \ -Werror \ - -Wno-error=unused-parameter \ - -Wno-error=macro-redefined \ - -Wno-error=reorder \ - -Wno-error=missing-braces \ - -Wno-error=self-assign \ - -Wno-error=enum-conversion \ - -Wno-error=logical-op-parentheses \ - -Wno-error=null-arithmetic \ - -Wno-error=null-conversion \ - -Wno-error=parentheses-equality \ - -Wno-error=undefined-bool-conversion \ - -Wno-error=tautological-compare \ - -Wno-error=switch \ - -Wno-error=date-time + -Wno-undefined-bool-conversion GNSS_HIDL_VERSION = 2.1 diff --git a/location/Android.bp b/location/Android.bp index 0681f67..fb78f04 100644 --- a/location/Android.bp +++ b/location/Android.bp @@ -1,19 +1,6 @@ GNSS_CFLAGS = [ "-Werror", - "-Wno-error=unused-parameter", - "-Wno-error=macro-redefined", - "-Wno-error=reorder", - "-Wno-error=missing-braces", - "-Wno-error=self-assign", - "-Wno-error=enum-conversion", - "-Wno-error=logical-op-parentheses", - "-Wno-error=null-arithmetic", - "-Wno-error=null-conversion", - "-Wno-error=parentheses-equality", - "-Wno-error=undefined-bool-conversion", - "-Wno-error=tautological-compare", - "-Wno-error=switch", - "-Wno-error=date-time", + "-Wno-undefined-bool-conversion", ] /* Activate the following for debug purposes only,