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
>>> [EMAIL PROTECTED] 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