@matheusbsbs / matheus-bagliano / commits / e1ef867328
Fork 0

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>

Junio C Hamano committed Sep 14, 2007 at 22:30 UTC e1ef867328bd7d2cd67499ac30479821bdf96662
1 file changed +6 -6
builtin-pack-objects.c
+6 -6
@@ -1311,12 +1311,12 @@ static pthread_mutex_t progress_mutex = PTHREAD_MUTEX_INITIALIZER;
1311
1312 #else
1313
1314 -#define read_lock() 0
1315 -#define read_unlock() 0
1316 -#define cache_lock() 0
1317 -#define cache_unlock() 0
1318 -#define progress_lock() 0
1319 -#define progress_unlock() 0
1314 +#define read_lock() (void)0
1315 +#define read_unlock() (void)0
1316 +#define cache_lock() (void)0
1317 +#define cache_unlock() (void)0
1318 +#define progress_lock() (void)0
1319 +#define progress_unlock() (void)0
1320
1321 #endif
1322