From 5cbbc95c20f29af1fb016055352ee225d7e55da8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 26 Aug 2021 11:18:17 -0700 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 326fac1..c81b916 100644 --- a/configure.ac +++ b/configure.ac @@ -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