]> code.delx.au - gnu-emacs/blobdiff - configure.ac
Fix compiler warnings in the MinGW build
[gnu-emacs] / configure.ac
index 22ec4942141c528111652638b52bb1eb54a53e89..e88a3a943aca34f33be92f33f7bd96bdb5f58a55 100644 (file)
@@ -967,6 +967,11 @@ AS_IF([test $gl_gcc_warnings = no],
     nw="$nw -Wcast-align"
   fi
 
+  # This causes too much noise in the MinGW build
+  if test $opsys = mingw32; then
+    nw="$nw -Wpointer-sign"
+  fi
+
   gl_MANYWARN_ALL_GCC([ws])
   gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
   for w in $ws; do
@@ -987,6 +992,11 @@ AS_IF([test $gl_gcc_warnings = no],
     gl_WARN_ADD([-Wno-unused-value])
   fi
 
+  # This causes too much noise in the MinGW build
+  if test $opsys = mingw32; then
+    gl_WARN_ADD([-Wno-pointer-sign])
+  fi
+
   AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
   AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
   AH_VERBATIM([GNULIB_PORTCHECK_FORTIFY_SOURCE],