about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-12-05 13:05:17 +0000
committerDavid Carlier <devnexen@gmail.com>2019-12-05 13:05:17 +0000
commit983abf359c862ab8628d7e0d7ff214609087683a (patch)
treed0588744b0285ecaf952072840f09f67ebb4902e
parent233112c9b6ca9596f1b564b1a195cd95af10edd9 (diff)
downloadafl++-983abf359c862ab8628d7e0d7ff214609087683a.tar.gz
Suppress noisy little build compiler plugins warning on platforms != Linux
-rw-r--r--include/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/types.h b/include/types.h
index 3f34db66..6e23edef 100644
--- a/include/types.h
+++ b/include/types.h
@@ -83,7 +83,7 @@ typedef int64_t s64;
 #define AFL_SR(s) (srandom(s))
 #define AFL_R(x) (random() % (x))
 #else
-#define AFL_SR(s)
+#define AFL_SR(s) ((void)s)
 #define AFL_R(x) (arc4random_uniform(x))
 #endif
 #else
@@ -91,7 +91,7 @@ typedef int64_t s64;
 #define SR(s) (srandom(s))
 #define R(x) (random() % (x))
 #else
-#define SR(s)
+#define SR(s) ((void)s)
 #define R(x) (arc4random_uniform(x))
 #endif
 #endif                                                    /* ^AFL_LLVM_PASS */