about summary refs log tree commit diff
path: root/test/unittests/unit_preallocable.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_preallocable.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_preallocable.c')
-rw-r--r--test/unittests/unit_preallocable.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/unittests/unit_preallocable.c b/test/unittests/unit_preallocable.c
index b0963a15..ea16da85 100644
--- a/test/unittests/unit_preallocable.c
+++ b/test/unittests/unit_preallocable.c
@@ -29,6 +29,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);
 }
 
@@ -36,8 +37,9 @@ void __wrap_exit(int status) {
 #undef printf
 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, ...);
 int __wrap_printf(const char *format, ...) {
+    (void)format;
     return 1;
 }
 
@@ -51,9 +53,10 @@ typedef struct prealloc_me
 
 #define PREALLOCED_BUF_SIZE (64)
 prealloc_me_t prealloc_me_buf[PREALLOCED_BUF_SIZE];
-size_t prealloc_me_size = 0;
+s32 prealloc_me_size = 0;
 
 static void test_alloc_free(void **state) {
+    (void)state;
 
     prealloc_me_t *prealloced = NULL;
     PRE_ALLOC(prealloced, prealloc_me_buf, PREALLOCED_BUF_SIZE, prealloc_me_size);
@@ -63,6 +66,7 @@ static void test_alloc_free(void **state) {
 }
 
 static void test_prealloc_overflow(void **state) {
+    (void)state;
 
     u32 i = 0;
     prealloc_me_t *prealloced[PREALLOCED_BUF_SIZE + 10];
@@ -102,6 +106,8 @@ static void test_prealloc_overflow(void **state) {
 }
 
 int main(int argc, char **argv) {
+    (void)argc;
+    (void)argv;
 
 	const struct CMUnitTest tests[] = {
 		cmocka_unit_test(test_alloc_free),