[PATCH] Fix error message from -Wcast-qual when casting away volatile
Magnus Reftel
magnus.reftel@gmail.com
Tue Mar 11 13:11:00 GMT 2014
Currently, castring away volatile from a pointer makes -Wcast-qual
claim that __attribute__((noreturn)) was cast away (see bugzilla
55383). The attached patch, originally written by Manuel López-Ibáñez
and updated to match trunk by me, correctes that. No regressions on
gcc from applying this patch (as reported by "make check") were seen.
BR
Magnus Reftel
2014-03-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/55383
* c/c-typeck.c: use correct format string in cast-qual warning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug55383.patch
Type: text/x-patch
Size: 1520 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140311/71e77e3d/attachment.bin>
More information about the Gcc-patches
mailing list