* emacsclient.c (message): Mark it as a printf-like function.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 19:59:58 +0000 (12:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 19:59:58 +0000 (12:59 -0700)
lib-src/ChangeLog
lib-src/emacsclient.c

index 78548ee..93c0179 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * emacsclient.c (message): Mark it as a printf-like function.
+
 2011-04-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        * make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
index 737a8d8..c5231fb 100644 (file)
@@ -487,6 +487,7 @@ ttyname (int fd)
 
 /* Display a normal or error message.
    On Windows, use a message box if compiled as a Windows app.  */
+static void message (int, const char *, ...) ATTRIBUTE_FORMAT_PRINTF (2, 3);
 static void
 message (int is_error, const char *format, ...)
 {