]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
silence minor gcc warning -Wempty-body
authorYann Collet <cyan@fb.com>
Wed, 27 Sep 2017 00:57:38 +0000 (17:57 -0700)
committerYann Collet <cyan@fb.com>
Wed, 27 Sep 2017 00:57:38 +0000 (17:57 -0700)
also silence fuzz test artefacts

lib/compress/zstdmt_compress.c
tests/fuzz/.gitignore [new file with mode: 0644]

index ecb799ab33a795452bdd96ee925e41b2596adc4c..6c91d482e8b3a32e2f9082201a284a62d094d707 100644 (file)
@@ -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 (file)
index 0000000..4ff28de
--- /dev/null
@@ -0,0 +1,5 @@
+# test artefacts
+corpora
+block_decompress
+block_round_trip
+simple_round_trip