r192869 - This is now passing. Uncomment and close out PR6281.

Bill Wendling isanbard at gmail.com
Thu Oct 17 22:09:50 PDT 2013


It had the same behavior as gcc when the -Wcast-qual flag was used, so maybe the comment is incorrect?

-bw

On Oct 17, 2013, at 5:28 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

> The comment says it should *not* warn, so it doesn't look fixed.
> 
> On 17 October 2013 00:13, Bill Wendling <isanbard at gmail.com> wrote:
>> Author: void
>> Date: Wed Oct 16 23:13:35 2013
>> New Revision: 192869
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=192869&view=rev
>> Log:
>> This is now passing. Uncomment and close out PR6281.
>> 
>> Modified:
>>    cfe/trunk/test/Sema/warn-unused-function.c
>> 
>> Modified: cfe/trunk/test/Sema/warn-unused-function.c
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unused-function.c?rev=192869&r1=192868&r2=192869&view=diff
>> ==============================================================================
>> --- cfe/trunk/test/Sema/warn-unused-function.c (original)
>> +++ cfe/trunk/test/Sema/warn-unused-function.c Wed Oct 16 23:13:35 2013
>> @@ -12,10 +12,8 @@ int x = sizeof(f0());
>> static void f3();
>> extern void f3() { } // expected-warning{{unused}}
>> 
>> -// FIXME: This will trigger a warning when it should not.
>> -// Update once PR6281 is fixed.
>> -//inline static void f4();
>> -//void f4() { }
>> +inline static void f4();
>> +void f4() { } // expected-warning{{unused}}
>> 
>> static void __attribute__((used)) f5() {}
>> static void f6();
>> 
>> 
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits





More information about the cfe-commits mailing list