Enable -Wnarrowing in spirv_new test suite (#2468)

This commit is contained in:
Ahmed Hesham
2025-07-31 12:24:30 +01:00
committed by GitHub
parent 044e0be653
commit dae998ff9d
2 changed files with 4 additions and 8 deletions

View File

@@ -38,10 +38,6 @@ set(TEST_HARNESS_SOURCES
../../test_conformance/math_brute_force/utility.cpp
)
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
add_cxx_flag_if_supported(-Wno-narrowing)
endif()
set(${MODULE_NAME}_SOURCES ${${MODULE_NAME}_SOURCES} ${TEST_HARNESS_SOURCES})
include(../CMakeCommon.txt)