configure: Remove -Wno-strict-aliasing

Using -Wno-strict-aliasing is almost always wrong. If any code would be
introduced in the future that violates the strict aliasing rules, please
use -fno-strict-aliasing instead.
This commit is contained in:
Bart Van Assche
2021-08-26 11:18:17 -07:00
parent 3f9735b3a4
commit 5cbbc95c20

View File

@@ -32,7 +32,7 @@ AC_ARG_ENABLE([werror], [AS_HELP_STRING([--disable-werror],
[Disables building with -Werror by default])])
if test "$ac_cv_c_compiler_gnu" = yes; then
WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wno-strict-aliasing -Wvla"
WARN_CFLAGS="-Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wvla"
WARN_CFLAGS="$WARN_CFLAGS -Wno-unknown-warning-option -Wno-stringop-truncation"
WARN_CFLAGS="$WARN_CFLAGS -Wno-unused-parameter"
if test "x$enable_werror" != "xno"; then