On Jun 23, 2008, at 5:42 AM, Jay A. Kreibich wrote: > On Sun, Jun 22, 2008 at 05:36:32PM -0400, Matt Sergeant scratched > on the wall: >> On Sat, 21 Jun 2008 11:50:31 +0700, Dan wrote: >>>> On Thu, 19 Jun 2008 12:05:56 -0400, D. Richard Hipp wrote: >>>>> On Jun 19, 2008, at 11:49 AM, Matt Sergeant wrote: >>>>>> >>>>>> Note that there are some C++ style comments crept back into >>>>>> the code > >>>> Good. You might want to consider adding a test for this - >>> >>> How do you test this? >> >> Effectively a grep for '//' minus those matching http://. > > > Or you could just use a C compiler.... > > > If you're using gcc, "-ansi" will turn off all the "bending of the > rules" the default gcc environment has, including the ability to > understand C++ style comments. > > For this and other reasons, I would suggest altering the Makefiles > so that "-ansi" is used any time gcc is being used.
That's a trick worth knowing, thanks! 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; } Thanks, Dan. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users