This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]