httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: Annoying compile warning
Date Thu, 13 Aug 1998 12:37:15 GMT
On Fri, Aug 07, 1998 at 05:44:10PM -0700, Dean Gaudet wrote:
> Impossible to fix without overhauling the (broken) configuration api. 
> 
> Remove one of those -Wxxx-prototypes, I forget which causes the warning. 
> There's just no way around it.  Or maybe I'm missing something obvious,
> 'cause I've tried. 

> > /export/home/rasmus/apache-1.3/src/include/http_config.h:97: warning:
> > function declaration isn't a prototype
> > 
> > 97:     const char *(*func) (); /* Function invoked */

The compiler is right, anyway. This could only be a prototype if there
was a description of the possible parameters, be it

> >         const char *(*func) (void); /* Function invoked */
or
> >         const char *(*func) (int,...); /* Function invoked */
or whatever. Otherwise, it's only a K&R-Function declaration.

About overhauling the (broken) configuration api: Yes, I've thought about
that as well. It would IMO require (a union with) a list of possible
prototypes with the signatures of the various cmd handling routines.

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message