PATCH RFA: Improve -Wcast-qual warning for C
Ian Lance Taylor
iant@google.com
Mon Jun 1 16:49:00 GMT 2009
"Joseph S. Myers" <joseph@codesourcery.com> writes:
>> gcc/ChangeLog:
>>
>> 2009-05-29 Ian Lance Taylor <iant@google.com>
>>
>> * c-typeck.c (handle_warn_cast_qual): New static function,
>> partially broken out of build_c_cast.
>> (build_c_cast): Call handle_warn_cast_qual.
>> * doc/invoke.texi (Warning Options): Document new effect of
>> -Wcast-qual.
>>
>> gcc/testsuite/ChangeLog:
>>
>> 2009-05-29 Ian Lance Taylor <iant@google.com>
>>
>> * gcc.dg/cast-qual-3.c: New testcase.
>
> The C changes are OK.
>
>> * g++.dg/warn/Wcast-qual2.C: New testcase.
Janis approved the C++ test case off-list. Committed to mainline as
revision 148053.
Ian
More information about the Gcc-patches
mailing list