Reland: Silence warnings in external/mesa3d
external/mesa3d produces 754 warnings. Silence all the warnings
(including some that are real errors) and turn on -Werror to
prevent more appearing.
This relands I922c403823b20036dd40ea0141aed12fb3ec092d with fixes
for more warnings that only occur when specific GPU drivers are
enabled.
Test: mmma external/mesa3d
Test: mmma external/mesa3d BOARD_GPU_DRIVERS=all
Change-Id: Ie610fe823c22a45b2c0bcc3a32052971f77e7493
diff --git a/Android.common.mk b/Android.common.mk
index 36d97c5..a8a6911 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -78,7 +78,25 @@
-fvisibility=hidden \
-fno-math-errno \
-fno-trapping-math \
- -Wno-sign-compare
+ -Werror \
+ -Wno-\#warnings \
+ -Wno-asm-operand-widths \
+ -Wno-cast-calling-convention \
+ -Wno-constant-logical-operand \
+ -Wno-enum-conversion \
+ -Wno-format \
+ -Wno-gnu-variable-sized-type-not-at-end \
+ -Wno-implicit-fallthrough \
+ -Wno-incompatible-pointer-types \
+ -Wno-missing-braces \
+ -Wno-overloaded-virtual \
+ -Wno-self-assign \
+ -Wno-shift-negative-value \
+ -Wno-sign-compare \
+ -Wno-sometimes-uninitialized \
+ -Wno-switch \
+ -Wno-typedef-redefinition \
+ -Wno-uninitialized \
LOCAL_CPPFLAGS += \
-D__STDC_CONSTANT_MACROS \