# HG changeset patch # User Jim Meyering # Date 1382293978 25200 # Node ID 3ef76f6983e8698bd8de32857a3919d42a2d9c01 # Parent 6f482e14788b3447747d044431ca95f54449dcdf 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 -r 6f482e14788b -r 3ef76f6983e8 ChangeLog --- a/ChangeLog Sat Oct 12 19:28:40 2013 -0700 +++ b/ChangeLog Sun Oct 20 11:32:58 2013 -0700 @@ -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 -r 6f482e14788b -r 3ef76f6983e8 lib/error.c --- a/lib/error.c Sat Oct 12 19:28:40 2013 -0700 +++ b/lib/error.c Sun Oct 20 11:32:58 2013 -0700 @@ -195,7 +195,7 @@ #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