diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-06-09 02:40:08 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-06-09 02:40:08 +0000 |
commit | 57d802974a9865404e70851fc3ca710c077d1d1f (patch) | |
tree | 959ac971a137daac5692ea8ea5057db4be23bc81 /gcc | |
parent | 1f8e46828a49664e245a474f5c0c4ebd5c7bc213 (diff) | |
download | gcc-57d802974a9865404e70851fc3ca710c077d1d1f.zip gcc-57d802974a9865404e70851fc3ca710c077d1d1f.tar.gz gcc-57d802974a9865404e70851fc3ca710c077d1d1f.tar.bz2 |
gengtype.h (error_at_line): Use PARAMS, not VPARAMS.
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
ATTRIBUTE_PRINTF_2.
* gengtype-lex.l: Fix format specifier warning.
From-SVN: r54394
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gengtype-lex.l | 2 | ||||
-rw-r--r-- | gcc/gengtype.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0598383..91dc339 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l index c638376..6a21262 100644 --- a/gcc/gengtype-lex.l +++ b/gcc/gengtype-lex.l @@ -283,7 +283,7 @@ ITYPE {IWORD}({WS}{IWORD})* "%}" { BEGIN(in_struct); } "%" { error_at_line (&lexer_line, - "unterminated %{; unexpected EOF"); + "unterminated %%{; unexpected EOF"); } } diff --git a/gcc/gengtype.h b/gcc/gengtype.h index e5f92f2..1e8eec7 100644 --- a/gcc/gengtype.h +++ b/gcc/gengtype.h @@ -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)); |