mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Enable compiler warnings (-Warith-conversion)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
parent
96bff7a7ed
commit
7b3c54426c
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user