about summary refs log tree commit diff
path: root/test/unittests/unit_rand.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
committerhexcoder- <heiko@hexco.de>2020-08-07 19:53:32 +0200
commit8551d8e48e18a5a50955945b5f73aff3cb492de5 (patch)
tree4e62bae271be851bd2e556d51e09197163814190 /test/unittests/unit_rand.c
parent32558bc8072caa14ee670c6be40af4d183e8ffcc (diff)
parent934cdc32f4c828d6a8045e4096344601fe528a76 (diff)
downloadafl++-8551d8e48e18a5a50955945b5f73aff3cb492de5.tar.gz
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'test/unittests/unit_rand.c')
-rw-r--r--test/unittests/unit_rand.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unittests/unit_rand.c b/test/unittests/unit_rand.c
index 0a90d8d1..1ad02a80 100644
--- a/test/unittests/unit_rand.c
+++ b/test/unittests/unit_rand.c
@@ -29,8 +29,9 @@ extern void mock_assert(const int result, const char* const expression,
     (compile with `--wrap=exit`) */
 extern void exit(int status);
 extern void __real_exit(int status);
-void __wrap_exit(int status);
+//void __wrap_exit(int status);
 void __wrap_exit(int status) {
+    (void)status;
     assert(0);
 }
 
@@ -40,11 +41,13 @@ extern int printf(const char *format, ...);
 extern int __real_printf(const char *format, ...);
 int __wrap_printf(const char *format, ...);
 int __wrap_printf(const char *format, ...) {
+    (void)format;
     return 1;
 }
 
 /* Rand with 0 seed would broke in the past */
 static void test_rand_0(void **state) {
+    (void)state;
 
     afl_state_t afl = {0};
     rand_set_seed(&afl, 0);
@@ -58,6 +61,7 @@ static void test_rand_0(void **state) {
 }
 
 static void test_rand_below(void **state) {
+    (void)state;
 
     afl_state_t afl = {0};
     rand_set_seed(&afl, 1337);
@@ -70,6 +74,8 @@ static void test_rand_below(void **state) {
 }
 
 int main(int argc, char **argv) {
+    (void)argc;
+    (void)argv;
 
     const struct CMUnitTest tests[] = {
         cmocka_unit_test(test_rand_0),