This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for gettext warning in c-typeck.c
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 15 Jan 2002 16:29:44 +0000 (GMT)
- Subject: Patch for gettext warning in c-typeck.c
This patch fixes a problem shown up by a gettext warning: a msgid
argument of readonly_warning, that gets passed to _() inside that
function, also gets passed to _() in the caller.
Bootstrapped with no regressions on i686-pc-linux-gnu. Applied to
mainline.
2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
* c-typeck.c (build_unary_op): Don't wrap msgid argument of
readonly_warning in _().
--- c-typeck.c.orig Tue Jan 15 11:40:24 2002
+++ c-typeck.c Tue Jan 15 14:09:34 2002
@@ -3085,7 +3085,7 @@ build_unary_op (code, xarg, flag)
readonly_warning (arg,
((code == PREINCREMENT_EXPR
|| code == POSTINCREMENT_EXPR)
- ? _("increment") : _("decrement")));
+ ? "increment" : "decrement"));
if (TREE_CODE (TREE_TYPE (arg)) == BOOLEAN_TYPE)
val = boolean_increment (code, arg);
--
Joseph S. Myers
jsm28@cam.ac.uk