You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Huelsmann <e....@gmx.net> on 2004/09/23 08:45:15 UTC

gcc -pedantic && -std=c89 or -std=c99

Just for the record and as a follow up to removing the -std=c89 flag from
maintainer-mode compiles, I compiled trunk@11090 with '-pedantic' without
any -std= flags, with -std=c89 and with -std=c99. Tests were conducted with
gcc 3.2.2.

The results are as follows

-pedantic without -std=      must be equal to -std=c89
-pedantic with -std=c89      screens full of warnings in APR headers
-pedantic with -std=c99      a few errors in both APR and Subversion


None of the above switches warns about the 'declaration in middle of
function' warning gcc 2.95 warns about after applying the sec fixes as
reported after the RC4 release for 1.1.0.


bye,

Erik.

-- 
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: gcc -pedantic && -std=c89 or -std=c99

Posted by Greg Hudson <gh...@MIT.EDU>.
On Thu, 2004-09-23 at 04:45, Erik Huelsmann wrote:
> None of the above switches warns about the 'declaration in middle of
> function' warning gcc 2.95 warns about after applying the sec fixes as
> reported after the RC4 release for 1.1.0.

-Wdeclaration-after-statement, first appeared in gcc 3.4.0.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org