Fix fuzzing and remove unused variable

This commit is contained in:
mio 2022-01-18 21:37:32 +01:00
parent 3cbe32053b
commit ac510d13c7
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
2 changed files with 3 additions and 2 deletions

View File

@ -1254,7 +1254,9 @@ endif()
if(UNICORN_FUZZ)
set(UNICORN_FUZZ_SUFFIX "arm_arm;arm_armbe;arm_thumb;arm64_arm;arm64_armbe;m68k_be;mips_32be;mips_32le;sparc_32be;x86_16;x86_32;x86_64")
set(SAMPLES_LIB ${SAMPLES_LIB} rt)
if (NOT APPLE)
set(SAMPLES_LIB ${SAMPLES_LIB} rt)
endif()
foreach(SUFFIX ${UNICORN_FUZZ_SUFFIX})
add_executable(fuzz_emu_${SUFFIX}
${CMAKE_CURRENT_SOURCE_DIR}/tests/fuzz/fuzz_emu_${SUFFIX}.c

View File

@ -14,7 +14,6 @@ int main(int argc, char** argv)
DIR *d;
struct dirent *dir;
int r = 0;
int i;
if (argc != 2) {
return 1;