changeset 37211:3ef76f6983e8

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.
author Jim Meyering <meyering@fb.com>
date Sun, 20 Oct 2013 11:32:58 -0700
parents 6f482e14788b
children 5679a74c9809
files ChangeLog lib/error.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <meyering@fb.com>
+
+	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  <meyering@fb.com>
 
 	error: make the module depend on vfprintf-posix
--- 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