[cfe-dev] Clang does not warn on casting away type qualifier.
John McCall
rjmccall at apple.com
Thu Apr 11 23:03:52 PDT 2013
On Apr 11, 2013, at 9:39 PM, Michael Han <fragmentshaders at gmail.com> wrote:
> This code would get a warning on g++ with -Wcast-qual:
>
> int *func(const int *ci) {
> return (int *)ci;
> }
>
> Clang does not warn on this code because driver parses the -Wcast-qual and just ignores it. Is this warning designed to be ignored in Clang or is it just not implemented yet?
Just not implemented yet.
John.
More information about the cfe-dev
mailing list