Filter out gcc only flags.
They are currently used in some vendor projects.
Change-Id: Iff30966cba3b2941a8921cc35bb3ed1e4fea0bad
diff --git a/core/clang/config.mk b/core/clang/config.mk
index 72a880f..a39095e 100644
--- a/core/clang/config.mk
+++ b/core/clang/config.mk
@@ -60,8 +60,12 @@
-fno-tree-sra \
-fprefetch-loop-arrays \
-funswitch-loops \
+ -Werror=unused-but-set-variable \
+ -Werror=unused-but-set-parameter \
-Wmaybe-uninitialized \
-Wno-error=maybe-uninitialized \
+ -Wno-error=unused-but-set-variable \
+ -Wno-error=unused-but-set-parameter \
-Wno-free-nonheap-object \
-Wno-literal-suffix \
-Wno-maybe-uninitialized \