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.
This commit is contained in:
parent
b99bbfe88d
commit
ebef3632c7
|
@ -17,8 +17,8 @@ foreach(f
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
string(APPEND CMAKE_C_FLAGS " -Werror")
|
string(APPEND CMAKE_C_FLAGS " -Werror -Wno-attributes")
|
||||||
string(APPEND CMAKE_CXX_FLAGS " -Werror")
|
string(APPEND CMAKE_CXX_FLAGS " -Werror -Wno-attributes")
|
||||||
string(APPEND CMAKE_EXE_LINKER_FLAGS " -Wl,-no-undefined")
|
string(APPEND CMAKE_EXE_LINKER_FLAGS " -Wl,-no-undefined")
|
||||||
|
|
||||||
if(CMAKE_ANDROID_NDK)
|
if(CMAKE_ANDROID_NDK)
|
||||||
|
|
Loading…
Reference in New Issue