Dan wrote:
>
> You don't, by chance, know how to get gcc to report variable
> declarations
> mixed in with code as errors (or warnings) do you?
>
> i.e. how do I get the following to cause an error?
>
> void somefunction(){
> int one;
> popuateOne(&one);
> int two;
> }
>
With gcc you can add the --pedantic option to get more errors and
warnings. Add -Wall to turn all warnings into errors as well.
$ gcc --ansi --pedantic test.c
test.c: In function `somefunction':
test.c:4: warning: ISO C90 forbids mixed declarations and code
C:/DOCUME~1/DENNIS~1.HAR/LOCALS~1/Temp/ccOSaaaa.o:test.c:(.text+0xd):
undefined reference to `popuateOne'
HTH
Dennis Cote
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users