[cfe-commits] [Patch] Fix -Wignored-qualifiers

Hans Wennborg hans at chromium.org
Wed Feb 23 08:47:35 PST 2011


The current -Wignored-qualifiers warning fails at the following:

const char* const f(); // It points out the wrong 'const' as the culprit
char* const f(); // It doesn't warn at all.

Attaching a patch to fix this. I believe this also fixes part of
http://llvm.org/pr9058 (the part that concerns return type
qualifiers).

Please review.

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignored_return_type_qualifiers.patch
Type: text/x-patch
Size: 8970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110223/15c1edc8/attachment.bin>


More information about the cfe-commits mailing list