mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
[NFC] Enable -Wall for math_brute_force (#1477)
math_brute_force compiles cleanly with `-Wall` currently, so avoid regressing from that state. Ideally we would enable `-Wall` in the top-level CMakeLists.txt, but other tests do not compile cleanly with `-Wall` yet. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com> Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
76bd9d3674
commit
75edf2a881
@@ -40,4 +40,14 @@ set(${MODULE_NAME}_SOURCES
|
|||||||
utility.h
|
utility.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# math_brute_force compiles cleanly with -Wall but other tests not (yet), so
|
||||||
|
# enable -Wall locally.
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(
|
||||||
|
${${MODULE_NAME}_SOURCES}
|
||||||
|
PROPERTIES
|
||||||
|
COMPILE_FLAGS "-Wall -Wno-format -Wno-strict-aliasing -Wno-unknown-pragmas"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(../CMakeCommon.txt)
|
include(../CMakeCommon.txt)
|
||||||
|
|||||||
Reference in New Issue
Block a user