You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rs...@locus.apache.org on 2000/07/14 16:31:26 UTC
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 */