Skip to content

Commit ab3456f

Browse files
authored
Add compiler warning flags for tests with icpx (#1189)
1 parent f2499d4 commit ab3456f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (MSVC)
2323
elseif (NOT NB_TEST_CUDA)
2424
add_compile_options(/W4)
2525
endif()
26-
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
27-
add_compile_options(-Wall -Wextra -Wno-unused-local-typedefs)
26+
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU|IntelLLVM")
27+
add_compile_options(-Wall -Wextra)
2828
endif()
2929

3030
if (UNIX AND (CMAKE_SIZEOF_VOID_P EQUAL 4) AND (CMAKE_SYSTEM_PROCESSOR STREQUAL i686))

0 commit comments

Comments
 (0)