warnings: add gcc 7 default warnings
This commit is contained in:
parent
bbe3b5a466
commit
2b9bff932c
@ -49,6 +49,16 @@ append_compile_flag(-Wduplicated-cond)
|
||||
# see gcc#70844
|
||||
append_compile_flag(-Wuseless-cast)
|
||||
|
||||
# gcc 7 warnings
|
||||
append_compile_flag(-Wduplicated-branches)
|
||||
append_compile_flag(-Wrestrict)
|
||||
append_compile_flag(-Wregister)
|
||||
append_compile_flag(-Wdangling-else)
|
||||
append_compile_flag(-Walloc-zero)
|
||||
append_compile_flag(-Walloca)
|
||||
append_compile_flag(-Wnonnull)
|
||||
append_compile_flag(-Waligned-new)
|
||||
|
||||
# clang 3.7.1 warnings
|
||||
append_compile_flag(-Wshorten-64-to-32)
|
||||
append_compile_flag(-Wdeprecated)
|
||||
|
Loading…
Reference in New Issue
Block a user