]> granicus.if.org Git - apache/commitdiff
Fix "statement not reached" warnings with sun cc
authorStefan Fritsch <sf@apache.org>
Fri, 24 Jun 2011 17:59:44 +0000 (17:59 +0000)
committerStefan Fritsch <sf@apache.org>
Fri, 24 Jun 2011 17:59:44 +0000 (17:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1139391 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c
server/config.c

index b81efd61d38fc7e453de59538f3108e4919faa32..a833342afe3e8d26817422be7b0ff0a6be47a279 100644 (file)
@@ -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,
index 49ae4f51f857d0a7e11d04226b3c26fc87667bf4..8f78f1f4ce3ee9877cd580bb98605f6bab599708 100644 (file)
@@ -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,