Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 56220 invoked from network); 31 Oct 2003 20:02:07 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Oct 2003 20:02:07 -0000 Received: (qmail 34316 invoked by uid 500); 31 Oct 2003 20:01:47 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 34274 invoked by uid 500); 31 Oct 2003 20:01:47 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 34217 invoked from network); 31 Oct 2003 20:01:46 -0000 Received: from unknown (HELO prv-mail20.provo.novell.com) (137.65.81.122) by daedalus.apache.org with SMTP; 31 Oct 2003 20:01:46 -0000 Received: from INET-PRV-MTA by prv-mail20.provo.novell.com with Novell_GroupWise; Fri, 31 Oct 2003 13:01:51 -0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Beta Date: Fri, 31 Oct 2003 13:01:40 -0700 From: "Brad Nicholes" To: , Subject: Re: cvs commit: httpd-2.0/include http_config.h Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 500/1000/N What type of warning does this eliminate because for the Metrowerks compiler on NetWare, adding the "void" causes a type mis-match error. ### mwccnlm Compiler: # File: mod_auth_basic.c # ------------------------- # 154: { "AuthBasicProvider", add_authn_provider, 0, 8, ITERATE, "specify the auth providers for a directory or location" } # Error: ^ # illegal implicit conversion from 'char * (struct cmd_parms_struct *, void # *, const char *)' to # 'char * (*)()' ### mwccnlm Compiler: # 159: { "AuthBasicAuthoritative", ap_set_flag_slot, (void *) (size_t) &((( auth_basic_config_rec *) 0)->authoritative), 8, FLAG, "S # Error: ^ # illegal implicit conversion from 'char * (struct cmd_parms_struct *, void # *, int)' to # 'char * (*)()' Can we wrap it with some kind of AP_HAVE_??? #define or is there a better way? Brad Brad Nicholes Senior Software Engineer Novell, Inc., the leading provider of Net business solutions http://www.novell.com >>> striker@apache.org Friday, October 31, 2003 2:01:49 AM >>> striker 2003/10/31 01:01:49 Modified: include http_config.h Log: * include/http_config.h (cmd_func): Fix prototype, eliminate warning. Revision Changes Path 1.102 +1 -1 httpd-2.0/include/http_config.h Index: http_config.h =================================================================== RCS file: /home/cvs/httpd-2.0/include/http_config.h,v retrieving revision 1.101 retrieving revision 1.102 diff -u -r1.101 -r1.102 --- http_config.h 7 Mar 2003 14:37:36 -0000 1.101 +++ http_config.h 31 Oct 2003 09:01:49 -0000 1.102 @@ -184,7 +184,7 @@ #else /* AP_HAVE_DESIGNATED_INITIALIZER */ -typedef const char *(*cmd_func) (); +typedef const char *(*cmd_func) (void); # define AP_NO_ARGS func # define AP_RAW_ARGS func