[PATCHv3] implement -Wold-style-cast
ondra.hosek at gmail.com
Tue Nov 26 10:51:09 PST 2013
On Tue, Nov 26, 2013 at 9:37 AM, Alp Toker <alp at nuanti.com> wrote:
> GCC doesn't warn on (void) casts.
> The patch should be fixed to handle these cases too:
> (void)x; // no warning
> (long)x; // warning
> The necessary checks can be done in Parse, but might be slightly easier /
> future-proof handle them in Sema.
Thanks for the feedback; I have updated the patch accordingly.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2309 bytes
Desc: not available
More information about the cfe-commits