diff options
author | Brad King <brad.king@kitware.com> | 2016-10-06 15:43:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-06 17:26:05 (GMT) |
commit | ebef3632c79491c402991967aab03a9c971cb70d (patch) | |
tree | f0f0525ada0c2e56861e47065a14216cfefe2a48 /Tests/RunCMake/Android | |
parent | b99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff) | |
download | CMake-ebef3632c79491c402991967aab03a9c971cb70d.zip CMake-ebef3632c79491c402991967aab03a9c971cb70d.tar.gz CMake-ebef3632c79491c402991967aab03a9c971cb70d.tar.bz2 |
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.
Diffstat (limited to 'Tests/RunCMake/Android')
-rw-r--r-- | Tests/RunCMake/Android/common.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/Android/common.cmake b/Tests/RunCMake/Android/common.cmake index 7eac5d6..6ea0909 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) |