summaryrefslogtreecommitdiffstats
path: root/core/clang
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2015-03-19 15:17:06 -0700
committerChih-Hung Hsieh <chh@google.com>2015-03-19 15:17:06 -0700
commit7e44d7febf91be71809298ae2b79cd2ee4dffe55 (patch)
tree5e7c3c52905928ac507fc479fd2076aa2893f015 /core/clang
parent04ecdda5d0910e8e0e8b6581c726b2d35532368d (diff)
downloadbuild-7e44d7febf91be71809298ae2b79cd2ee4dffe55.zip
build-7e44d7febf91be71809298ae2b79cd2ee4dffe55.tar.gz
build-7e44d7febf91be71809298ae2b79cd2ee4dffe55.tar.bz2
Filter out gcc only flags.
They are currently used in some vendor projects. Change-Id: Iff30966cba3b2941a8921cc35bb3ed1e4fea0bad
Diffstat (limited to 'core/clang')
-rw-r--r--core/clang/config.mk4
1 files changed, 4 insertions, 0 deletions
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 @@ CLANG_CONFIG_UNKNOWN_CFLAGS := \
-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 \