From: Stefan Fritsch Date: Fri, 24 Jun 2011 17:59:44 +0000 (+0000) Subject: Fix "statement not reached" warnings with sun cc X-Git-Tag: 2.3.13~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc8885d8d96932479aa241b2d718719e4d92bcd;p=thirdparty%2Fapache%2Fhttpd.git Fix "statement not reached" warnings with sun cc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1139391 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index b81efd61d38..a833342afe3 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -2453,10 +2453,10 @@ static const char *util_ldap_set_debug_level(cmd_parms *cmd, #ifndef AP_LDAP_OPT_DEBUG return "This directive is not supported with the currently linked LDAP library"; -#endif - +#else st->debug_level = atoi(arg); return NULL; +#endif } static const char *util_ldap_set_referral_hop_limit(cmd_parms *cmd, diff --git a/server/config.c b/server/config.c index 49ae4f51f85..8f78f1f4ce3 100644 --- a/server/config.c +++ b/server/config.c @@ -1969,10 +1969,7 @@ AP_DECLARE(const char *) ap_process_fnmatch_configs(server_rec *s, /* walk the filepath */ return process_resource_config_fnmatch(s, rootpath, filepath, conftree, p, ptemp, 0, optional); - } - - return NULL; } AP_DECLARE(int) ap_process_config_tree(server_rec *s,