diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 18fe473..f4fdfc4 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -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)