httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Collins-Sussman <suss...@collab.net>
Subject [PATCH] warning fix
Date Wed, 17 Apr 2002 20:07:37 GMT

I just built httpd-2.0 out of CVS a minute ago, and I'm getting a
warning on my FreeBSD 4.5 system (gcc 2.95.3):

 httpd-2.0/server/log.c:221: warning: control reaches end of non-void function

I'm just a passing APR/Subversion developer, but hey, I thought maybe
this is the correct patch for log.c:1.116:


Index: log.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/log.c,v
retrieving revision 1.116
diff -u -r1.116 log.c
--- log.c	17 Apr 2002 16:36:28 -0000	1.116
+++ log.c	17 Apr 2002 19:52:45 -0000
@@ -218,6 +218,8 @@
                      "unable to replace stderr with error_log");
         return rc;
     }
+    
+    return rc;
 }
 
 static int log_child(apr_pool_t *p, const char *progname,

Mime
View raw message