]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not use -Wanalyzer-fd-leak
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 01:51:23 +0000 (18:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 02:28:11 +0000 (19:28 -0700)
* configure.ac: Append -Wno-analyzer-fd-leak to WARN_CFLAGS when
configuring with --enable-gcc-warnings, to work around
GCC bug 109847.

configure.ac

index 8b08100464e8d8d52f5abb5767c9fc505fe0df22..95167329c28aa9326292388fd51b04ea92434bff 100644 (file)
@@ -1136,6 +1136,8 @@ AS_IF([test $gl_gcc_warnings = no],
   gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
   gl_WARN_ADD([-Wno-format-nonliteral])
   gl_WARN_ADD([-Wno-bidi-chars])
+  AS_IF([test $gl_gcc_warnings = yes],
+    [gl_WARN_ADD([-Wno-analyzer-fd-leak])]) # GCC bug 109839
 
   # clang is unduly picky about some things.
   if test "$emacs_cv_clang" = yes; then