Skip to content

Commit 8cf44da

Browse files
committed
Treat warnings as errors
1 parent 6c1bc39 commit 8cf44da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

benchmarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function(ConfigureBench BENCH_NAME)
2828
target_include_directories(${BENCH_NAME} PRIVATE
2929
"${CMAKE_CURRENT_SOURCE_DIR}")
3030
target_compile_options(${BENCH_NAME} PRIVATE --compiler-options=-Wall --compiler-options=-Wextra
31-
-Wno-deprecated-gpu-targets --expt-extended-lambda -lineinfo)
31+
--compiler-options=-Werror -Wno-deprecated-gpu-targets --expt-extended-lambda)
3232
# Add GCC-specific warning suppression only for GCC
3333
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
3434
target_compile_options(${BENCH_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function(ConfigureExample EXAMPLE_NAME EXAMPLE_SRC)
2525
target_include_directories(${EXAMPLE_NAME} PRIVATE
2626
"${CMAKE_CURRENT_SOURCE_DIR}")
2727
target_compile_options(${EXAMPLE_NAME} PRIVATE --compiler-options=-Wall --compiler-options=-Wextra
28-
-Wno-deprecated-gpu-targets --expt-extended-lambda)
28+
--compiler-options=-Werror -Wno-deprecated-gpu-targets --expt-extended-lambda)
2929
# Add GCC-specific warning suppression only for GCC
3030
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
3131
target_compile_options(${EXAMPLE_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(ConfigureTest TEST_NAME)
3939
set_target_properties(${TEST_NAME} PROPERTIES
4040
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
4141
target_compile_options(${TEST_NAME} PRIVATE --compiler-options=-Wall --compiler-options=-Wextra
42-
-Wno-deprecated-gpu-targets --expt-extended-lambda)
42+
--compiler-options=-Werror -Wno-deprecated-gpu-targets --expt-extended-lambda)
4343
# Add GCC-specific warning suppression only for GCC
4444
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
4545
target_compile_options(${TEST_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)

0 commit comments

Comments
 (0)