From 4bc8885d8d96932479aa241b2d718719e4d92bcd Mon Sep 17 00:00:00 2001
From: Stefan Fritsch <sf@apache.org>
Date: Fri, 24 Jun 2011 17:59:44 +0000
Subject: [PATCH] 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
---
 modules/ldap/util_ldap.c | 4 ++--
 server/config.c          | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c
index b81efd61d3..a833342afe 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 49ae4f51f8..8f78f1f4ce 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,
-- 
2.40.0