Merge pull request #820 from fhuberts/fix-Warith-conversion

Enable compiler warnings (-Warith-conversion)
This commit is contained in:
Leonid Stryzhevskyi 2023-08-17 01:54:41 +03:00 committed by GitHub
commit 61f394ad4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")