summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-06 11:43:24 -0400
committerBrad King <brad.king@kitware.com>2016-10-06 13:26:05 -0400
commitebef3632c79491c402991967aab03a9c971cb70d (patch)
treef0f0525ada0c2e56861e47065a14216cfefe2a48
parentb99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff)
downloadcmake-ebef3632c79491c402991967aab03a9c971cb70d.tar.gz
Android: Suppress -Wattributes warnings in test case builds
We use `-Werror` in the Android test builds to make sure there are no warnings that we care about (e.g. unused flags). However, the NDK r13 tools produce a warning about their own builtins: ``` <built-in>: In function 'float abs(float)': <built-in>: warning: conflicts with previous declaration here [-Wattributes] ``` Suppress this warning so that we can continue using `-Werror` but tolerate these warnings.
-rw-r--r--Tests/RunCMake/Android/common.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/Android/common.cmake b/Tests/RunCMake/Android/common.cmake
index 7eac5d6137..6ea090907b 100644
--- a/Tests/RunCMake/Android/common.cmake
+++ b/Tests/RunCMake/Android/common.cmake
@@ -17,8 +17,8 @@ foreach(f
endif()
endforeach()
-string(APPEND CMAKE_C_FLAGS " -Werror")
-string(APPEND CMAKE_CXX_FLAGS " -Werror")
+string(APPEND CMAKE_C_FLAGS " -Werror -Wno-attributes")
+string(APPEND CMAKE_CXX_FLAGS " -Werror -Wno-attributes")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -Wl,-no-undefined")
if(CMAKE_ANDROID_NDK)