aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-28 13:38:49 +0100
committerhexcoder- <heiko@hexco.de>2020-03-28 13:38:49 +0100
commit3c142efecfd2ec2e4dfb766819bed26b184c9671 (patch)
tree26f2f17506c25f114814116300997872433f7ac8
parent23b3e3c84d3350790b5095a4bb6e1b7c39f28eea (diff)
downloadafl++-3c142efecfd2ec2e4dfb766819bed26b184c9671.tar.gz
qemu_mode: silence two compiler warnings
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-inl.h2
-rw-r--r--qemu_mode/patches/afl-qemu-tcg-inl.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h
index 9fdc23ea..3bd107d7 100644
--- a/qemu_mode/patches/afl-qemu-cpu-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-inl.h
@@ -413,7 +413,7 @@ void afl_forkserver(CPUState *cpu) {
void afl_persistent_loop(void) {
static u32 cycle_cnt;
- static struct afl_tsl exit_cmd_tsl = {{-1, 0, 0, 0}, NULL};
+ static struct afl_tsl exit_cmd_tsl = {{-1, 0, 0, 0}, '\0'};
if (!afl_fork_child) return;
diff --git a/qemu_mode/patches/afl-qemu-tcg-inl.h b/qemu_mode/patches/afl-qemu-tcg-inl.h
index 430574e5..f7c662db 100644
--- a/qemu_mode/patches/afl-qemu-tcg-inl.h
+++ b/qemu_mode/patches/afl-qemu-tcg-inl.h
@@ -30,6 +30,7 @@
have a look at afl-showmap.c.
*/
+void afl_gen_tcg_plain_call(void *func);
void afl_gen_tcg_plain_call(void *func) {