Skip to content

Commit

Permalink
Fix fuzzing and remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Jan 18, 2022
1 parent 3cbe320 commit ac510d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/fuzz/onedir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac510d1

Please sign in to comment.