Enable -Wnarrowing in integer_ops test suite (#2465)

Fixes #1158

---------

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2025-07-30 18:51:54 +01:00
committed by GitHub
parent 7c530dafa6
commit 77a987d547
3 changed files with 32 additions and 14 deletions

View File

@@ -1,9 +1,5 @@
set(MODULE_NAME INTEGER_OPS)
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
main.cpp
test_int_basic_ops.cpp