Enable compiler warnings (-Warith-conversion)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts 2023-08-15 20:44:17 +02:00
parent 96bff7a7ed
commit 7b3c54426c

View File

@ -171,7 +171,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
#add_compiler_flags(8.1 "-Wsuggest-attribute=cold")
add_compiler_flags(8.1 "-Wsuggest-attribute=malloc")
#add_compiler_flags(10.1 "-Warith-conversion")
add_compiler_flags(10.1 "-Warith-conversion")
add_compiler_flags(12.1 "-ftrivial-auto-var-init=zero")
add_compiler_flags(12.1 "-Warray-compare")