From: Junio C Hamano Date: Sat, 15 Sep 2007 05:30:20 +0000 (-0700) Subject: builtin-pack-objects.c: avoid bogus gcc warnings X-Git-Tag: v1.5.4-rc0~440^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1ef867328bd7d2cd67499ac30479821bdf96662;p=git.git 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 --- diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index b126fc8e7..a15906bdb 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