diff options
author | Colin Watson <cjwatson@debian.org> | 2022-01-01 02:14:14 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-01-01 02:14:14 +0000 |
commit | 5c28907556920624e6a257b1aeaaa91501306ed8 (patch) | |
tree | 6962d854b1c069350dcf090ddbfe22917ca5bcdd /lib | |
parent | c4ef5112a240de1681c74e4c6b64939090fe0193 (diff) |
Simplify some GCC attribute handling
* include/manconfig.h.in (ATTRIBUTE_FORMAT_PRINTF,
ATTRIBUTE_WARN_UNUSED_RESULT, ATTRIBUTE_SENTINEL): Remove in favour of
Gnulib-provided macros.
(create_tempdir, appendstr): Use _GL_ATTRIBUTE_NODISCARD rather than
ATTRIBUTE_WARN_UNUSED_RESULT.
(debug, debug_error): Use _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM rather than
ATTRIBUTE_FORMAT_PRINTF.
(appendstr): Use _GL_ATTRIBUTE_SENTINEL rather than ATTRIBUTE_SENTINEL.
* lib/debug.c (vdebug): Use _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM rather
than ATTRIBUTE_FORMAT_PRINTF.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debug.c b/lib/debug.c index 53cefe9d..9e2c9c70 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -41,8 +41,8 @@ void init_debug (void) debug_level = true; } -static void ATTRIBUTE_FORMAT_PRINTF (1, 0) vdebug (const char *message, - va_list args) +static void _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 0) vdebug + (const char *message, va_list args) { if (debug_level) vfprintf (stderr, message, args); |