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

Chris Lattner clattner at apple.com
Sat Aug 25 23:50:10 PDT 2007


> 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?

-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




More information about the cfe-commits mailing list