warnings: add gcc 7 default warnings

This commit is contained in:
Danny Robson 2017-05-12 14:56:20 +10:00
parent bbe3b5a466
commit 2b9bff932c

View File

@ -49,6 +49,16 @@ append_compile_flag(-Wduplicated-cond)
# see gcc#70844 # see gcc#70844
append_compile_flag(-Wuseless-cast) 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 # clang 3.7.1 warnings
append_compile_flag(-Wshorten-64-to-32) append_compile_flag(-Wshorten-64-to-32)
append_compile_flag(-Wdeprecated) append_compile_flag(-Wdeprecated)