aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-03-18 19:58:39 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-03-18 19:58:39 +0000
commit7485aeea44b120d4d64e85401f08d172426a81fe (patch)
treeb4e00677d0d99863e9ffc59c2a7b89222aec0546 /gcc/c
parentb318e4049b9e6083495f7b06ef3d3aa6175ac518 (diff)
downloadgcc-7485aeea44b120d4d64e85401f08d172426a81fe.zip
gcc-7485aeea44b120d4d64e85401f08d172426a81fe.tar.gz
gcc-7485aeea44b120d4d64e85401f08d172426a81fe.tar.bz2
re PR c/55383 (-Wcast-qual reports incorrect message)
2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> 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
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog5
-rw-r--r--gcc/c/c-typeck.c2
2 files changed, 6 insertions, 1 deletions
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 <manu@gcc.gnu.org>
+
+ PR c/55383
+ * c-typeck.c: Use correct format string in cast-qual warning
+
2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
* 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)