1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

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.
This commit is contained in:
Jim Meyering
2013-10-20 11:32:58 -07:00
parent 88e5b4d464
commit 53a617f5e1
2 changed files with 7 additions and 1 deletions

View File

@@ -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