[splint-discuss] parse error
Ibéria Medeiros
ibemed at gmail.com
Mon Apr 9 17:51:51 PDT 2007
okay,
if i understand, in first place i have to compile the program with C89
specifications (-ansi -pedantic) and after use the splint
thanks,
On 4/10/07, Travis Snoozy <ai2097 at users.sourceforge.net> wrote:
>
> 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
>
> _______________________________________________
> splint-discuss mailing list
> splint-discuss at ares.cs.Virginia.EDU
> http://www.cs.Virginia.EDU/mailman-2.1.5/listinfo/splint-discuss
>
--
Ibéria Medeiros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cs.Virginia.EDU/pipermail/splint-discuss/attachments/20070410/9b565719/attachment.htm
More information about the splint-discuss
mailing list