warnings: disable redundant-decl

This commit is contained in:
Danny Robson 2018-08-20 16:29:32 +10:00
parent 305bd4a46e
commit 3deaf0503b

View File

@ -27,7 +27,12 @@ append_compile_flag(-Wnoexcept)
append_compile_flag(-Wnon-virtual-dtor) append_compile_flag(-Wnon-virtual-dtor)
append_compile_flag(-Wparentheses) # Wparenthesis detects assignment in conditionals... append_compile_flag(-Wparentheses) # Wparenthesis detects assignment in conditionals...
append_compile_flag(-Wpointer-arith) append_compile_flag(-Wpointer-arith)
append_compile_flag(-Wredundant-decls)
# redundant-decls would be useful, but it specifically clashes with GCC
# intrinsics under msys2 where the builtin and headers define them with
# different linkages.
#append_compile_flag(-Wredundant-decls)
append_compile_flag(-Wshadow) append_compile_flag(-Wshadow)
append_compile_flag(-Wsign-compare) append_compile_flag(-Wsign-compare)
append_compile_flag(-Wsign-promo) append_compile_flag(-Wsign-promo)