]> Savannah Git Hosting - gnulib.git/commit
assert-h: suppress clang false alarms
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Sep 2022 23:37:37 +0000 (16:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Sep 2022 23:38:50 +0000 (16:38 -0700)
commit8afd7ea017fac149b290b2c8365deaf347e6a711
tree6780cc625360e995b6e6af67560a65520f0c5f68
parentf22af31ef3bc6578250ad8951468456c8a987397
assert-h: suppress clang false alarms

Suppress scads of annoying warnings from clang version 14.0.5
(Fedora 14.0.5-1.fc36) of the form "warning: '_Static_assert' with
no message is a C2x extension [-Wc2x-extensions]",
by refusing to use single-arg static_assert with older clang.
* m4/assert_h.m4 (gl_ASSERT_H): Turn -Wc2x-extensions from a
warning into an error when testing static_assert, so that the
annoying diagnostic causes the test to fail, which causes assert.h
to be replaced in a way that suppresses the diagnostic during
the real build.
ChangeLog
m4/assert_h.m4