From 983abf359c862ab8628d7e0d7ff214609087683a Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 5 Dec 2019 13:05:17 +0000 Subject: [PATCH] Suppress noisy little build compiler plugins warning on platforms != Linux --- include/types.h | 4 ++-- 1 file 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 */