diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-19 18:02:43 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-19 18:24:23 -0700 |
commit | 45330432b38e3ccce77adbdec7da0f7985f05f71 (patch) | |
tree | 7e1f2e1db591b6f40355f3364aca7583872435c6 /lib | |
parent | f67c0cfb02c920bd89f490c7790f991db45a0bc5 (diff) | |
download | gnulib-45330432b38e3ccce77adbdec7da0f7985f05f71.tar.gz |
verify: port to pedantic gcc -std=c99
* lib/verify.h (_GL_VERIFY): If we lack both _Static_assert and
static_assert, suppress -Wnexted-externs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/verify.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <int w> # 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. */ |