From fd990e649d8607ace9b7d80c900a088cd42273fb Mon Sep 17 00:00:00 2001
From: Paolo Carlini <paolo.carlini@oracle.com>
Date: Thu, 28 Aug 2008 00:40:11 +0000
Subject: [PATCH] c-typeck.c (convert_for_assignment): Adjust
 WARN_FOR_ASSIGNMENT use not updated in the last change.

2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>

	* c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
	use not updated in the last change.

From-SVN: r139689
---
 gcc/ChangeLog  | 5 +++++
 gcc/c-typeck.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2fc73b322044..c57126ffaf64 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
+
+	* c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
+	use not updated in the last change.
+
 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
 
 	* config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index db4718c1967a..9f725884e462 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4286,7 +4286,7 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
 		     qualifier are acceptable if the 'volatile' has been added
 		     in by the Objective-C EH machinery.  */
 		  if (!objc_type_quals_match (ttl, ttr))
-		    WARN_FOR_ASSIGNMENT (input_location,
+		    WARN_FOR_ASSIGNMENT (input_location, 0,
 					 G_("passing argument %d of %qE discards "
 					    "qualifiers from pointer target type"),
 					 G_("assignment discards qualifiers "
-- 
GitLab