]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't warn about missing brances on macOS
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 May 2017 19:18:35 +0000 (21:18 +0200)
committerPhilipp Stephani <phst@google.com>
Tue, 23 May 2017 19:18:35 +0000 (21:18 +0200)
On macOS, removing -Wmissing-braces is not enough; the warning has to
be disabled explicitly.

configure.ac

index 12e44d949c58b6c2b01ffdb4b922337ad0cc8271..6d23b5d214e320b9821906f2cac79a2a3c8ddfc1 100644 (file)
@@ -986,6 +986,7 @@ AS_IF([test $gl_gcc_warnings = no],
 
   # More things that clang is unduly picky about.
   if test $emacs_cv_clang = yes; then
+    gl_WARN_ADD([-Wno-missing-braces])
     gl_WARN_ADD([-Wno-tautological-compare])
     gl_WARN_ADD([-Wno-tautological-constant-out-of-range-compare])
   fi