You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2002/07/10 01:16:16 UTC

--Wstrict-prototypes and openssl, two great things that suck together!

so at some point we started adding a bunch of extra gcc warnings to
our build system (which i think is a great thing BTW, compiling with
warnings turned way the hell up is good).

unfortunately, one of them is -Wstrict-prototypes.

not that i have anything against strict prototypes, quite the
contrary, i'm all for them, but they're tripping a ton of warnings in
openssl headers which my version of neon includes.

apparently openssl has a ton of things like this:

typedef struct foo {
  int (*ssl_function_pointer)();
} FOO;

and -Wstrict-warnings appears to be quite unhappy with that empty ()
at the end.  changing it to (void) fixes the problem, but i don't have
the energy to fight with openssl to get them to fix their headers, and
there's a huge installed base of screwed up openssl headers already
out there, and the way things stand it makes it completely and totally
impossible to tell if there are any real warnings in libsvn_ra_dav.

so could someone tell me where the knob is to turn these extra
warnings off, for my own sanity?  looking in the likely places
(configure.in, various files in ac-helpers, etc) has turned up
nothing, and i'm starting to have that 'missing something obvious'
kind of feeling...

thanks,

-garrett

-- 
garrett rooney                    Remember, any design flaw you're 
rooneg@electricjellyfish.net      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski

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

Re: --Wstrict-prototypes and openssl, two great things that suck together!

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Tue, Jul 09, 2002 at 06:19:45PM -0700, Justin Erenkrantz wrote:
> On Tue, Jul 09, 2002 at 09:16:16PM -0400, Garrett Rooney wrote:
> > so at some point we started adding a bunch of extra gcc warnings to
> > our build system (which i think is a great thing BTW, compiling with
> > warnings turned way the hell up is good).
> > 
> > unfortunately, one of them is -Wstrict-prototypes.
> 
> Adding -Wno-strict-prototypes to CFLAGS should work.  -- justin

i don't believe that didn't occur to me.

justin, you're my hero!

-garrett 

-- 
garrett rooney                    Remember, any design flaw you're 
rooneg@electricjellyfish.net      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski

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

Re: --Wstrict-prototypes and openssl, two great things that suck together!

Posted by Justin Erenkrantz <je...@apache.org>.
On Tue, Jul 09, 2002 at 09:16:16PM -0400, Garrett Rooney wrote:
> so at some point we started adding a bunch of extra gcc warnings to
> our build system (which i think is a great thing BTW, compiling with
> warnings turned way the hell up is good).
> 
> unfortunately, one of them is -Wstrict-prototypes.

Adding -Wno-strict-prototypes to CFLAGS should work.  -- justin

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