From: Yann Collet Date: Wed, 27 Sep 2017 00:57:38 +0000 (-0700) Subject: silence minor gcc warning -Wempty-body X-Git-Tag: v1.3.2~3^2~23^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4791561c4a0303d995dddd5f4990557c4fe012a7;p=thirdparty%2Fzstd.git silence minor gcc warning -Wempty-body also silence fuzz test artefacts --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index ecb799ab3..6c91d482e 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -54,7 +54,7 @@ static unsigned long long GetCurrentClockTimeMicroseconds(void) #define MUTEX_WAIT_TIME_DLEVEL 6 #define PTHREAD_MUTEX_LOCK(mutex) { \ - if (ZSTD_DEBUG>=MUTEX_WAIT_TIME_DLEVEL) { \ + if (ZSTD_DEBUG >= MUTEX_WAIT_TIME_DLEVEL) { \ unsigned long long const beforeTime = GetCurrentClockTimeMicroseconds(); \ pthread_mutex_lock(mutex); \ { unsigned long long const afterTime = GetCurrentClockTimeMicroseconds(); \ @@ -63,7 +63,9 @@ static unsigned long long GetCurrentClockTimeMicroseconds(void) DEBUGLOG(MUTEX_WAIT_TIME_DLEVEL, "Thread took %llu microseconds to acquire mutex %s \n", \ elapsedTime, #mutex); \ } } \ - } else pthread_mutex_lock(mutex); \ + } else { \ + pthread_mutex_lock(mutex); \ + } \ } #else diff --git a/tests/fuzz/.gitignore b/tests/fuzz/.gitignore new file mode 100644 index 000000000..4ff28de98 --- /dev/null +++ b/tests/fuzz/.gitignore @@ -0,0 +1,5 @@ +# test artefacts +corpora +block_decompress +block_round_trip +simple_round_trip