Just got a report via PM about a gcc warning during 2.0.46 compile:

System:
gcc: 2.95.3
Linux 2.4.18 Conectiva 8

configured with worker MPM.

apr_md5.c:688: warning: `crypt_mutex_lock' defined but not used
apr_md5.c:693: warning: `crypt_mutex_unlock' defined but not used

The attached patch should avoid these, shouldn't it? (untested).

nd
-- 
"Eine Eieruhr", erkl�rt ihr Hermann, "besteht aus einem Ei. Du nimmst
das Ei und kochst es. Wenn es hart ist, sind f�nf Minuten um. Dann wei�t
du, da� die Zeit vergangen ist."
                             -- Hannes H�ttner in "Das Blaue vom Himmel"
Index: apr_md5.c
===================================================================
RCS file: /home/cvspublic/apr-util/crypto/apr_md5.c,v
retrieving revision 1.6
diff -u -r1.6 apr_md5.c
--- apr_md5.c   28 May 2003 04:45:46 -0000      1.6
+++ apr_md5.c   29 May 2003 16:47:25 -0000
@@ -676,7 +676,8 @@
 }
 
 #if !defined(WIN32) && !defined(BEOS) && !defined(NETWARE)
-#if defined(APU_CRYPT_THREADSAFE) || !APR_HAS_THREADS
+#if defined(APU_CRYPT_THREADSAFE) || !APR_HAS_THREADS || \
+    defined(CRYPT_R_CRYPTD) || defined(CRYPT_R_STRUCT_CRYPT_DATA)
 
 #define crypt_mutex_lock()
 #define crypt_mutex_unlock()

Reply via email to