emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7f1beab: Port --enable-gcc-warnings to recent clang


From: Paul Eggert
Subject: [Emacs-diffs] master 7f1beab: Port --enable-gcc-warnings to recent clang
Date: Tue, 9 Oct 2018 14:16:31 -0400 (EDT)

branch: master
commit 7f1beabfcdcb58d90aa78db22b9a123faf298749
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port --enable-gcc-warnings to recent clang
    
    * configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 6f3d733..df91028 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1019,9 +1019,10 @@ AS_IF([test $gl_gcc_warnings = no],
   gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
   gl_WARN_ADD([-Wno-format-nonliteral])
 
-  # clang is unduly picky about braces.
+  # clang is unduly picky about some things.
   if test "$emacs_cv_clang" = yes; then
     gl_WARN_ADD([-Wno-missing-braces])
+    gl_WARN_ADD([-Wno-null-pointer-arithmetic])
   fi
 
   # This causes too much noise in the MinGW build



reply via email to

[Prev in Thread] Current Thread [Next in Thread]