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

Johan splint at fun-tech.se
Sat Mar 21 07:20:03 PST 2009


Michael Wojcik wrote:
> Splint is mostly a C90 implementation, and in C90 declarations can only
> appear at the beginning of a block. Support for some parts of C99 have
> been added, but this one is (apparently) not one of them, at least in
> the version you have.
>
> Patches to Splint to allow variable declarations elsewhere in a block
> have been posted to this list at least as far back as 2006; you can
> check the archives.
>
>   

I guess that this means that it is a known issue and there
is no point in adding a bug report on this one.

But is there any plan to maybe add flags (-c90, -c99) to select set of 
rule to use?
Or something similar?

Thanks
Johan


More information about the splint-discuss mailing list