From: Jim Meyering Date: Sun, 20 Oct 2013 18:32:58 +0000 (-0700) Subject: error: add the printf attribute to a static function X-Git-Tag: v0.1~9 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=53a617f5e118ec5642daa3da45fcef0bf5593b12 error: add the printf attribute to a static function * lib/error.c (error_tail): Add the printf attribute, to placate gcc's -Werror=suggest-attribute=format option. --- diff --git a/ChangeLog b/ChangeLog index 77a1d0d7d..1855d1680 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-20 Jim Meyering + + error: add the printf attribute to a static function + * lib/error.c (error_tail): Add the printf attribute, to placate + gcc's -Werror=suggest-attribute=format option. + 2013-10-12 Jim Meyering error: make the module depend on vfprintf-posix diff --git a/lib/error.c b/lib/error.c index 865b29340..cdc3026fc 100644 --- a/lib/error.c +++ b/lib/error.c @@ -195,7 +195,7 @@ print_errno_message (int errnum) #endif } -static void +static void _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0) _GL_ARG_NONNULL ((3)) error_tail (int status, int errnum, const char *message, va_list args) { #if _LIBC