Stephen Warren wrote: > On Sun, March 30, 2008 11:41 pm, Phil Dibowitz wrote: >> And again, you missed what I said about declarations not at the top. This >> is why we use -ansi -pedantic-errors: >> >> [EMAIL PROTECTED] tmp]$ gcc -std=c99 foo.c >> [EMAIL PROTECTED] tmp]$ gcc -std=c99 -pedantic-errors foo.c >> [EMAIL PROTECTED] tmp]$ gcc -ansi -pedantic-errors foo.c >> foo.c: In function 'main': >> foo.c:9: error: ISO C90 forbids mixed declarations and code >> [EMAIL PROTECTED] tmp]$ >> >> It's the ONLY combination that seems to catch that error. > > Yes, but: > > a) There's no reason to care about this, because like I said, I believe we > can fix the Windows build issues by building concordance.c as C++ instead > of C.
No, I'd like to make sure concordance is a lowest-common-denominator client. I want it to be compiled as C. > b) Those gcc options cause gcc (some versions, e.g. 4.1.x, 4.3.x) to fail > to build concordance. Do we really want to prevent compilation on Linux > just so it works on Windows? I missed that it was an error for you, thought it was a warning. What if we change -pedantic-errors to -pedantic-warnings, does it then build for you? -- Phil Dibowitz [EMAIL PROTECTED] Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Never write it in C if you can do it in 'awk'; Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr' can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel