diff options
| author | hexcoder- <heiko@hexco.de> | 2020-08-07 19:53:32 +0200 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2020-08-07 19:53:32 +0200 |
| commit | 8551d8e48e18a5a50955945b5f73aff3cb492de5 (patch) | |
| tree | 4e62bae271be851bd2e556d51e09197163814190 /test/unittests/unit_hash.c | |
| parent | 32558bc8072caa14ee670c6be40af4d183e8ffcc (diff) | |
| parent | 934cdc32f4c828d6a8045e4096344601fe528a76 (diff) | |
| download | afl++-8551d8e48e18a5a50955945b5f73aff3cb492de5.tar.gz | |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'test/unittests/unit_hash.c')
| -rw-r--r-- | test/unittests/unit_hash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unittests/unit_hash.c b/test/unittests/unit_hash.c index 041d107a..22245ed6 100644 --- a/test/unittests/unit_hash.c +++ b/test/unittests/unit_hash.c @@ -30,6 +30,7 @@ extern void exit(int status); extern void __real_exit(int status); void __wrap_exit(int status); void __wrap_exit(int status) { + (void)status; assert(0); } @@ -39,11 +40,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_hash(void **state) { + (void)state; char bitmap[64] = {0}; u64 hash0 = hash64(bitmap, sizeof(bitmap), 0xa5b35705); @@ -62,6 +65,8 @@ static void test_hash(void **state) { } int main(int argc, char **argv) { + (void)argc; + (void)argv; const struct CMUnitTest tests[] = { cmocka_unit_test(test_hash) |
