OSDN Git Service

Clang rejects -Wno-old-style-declaration flag.
authorChih-Hung Hsieh <chh@google.com>
Tue, 26 Aug 2014 23:37:00 +0000 (16:37 -0700)
committerChih-Hung Hsieh <chh@google.com>
Tue, 26 Aug 2014 23:37:00 +0000 (16:37 -0700)
BUG: 17258227
Change-Id: I2a35263298ffd8dd7cda25183e185274cbf62b7b

core/clang/config.mk

index 6edf04c..0b8590b 100644 (file)
@@ -43,18 +43,19 @@ CLANG_CONFIG_EXTRA_CFLAGS += \
   -Werror=int-conversion
 
 CLANG_CONFIG_UNKNOWN_CFLAGS := \
-  -funswitch-loops \
-  -fno-tree-sra \
   -finline-limit=64 \
+  -fno-canonical-system-headers \
+  -fno-tree-sra \
+  -funswitch-loops \
+  -Wmaybe-uninitialized \
+  -Wno-error=maybe-uninitialized \
+  -Wno-literal-suffix \
+  -Wno-maybe-uninitialized \
+  -Wno-old-style-declaration \
   -Wno-psabi \
   -Wno-unused-but-set-variable \
   -Wno-unused-but-set-parameter \
-  -Wmaybe-uninitialized \
-  -Wno-maybe-uninitialized \
-  -Wno-error=maybe-uninitialized \
-  -fno-canonical-system-headers \
-  -Wno-unused-local-typedefs \
-  -Wno-literal-suffix
+  -Wno-unused-local-typedefs
 
 # Clang flags for all host rules
 CLANG_CONFIG_HOST_EXTRA_ASFLAGS :=