[cfe-commits] r41432 - /cfe/trunk/test/Sema/array-constraint.c

Steve Naroff snaroff at apple.com
Sun Aug 26 07:42:48 PDT 2007


On Aug 25, 2007, at 11:50 PM, Chris Lattner wrote:

>> URL: http://llvm.org/viewvc/llvm-project?rev=41432&view=rev
>> Log:
>> steve's recent changes fixed this bogus warning.
>
> Actually, this went away because the warning became off by default
> without -pedantic.  Steve, why is this warning in the first place?
>

Totally bogus warning. Just committed a fix.

snaroff

> -Chris
>
>> Modified:
>>     cfe/trunk/test/Sema/array-constraint.c
>>
>> Modified: cfe/trunk/test/Sema/array-constraint.c
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-
>> constraint.c?rev=41432&r1=41431&r2=41432&view=diff
>>
>> ===================================================================== 
>> =
>> ========
>> --- cfe/trunk/test/Sema/array-constraint.c (original)
>> +++ cfe/trunk/test/Sema/array-constraint.c Sun Aug 26 01:48:28 2007
>> @@ -2,7 +2,7 @@
>>
>>  struct s;
>>  struct s* t (struct s z[]) {   // expected-error {{array has
>> incomplete element type}}
>> -  return z;                    // expected-warning {{incompatible
>> pointer type returning}}
>> +  return z;
>>  }
>>
>>  void *k (void l[2]) {          // expected-error {{array has
>> incomplete element type}}
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
> _______________________________________________
> 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