]> Savannah Git Hosting - gnulib.git/commitdiff
assert-h: suppress Apple clang 13 false alarms
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Oct 2022 00:35:18 +0000 (17:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Oct 2022 00:35:52 +0000 (17:35 -0700)
* m4/assert_h.m4 (gl_ASSERT_H): Suppress bogus warnings from Apple
clang 13 (clang-1300.0.29.30).  Problem privately reported by
Mattias EngdegĂ„rd for GNU Emacs.

ChangeLog
m4/assert_h.m4

index 3b97909de597b01d9aab03f7b00d6b91864b5318..74b496ddee90e886f0de5de8b032b8179858e61d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       assert-h: suppress Apple clang 13 false alarms
+       * m4/assert_h.m4 (gl_ASSERT_H): Suppress bogus warnings from Apple
+       clang 13 (clang-1300.0.29.30).  Problem privately reported by
+       Mattias EngdegĂ„rd for GNU Emacs.
+
 2022-09-26  Daiki Ueno  <ueno@gnu.org>
 
        largefile: fix detection of time_t size on mingw32
index c411a34aa7bd2dc6fa8f250b17a00badbb6ed328..c1306daef4f233d9ee63e5a0ca04fc344eed3c36 100644 (file)
@@ -18,6 +18,7 @@ AC_DEFUN([gl_ASSERT_H],
        [AC_LANG_PROGRAM(
           [[#if defined __clang__ && __STDC_VERSION__ < 202311
              #pragma clang diagnostic error "-Wc2x-extensions"
+             #pragma clang diagnostic error "-Wc++17-extensions"
             #endif
             #ifdef INCLUDE_ASSERT_H
              #include <assert.h>