Ver código fonte

sm8450-common: gps: Remove all Wno-error flags

Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
Michael Bestas 2 anos atrás
pai
commit
505727c93a
2 arquivos alterados com 2 adições e 26 exclusões
  1. 1 13
      gps/Android.bp
  2. 1 13
      gps/Android.mk

+ 1 - 13
gps/Android.bp

@@ -7,19 +7,7 @@ GNSS_CFLAGS = [
     "-Wunused-function",
     "-Wimplicit-fallthrough",
     "-Wno-unused-parameter",
-    "-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-undefined-bool-conversion",
 ]
 
 /* Activate the following for debug purposes only,

+ 1 - 13
gps/Android.mk

@@ -10,19 +10,7 @@ GNSS_CFLAGS := \
     -Wunused-function \
     -Wimplicit-fallthrough \
     -Wno-unused-parameter \
-    -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-undefined-bool-conversion
 
 GNSS_HIDL_VERSION := 2.1
 GNSS_AIDL_VERSION := 1