[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Single Character Compile nit on Win32

From: Kirby C. Bohling <kbohling_at_birddog.com>
Date: 2002-06-06 18:11:31 CEST

Philip Martin wrote:
> Karl Fogel <kfogel@newton.ch.collab.net> writes:
>>brane@xbc.nu writes:
>>> correctly. And sure enough, 'gcc -ansi -pedantic' does warn
>>>I vote we add those options to --enable-maintainer-mode if the compiler is gcc.
>>+1 on that. We "should" be strictly ansi anyway, so this ought not
>>cause any latent warnings to become visible -- and if it does, we want
>>to know about it.
> gcc 2.95 will generate warnings about the use of "long long" with
> these options, and "long long" occurs in apr.h. There is a danger that
> these warnings will swap anything useful. If we detect gcc 3.0 or
> greater we could use -std=c99 -pedantic without this problem.

 From RH7.2 man gcc

        -Wlong-long Warn if long long type is used. This is default.
To inhibit the warning messages, use flag `-Wno-long-long'. Flags
`-W-long-long' and `-Wno-long-long' are taken into account only when
flag `-pedantic' is used.

        So how about -ansi -pedantic -Wno-long-long if that exists for the 2.95
compiler (I know RH72 uses the goofy 2.96, but I'd be surprised if it
isn't there in the 2.95 that supports long longs)? I don't have a 2.95
compiler handy to test with, sorry if I'm all wrong on this one...


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 6 18:17:49 2002

This is an archived mail posted to the Subversion Dev mailing list.