From 30d534eb4788ea9d05803b23a74b42ad1d0bd8fe Mon Sep 17 00:00:00 2001 From: qihuanpiaoliu Date: Tue, 16 Jul 2019 11:33:45 +0800 Subject: [PATCH] Update vm_mngr.c Eliminate compile warnings on MAC. MAC version = 10.12.6 clang version = Apple LLVM version 9.0.0 (clang-900.0.37) --- miasm/jitter/vm_mngr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miasm/jitter/vm_mngr.c b/miasm/jitter/vm_mngr.c index 43d6db53d..6d33bacd2 100644 --- a/miasm/jitter/vm_mngr.c +++ b/miasm/jitter/vm_mngr.c @@ -226,7 +226,7 @@ static uint64_t memory_page_read(vm_mngr_t* vm_mngr, unsigned int my_size, uint6 } switch(my_size){ case 8: - ret = ret; + /*ret = ret*/; break; case 16: ret = set_endian16(vm_mngr, (uint16_t)ret); @@ -302,7 +302,7 @@ static void memory_page_write(vm_mngr_t* vm_mngr, unsigned int my_size, switch(my_size){ case 8: - src = src; + /*src = src*/; break; case 16: src = set_endian16(vm_mngr, (uint16_t)src); @@ -926,7 +926,7 @@ void hexdump(char* m, unsigned int l) if (!(i%0x10) && i){ last = i; printf(" "); - for (j=-0x10;j<0;j++){ + for (j=-0x10;(int)j<0;j++){ if (isprint(m[i+j])){ printf("%c", m[i+j]); }