diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-23 16:17:52 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-23 16:17:52 +0000 |
commit | 5212eb00fc48c6742788d4ef06eb6068fd0a78ef (patch) | |
tree | a61ea478f0fcb2a256b53afbeceafcce84280409 /gcc/cp/lex.c | |
parent | 03ebca09ee6e3b4bf8d1a9c9b56bd3a0136afb98 (diff) | |
download | gcc-5212eb00fc48c6742788d4ef06eb6068fd0a78ef.tar.gz |
* decl.c (pushdecl, grokdeclarator): Don't call a variadic
function with a non-literal format string.
* lex.c (do_identifier): Likewise.
* typeck.c (build_unary_op): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index c3bdcd9faab..b7fc18fb819 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -3164,18 +3164,18 @@ do_identifier (token, parsing, args) } else if (!DECL_ERROR_REPORTED (id)) { - static char msg[] - = "name lookup of `%s' changed for new ANSI `for' scoping"; DECL_ERROR_REPORTED (id) = 1; if (TYPE_NEEDS_DESTRUCTOR (TREE_TYPE (id))) { - error (msg, IDENTIFIER_POINTER (token)); + error ("name lookup of `%s' changed for new ANSI `for' scoping", + IDENTIFIER_POINTER (token)); cp_error_at (" cannot use obsolete binding at `%D' because it has a destructor", id); id = error_mark_node; } else { - pedwarn (msg, IDENTIFIER_POINTER (token)); + pedwarn ("name lookup of `%s' changed for new ANSI `for' scoping", + IDENTIFIER_POINTER (token)); cp_pedwarn_at (" using obsolete binding at `%D'", id); } } |