[splint-discuss] Parse Error on variable declaration in the middle of a function.

Roland Illig roland.illig at gmx.de
Sat Mar 21 06:40:13 PST 2009


Johan schrieb:
> #include  <stdio.h>
> int main()
> {
>     printf("Hello splint test\n");
> 
>     int i;

This is indeed valid C99.

The point is that Splint can only parse C90, which does not allow
variable declarations after a statement.

Roland


More information about the splint-discuss mailing list