From fb482c6d5dd702b8386cf87535094a75b084ec18 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 26 Aug 2014 16:37:00 -0700 Subject: [PATCH] Clang rejects -Wno-old-style-declaration flag. BUG: 17258227 Change-Id: I2a35263298ffd8dd7cda25183e185274cbf62b7b --- core/clang/config.mk | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/core/clang/config.mk b/core/clang/config.mk index 6edf04cd0d..0b8590b178 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -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 :=