warnings: disable unsafe-loop-optimisation

This warning caused too many false positives with range-for and other
language constructs and was very rarely actually helpful. Disable for
the time being.
This commit is contained in:
Danny Robson 2017-05-24 15:16:33 +10:00
parent 770bc543a6
commit 06bb32ff00

View File

@ -34,12 +34,15 @@ append_compile_flag(-Wsign-promo)
append_compile_flag(-Wstrict-aliasing)
append_compile_flag(-Wstrict-overflow)
append_compile_flag(-Wtype-limits)
append_compile_flag(-Wunsafe-loop-optimizations)
append_compile_flag(-Wunused-but-set-variable)
append_compile_flag(-Wunused-parameter)
append_compile_flag(-Wpessimizing-move)
append_compile_flag(-Wswitch-enum)
# dont use unsafe-loop-optimisations as there are too many false positives
# with language primitives like range-for.
# append_compile_flag(-Wunsafe-loop-optimizations)
# gcc-6.1.0 warnings
append_compile_flag(-Wshift-negative-value)
append_compile_flag(-Wnull-dereference)