[Patch] Add "unavailable" attribute [ObjC V1 prerequisite].
Manuel López-Ibáñez
lopezibanez@gmail.com
Fri Apr 16 22:53:00 GMT 2010
On 16 April 2010 21:12, IainS <developer@sandoe-acoustics.co.uk> wrote:
>
>>> I also found that there were a few cases were two warnings were emitted
>>> for a
>>> single source error.
>>> I've rearranged the checks to the best of my ability to avoid that (for
>>> both
>>> deprecation and unavailability).
>>
>> Likewise (though it may not be possible to add testcases for duplication
>> of diagnostics).
>
> No, I don't think we can - one has to check the .log files manually (which I
> was doing).
This is PR30612 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30612 and
the workaround is to use:
/* { dg-bogus "message.*message" } */
/* { dg-warning "message" "" { target *-*-* } 1 } */
BTW, does your patch fix PR17729
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17729?
Cheers,
Manuel.
More information about the Gcc-patches
mailing list