Commit e7d09301 authored by Olivier Crête's avatar Olivier Crête 👻
Browse files

configure: Move -Werror=unsafe-loop-optimizations to the maximum level

It tends to cause false warnings
parent a7a7b1df
......@@ -143,7 +143,6 @@ AS_IF([test "$enable_compile_warnings" = "yes" -o \
"$enable_compile_warnings" = "error"],[
NICE_ADD_FLAG([-Wsign-compare])
NICE_ADD_FLAG([-Wstrict-aliasing])
NICE_ADD_FLAG([-Wunsafe-loop-optimizations])
NICE_ADD_FLAG([-Wshadow])
NICE_ADD_FLAG([-Winline])
NICE_ADD_FLAG([-Wpacked])
......@@ -159,6 +158,7 @@ AS_IF([test "$enable_compile_warnings" = "maximum" -o \
"$enable_compile_warnings" = "error"],[
NICE_ADD_FLAG([-Wswitch-enum])
NICE_ADD_FLAG([-Wswitch-default])
NICE_ADD_FLAG([-Wunsafe-loop-optimizations])
NICE_ADD_FLAG([-Waggregate-return])
])
AS_IF([test "x$enable_compile_warnings" = "xerror"],[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment