[splint-discuss] Parse error due to byteorder.h
Richard A. O'Keefe
ok at cs.otago.ac.nz
Fri May 26 00:23:51 EDT 2006
> HOW ABOUT SHOWING US THE LINE(S) OF CODE INVOLVED?
<rasmit.ranjan at wipro.com> still has not done this.
No 'splint -help parseerrors' does not help as wel.
What do you *mean* "does not help"?
For example, "splint -help parseerrors" says, amongst other things,
Splint supports some of the GNU (gcc) compiler extensions, if the
+gnuextensions flag is set. You may be able to workaround other
compiler extensions by using a pre-processor define. Alternately,
you can surround the unparseable code with
# ifndef S_SPLINT_S
Have you tried setting the +gnuextensions flag?
What happened when you did?
What particular extension is giving splint trouble?
IT WOULD HELP A LOT IF YOU SHOWED US THE LINES THAT SPLINT IS COMPLAINING
ABOUT; we don't have the same .h file as you.
Is it something you could try giving a #define for so that what splint
sees is different from what gcc sees?
Is it possible for you to make a copy of the .h file,
put #ifndef S_SPLINT_S around the offending code like -help parseerrors
suggests, and include that .h file instead of the original?
Then what next ? Is there any other way out?
I ask again, try SHOWING us the actual lines of code.
At least some of us do not have the same version of the file as you do.
More information about the splint-discuss