From bb173469810e4c7de19e53793d4af2e27e6e222c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 23 Sep 2019 14:14:56 +0200 Subject: [PATCH] Disable -Wcast-qual and -Wcast-align. The code heavily relies on the fact that some buffers are properly aligned, and in fact even triggers a cast-align warning. To prevent these warnings from hiding more important warnings, we disable them. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 07eb249..fe23bf1 100644 --- a/configure.ac +++ b/configure.ac @@ -261,7 +261,7 @@ test_gcc_flag() { # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then - DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing" + DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wold-style-definition -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wshadow -Wbad-function-cast -Wwrite-strings -fdiagnostics-show-option -fno-strict-aliasing" # when compiling for MingW, -Wmissing-noreturn is triggered a bunch of # times from autogenerated libtool wrappers, so leave it out on Windows. -- 2.39.5