diff options
| author | Paul Eggert | 2018-10-09 11:16:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-10-09 11:16:26 -0700 |
| commit | 7f1beabfcdcb58d90aa78db22b9a123faf298749 (patch) | |
| tree | a90a43614f6e34fd5c4e6bbeddad21a0c93b16f9 | |
| parent | 1f88943924d4e5c98e209790ee8c69b8ab8621d0 (diff) | |
| download | emacs-7f1beabfcdcb58d90aa78db22b9a123faf298749.tar.gz emacs-7f1beabfcdcb58d90aa78db22b9a123faf298749.zip | |
Port --enable-gcc-warnings to recent clang
* configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).
| -rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6f3d7338c35..df910280b43 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1019,9 +1019,10 @@ AS_IF([test $gl_gcc_warnings = no], | |||
| 1019 | gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now | 1019 | gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now |
| 1020 | gl_WARN_ADD([-Wno-format-nonliteral]) | 1020 | gl_WARN_ADD([-Wno-format-nonliteral]) |
| 1021 | 1021 | ||
| 1022 | # clang is unduly picky about braces. | 1022 | # clang is unduly picky about some things. |
| 1023 | if test "$emacs_cv_clang" = yes; then | 1023 | if test "$emacs_cv_clang" = yes; then |
| 1024 | gl_WARN_ADD([-Wno-missing-braces]) | 1024 | gl_WARN_ADD([-Wno-missing-braces]) |
| 1025 | gl_WARN_ADD([-Wno-null-pointer-arithmetic]) | ||
| 1025 | fi | 1026 | fi |
| 1026 | 1027 | ||
| 1027 | # This causes too much noise in the MinGW build | 1028 | # This causes too much noise in the MinGW build |