]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gengtype.h (error_at_line): Use PARAMS, not VPARAMS.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 9 Jun 2002 02:40:08 +0000 (02:40 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 9 Jun 2002 02:40:08 +0000 (02:40 +0000)
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
ATTRIBUTE_PRINTF_2.
* gengtype-lex.l: Fix format specifier warning.

From-SVN: r54394

gcc/ChangeLog
gcc/gengtype-lex.l
gcc/gengtype.h

index 0598383b62cd5f1fe56963f5cd7940c594da74af..91dc33954dada07d9bc0b0ce2d7bcc3b5ac1e48b 100644 (file)
@@ -1,5 +1,9 @@
 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
+       ATTRIBUTE_PRINTF_2.
+       * gengtype-lex.l: Fix format specifier warning.
+
        * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
        not isspace.
        * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
index c6383760197d4987febda5a427793748d002541d..6a212627bc1ad73774843d491a2fbf93febe60f6 100644 (file)
@@ -283,7 +283,7 @@ ITYPE       {IWORD}({WS}{IWORD})*
 "%}"           { BEGIN(in_struct); }
 "%"            {
   error_at_line (&lexer_line, 
-                "unterminated %{; unexpected EOF");
+                "unterminated %%{; unexpected EOF");
 }
 }
 
index e5f92f2644b2ee58ac7cfe805235de12f0afa5e3..1e8eec7cc40343012c40b192c65ca504dbe05b0b 100644 (file)
@@ -109,7 +109,7 @@ extern struct fileloc lexer_line;
 
 /* Print an error message.  */
 extern void error_at_line 
-  VPARAMS ((struct fileloc *pos, const char *msg, ...));
+  PARAMS ((struct fileloc *pos, const char *msg, ...)) ATTRIBUTE_PRINTF_2;
 
 /* Constructor routines for types.  */
 extern void do_typedef PARAMS ((const char *s, type_p t, struct fileloc *pos));