]> granicus.if.org Git - graphviz/commitdiff
enable some additional C99 compiler warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 3 Feb 2021 03:43:58 +0000 (19:43 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Feb 2021 20:49:30 +0000 (12:49 -0800)
These can now be turned on without adding warnings to the Autotools build.

configure.ac

index 4c08de18d8c7bed765d5673113d5d605baffb6ba..7fffb54e33491d3e5b66f00967dfe50ca69235d6 100644 (file)
@@ -333,11 +333,12 @@ then
   # Enable specific warning flags not included by -Wall or -Wextra
   CFLAGS="${CFLAGS} -Wmissing-include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
 
- # if C99, then enable additional warnings
+  # Enable additional C99 warnings
+  CFLAGS="${CFLAGS} -Wtrampolines -Wlogical-op"
 # if [test "${ac_cv_prog_cc_c99}" != "no"]
 # then
     # FIXME - not available on centos[56]: gcc-4.1.2, gcc-4.4.7
-    # CFLAGS="${CFLAGS} -Wdouble-promotion -Wtrampolines -Wlogical-op"
+    # CFLAGS="${CFLAGS} -Wdouble-promotion"
 #  fi
 fi
 # Workaround for native compilers