diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-03-18 19:58:39 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-03-18 19:58:39 +0000 |
commit | 7485aeea44b120d4d64e85401f08d172426a81fe (patch) | |
tree | b4e00677d0d99863e9ffc59c2a7b89222aec0546 /gcc/c | |
parent | b318e4049b9e6083495f7b06ef3d3aa6175ac518 (diff) | |
download | gcc-7485aeea44b120d4d64e85401f08d172426a81fe.tar.gz |
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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c/c-typeck.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 9d854a7feb6..b39b7d654bd 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 524a59f12e2..0bfc12beabe 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) |