From 7485aeea44b120d4d64e85401f08d172426a81fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 18 Mar 2014 19:58:39 +0000 Subject: re PR c/55383 (-Wcast-qual reports incorrect message) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2014-03-18 Manuel López-Ibáñez PR c/55383 c/ * c-typeck.c: Use correct format string in cast-qual warning testsuite/ * c-c++-common/Wcast-qual-1.c: More precise match text. From-SVN: r208661 --- gcc/c/ChangeLog | 5 +++++ gcc/c/c-typeck.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 9d854a7..b39b7d6 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2014-03-18 Manuel López-Ibáñez + + PR c/55383 + * c-typeck.c: Use correct format string in cast-qual warning + 2014-03-07 Thomas Schwinge * c-decl.c (c_decl_attributes): Use diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index 524a59f..0bfc12b 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -4855,7 +4855,7 @@ handle_warn_cast_qual (location_t loc, tree type, tree otype) /* There are qualifiers present in IN_OTYPE that are not present in IN_TYPE. */ warning_at (loc, OPT_Wcast_qual, - "cast discards %q#v qualifier from pointer target type", + "cast discards %qv qualifier from pointer target type", discarded); if (added || discarded) -- cgit v1.1