Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 1768 invoked by uid 500); 14 Jul 2000 14:31:27 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 1757 invoked by uid 500); 14 Jul 2000 14:31:27 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Date: 14 Jul 2000 14:31:26 -0000 Message-ID: <20000714143126.1749.qmail@locus.apache.org> From: rse@locus.apache.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src/include multithread.h rse 00/07/14 07:31:26 Modified: src/include multithread.h Log: Problem: alloc.c: In function `ap_cleanup_alloc': alloc.c:524: warning: statement with no effect alloc.c:525: warning: statement with no effect Reason: We have the declaration "API_EXPORT(void) ap_destroy_mutex(mutex *mutex_id);", in case of multithreading, so ap_destroy_mutex() should not be defined as "(0)" in case of no multithreading, because "(0);" causes the above warnings. Fix: ANSI C allows empty statements, so let ap_destroy_mutex() expand to not nothing instead. Revision Changes Path 1.13 +1 -1 apache-1.3/src/include/multithread.h Index: multithread.h =================================================================== RCS file: /home/cvs/apache-1.3/src/include/multithread.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- multithread.h 1999/10/21 20:44:20 1.12 +++ multithread.h 2000/07/14 14:31:23 1.13 @@ -58,7 +58,7 @@ #define ap_create_mutex(name) ((mutex *)ap_dummy_mutex) #define ap_acquire_mutex(mutex_id) ((int)MULTI_OK) #define ap_release_mutex(mutex_id) ((int)MULTI_OK) -#define ap_destroy_mutex(mutex_id) (0) +#define ap_destroy_mutex(mutex_id) #endif /* ndef MULTITHREAD */