diff options
author | Stephen Hines <srhines@google.com> | 2015-03-17 14:42:11 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-03-25 17:28:57 -0700 |
commit | f68002187a553de0d22ec97168e6b1c7148f109e (patch) | |
tree | 990ba948825873fda947f2998e0a69d2b0e5fa78 /core/clang/config.mk | |
parent | a45223b63566d8496250ae797778a4d16ee81419 (diff) | |
download | build-f68002187a553de0d22ec97168e6b1c7148f109e.zip build-f68002187a553de0d22ec97168e6b1c7148f109e.tar.gz build-f68002187a553de0d22ec97168e6b1c7148f109e.tar.bz2 |
Don't warn on definition of possibly reserved identifiers.
Change-Id: Icfcfa94aac0503c97dee0ff4d0cd49107201526d
Diffstat (limited to 'core/clang/config.mk')
-rw-r--r-- | core/clang/config.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/clang/config.mk b/core/clang/config.mk index 72a880f..60889e7 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -43,6 +43,11 @@ CLANG_CONFIG_EXTRA_CFLAGS += \ CLANG_CONFIG_EXTRA_CFLAGS += \ -Werror=int-conversion +# Disable overly aggressive warning for macros defined with a leading underscore +# This happens in AndroidConfig.h, which is included nearly everywhere. +CLANG_CONFIG_EXTRA_CFLAGS += \ + -Wno-reserved-id-macro + # Workaround for ccache with clang. # See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html. CLANG_CONFIG_EXTRA_CFLAGS += \ |