From: Paul Eggert Date: Wed, 20 Apr 2022 01:02:43 +0000 (-0700) Subject: verify: port to pedantic gcc -std=c99 X-Git-Tag: v1.0~2314 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=45330432b38e3ccce77adbdec7da0f7985f05f71;p=gnulib.git verify: port to pedantic gcc -std=c99 * lib/verify.h (_GL_VERIFY): If we lack both _Static_assert and static_assert, suppress -Wnexted-externs. --- diff --git a/ChangeLog b/ChangeLog index 9bab736be4..c2509b8387 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-04-19 Paul Eggert + verify: port to pedantic gcc -std=c99 + * lib/verify.h (_GL_VERIFY): If we lack both _Static_assert and + static_assert, suppress -Wnexted-externs. + gettime-res: add tests * modules/gettime-res-tests, tests/test-gettime-res.c: New files. diff --git a/lib/verify.h b/lib/verify.h index c2d2a56670..c5c63ae97c 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -215,6 +215,9 @@ template # define _GL_VERIFY(R, DIAGNOSTIC, ...) \ extern int (*_GL_GENSYM (_gl_verify_function) (void)) \ [_GL_VERIFY_TRUE (R, DIAGNOSTIC)] +# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) +# pragma GCC diagnostic ignored "-Wnested-externs" +# endif #endif /* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */