diff options
| author | David Carlier <devnexen@gmail.com> | 2019-12-05 13:05:17 +0000 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2019-12-05 13:05:17 +0000 |
| commit | 983abf359c862ab8628d7e0d7ff214609087683a (patch) | |
| tree | d0588744b0285ecaf952072840f09f67ebb4902e | |
| parent | 233112c9b6ca9596f1b564b1a195cd95af10edd9 (diff) | |
| download | afl++-983abf359c862ab8628d7e0d7ff214609087683a.tar.gz | |
Suppress noisy little build compiler plugins warning on platforms != Linux
| -rw-r--r-- | include/types.h | 4 |
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 */ |
