From 42b4e10f2649dda70b0bd65943c57f78bbca17a0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Jan 2023 12:13:26 -0800 Subject: [PATCH] assert-h: suppress xlclang 16.1 false alarms * m4/assert_h.m4 (gl_ASSERT_H): Pacify older clangs too, with regard to single-argument static_assert. Problem found with xlclang 16.1 on AIX 7.2. --- ChangeLog | 5 +++++ m4/assert_h.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b3b8ce5b9f..eb19f7dc0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2023-01-13 Paul Eggert + assert-h: suppress xlclang 16.1 false alarms + * m4/assert_h.m4 (gl_ASSERT_H): Pacify older clangs too, + with regard to single-argument static_assert. + Problem found with xlclang 16.1 on AIX 7.2. + assert-h: fix configure comment-out * m4/assert_h.m4 (gl_ASSERT_H): Also break apart "#undef static_assert" with /**/. Problem discovered with xlclang 16.1, diff --git a/m4/assert_h.m4 b/m4/assert_h.m4 index abba4fa3a1..3801452ef0 100644 --- a/m4/assert_h.m4 +++ b/m4/assert_h.m4 @@ -18,7 +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" + #pragma clang diagnostic error "-Wc++1z-extensions" #endif #ifdef INCLUDE_ASSERT_H #include -- 2.39.5