summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-15 05:30:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-15 05:30:20 (GMT)
commite1ef867328bd7d2cd67499ac30479821bdf96662 (patch)
tree3bdcaf63bd6e9a4208b8b1c43788713cb704f44a /builtin-pack-objects.c
parent3c70183918d97eda06ae847cd7432fd23257caea (diff)
downloadgit-e1ef867328bd7d2cd67499ac30479821bdf96662.zip
git-e1ef867328bd7d2cd67499ac30479821bdf96662.tar.gz
git-e1ef867328bd7d2cd67499ac30479821bdf96662.tar.bz2
builtin-pack-objects.c: avoid bogus gcc warnings
These empty statement marcos can solicit bogus "statement with no effect" warnings; squelch them. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index b126fc8..a15906b 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1311,12 +1311,12 @@ static pthread_mutex_t progress_mutex = PTHREAD_MUTEX_INITIALIZER;
#else
-#define read_lock() 0
-#define read_unlock() 0
-#define cache_lock() 0
-#define cache_unlock() 0
-#define progress_lock() 0
-#define progress_unlock() 0
+#define read_lock() (void)0
+#define read_unlock() (void)0
+#define cache_lock() (void)0
+#define cache_unlock() (void)0
+#define progress_lock() (void)0
+#define progress_unlock() (void)0
#endif