about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-12-05 15:00:33 +0100
committerGitHub <noreply@github.com>2019-12-05 15:00:33 +0100
commit08f2a35b9ba15dce1ab914bd859a34d3ef2e50e7 (patch)
treea7bd61feb46f49bd5af4f0034030235e681dfac8
parent8e64b13bc0bc7c212b3948446ed0972aab1336e0 (diff)
parent983abf359c862ab8628d7e0d7ff214609087683a (diff)
downloadafl++-08f2a35b9ba15dce1ab914bd859a34d3ef2e50e7.tar.gz
Merge pull request #130 from devnexen/last_nit_before_rel
Suppress noisy little build compiler plugins warning on platforms != …
-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 */