mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] cmake: do not suppress -Wsign-compare globally (#1810)
Only disable `-Wsign-compare` for tests that do not compile cleanly with this warning enabled. Re-enable the warning for the other tests, so that it can catch any new occurrences. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
1c616238bc
commit
aa953aaa51
@@ -17,6 +17,6 @@ set(${MODULE_NAME}_SOURCES
|
||||
test_migrate.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sometimes-uninitialized")
|
||||
set_gnulike_module_compile_flags("-Wno-sometimes-uninitialized -Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -8,4 +8,6 @@ set(${MODULE_NAME}_SOURCES
|
||||
allocation_utils.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -68,4 +68,6 @@ if(APPLE)
|
||||
list(APPEND ${MODULE_NAME}_SOURCES test_queue_priority.cpp)
|
||||
endif(APPLE)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -7,4 +7,6 @@ set(${MODULE_NAME}_SOURCES
|
||||
test_atomics.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -16,6 +16,6 @@ set_source_files_properties(
|
||||
COMPILE_FLAGS -march=i686)
|
||||
endif(NOT CMAKE_CL_64 AND NOT MSVC AND NOT ANDROID)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-unused-but-set-variable")
|
||||
set_gnulike_module_compile_flags("-Wno-unused-but-set-variable -Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -17,6 +17,6 @@ set(DEVICE_EXECUTION_SOURCES
|
||||
utils.cpp
|
||||
)
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
# end of file #
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
@@ -17,6 +17,8 @@ set(${MODULE_NAME}_SOURCES
|
||||
command_buffer_finalize.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../../CMakeCommon.txt)
|
||||
|
||||
add_subdirectory( cl_khr_command_buffer_mutable_dispatch )
|
||||
|
||||
@@ -12,4 +12,6 @@ set(${MODULE_NAME}_SOURCES
|
||||
../basic_command_buffer.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../../../CMakeCommon.txt)
|
||||
|
||||
@@ -6,5 +6,7 @@ set(${MODULE_NAME}_SOURCES
|
||||
test_geometrics.cpp
|
||||
)
|
||||
|
||||
set_gnulike_module_compile_flags("-Wno-sign-compare")
|
||||
|
||||
include(../CMakeCommon.txt)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ set(${MODULE_NAME}_SOURCES
|
||||
|
||||
# Make unused variables not fatal in this module; see
|
||||
# https://github.com/KhronosGroup/OpenCL-CTS/issues/1484
|
||||
set_gnulike_module_compile_flags("-Wno-error=unused-variable -Wno-unused-but-set-variable")
|
||||
set_gnulike_module_compile_flags("-Wno-error=unused-variable -Wno-unused-but-set-variable -Wno-sign-compare")
|
||||
|
||||
include(../../CMakeCommon.txt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user