diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-13 14:26:50 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-13 14:26:50 +0200 |
commit | 78e5c144edb7a5edab8638f663bb83ac329924f9 (patch) | |
tree | 9a781332ae7fa75d4c561f243d0bb8d9f754245a | |
parent | d9ed3c73e18a547a1a7c2d45755fa3bde5f65209 (diff) | |
download | gnulib-78e5c144edb7a5edab8638f663bb83ac329924f9.tar.gz |
ialloc, gethrxtime: Restore GCC diagnostics options.
* lib/ialloc.h: Invoke _GL_INLINE_HEADER_END.
* lib/xtime.h: Likewise.
* Makefile (sc_check_GL_INLINE_HEADER_use): New rule.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | lib/ialloc.h | 2 | ||||
-rw-r--r-- | lib/xtime.h | 2 |
4 files changed, 24 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2023-04-13 Bruno Haible <bruno@clisp.org> + ialloc, gethrxtime: Restore GCC diagnostics options. + * lib/ialloc.h: Invoke _GL_INLINE_HEADER_END. + * lib/xtime.h: Likewise. + * Makefile (sc_check_GL_INLINE_HEADER_use): New rule. + +2023-04-13 Bruno Haible <bruno@clisp.org> + flexmember: Fix module description (regression 2016-09-07). * modules/flexmember (Include): Add "flexmember.h". @@ -227,6 +227,19 @@ sc_check_config_h_reminder: exit $$fail +# Ensure that .h files that invoke _GL_INLINE_HEADER_BEGIN also invoke +# _GL_INLINE_HEADER_END. Otherwise, some GCC diagnostics remain turned off +# for the rest of the compilation unit. +sc_check_GL_INLINE_HEADER_use: + fail=0; \ + for file in `grep -l -F -w _GL_INLINE_HEADER_BEGIN lib/*.h lib/*/*.h`; do \ + grep -l -F -w _GL_INLINE_HEADER_END $$file >/dev/null \ + || { echo "File $$file lacks an invocation of _GL_INLINE_HEADER_END."; \ + fail=1; \ + }; \ + done; \ + exit $$fail + # Ensure that the copyright statements in files and in the module descriptions # are consistent. sc_check_copyright: diff --git a/lib/ialloc.h b/lib/ialloc.h index 8d49887b6a..22f57a47d8 100644 --- a/lib/ialloc.h +++ b/lib/ialloc.h @@ -112,4 +112,6 @@ ireallocarray (void *p, idx_t n, idx_t s) } #endif +_GL_INLINE_HEADER_END + #endif diff --git a/lib/xtime.h b/lib/xtime.h index 84a8a5db9a..50eb4f421e 100644 --- a/lib/xtime.h +++ b/lib/xtime.h @@ -87,4 +87,6 @@ xtime_nsec (xtime_t t) } #endif +_GL_INLINE_HEADER_END + #endif |