[splint-discuss] parse error

Travis Snoozy ai2097 at users.sourceforge.net
Mon Apr 9 17:38:07 PDT 2007


On Mon, 9 Apr 2007 22:49:09 +0000, "Ibéria Medeiros" <ibemed at gmail.com>
wrote:

<snip>
> the splint return a parse error.... i supose, maybe, because the
> declaration of _b_ is after a instruction (a = c). Because, if i
> declare _b_ before that instruction, splint dont give me any parse
> error. Why splint dont work with  declarations of variables in any
> part of the program?? Exist any flag in splint to acept that??
<snip>

In ANSI C (C89), variable declarations must come first in your code. If
you are using GCC, you can use the -ansi -pedantic set of
switches to flag this behavior. At present, splint works only with C89,
not C99.

-- 
Travis



More information about the splint-discuss mailing list