]> git.meshlink.io Git - catta/commitdiff
Disable -Wcast-qual and -Wcast-align.
authorGuus Sliepen <guus@sliepen.org>
Mon, 23 Sep 2019 12:14:56 +0000 (14:14 +0200)
committerGuus Sliepen <guus@sliepen.org>
Mon, 23 Sep 2019 12:14:56 +0000 (14:14 +0200)
The code heavily relies on the fact that some buffers are properly aligned,
and in fact even <linux/netlink.h> triggers a cast-align warning. To prevent
these warnings from hiding more important warnings, we disable them.

configure.ac

index 07eb2497511bac1c16e66ecf2a910b49d19c95a5..fe23bf1edc72dfd2fa532359f110899b69ab12a8 100644 (file)
@@ -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.