Fix misleading-indet warning. (#2167)

This commit is contained in:
Rot127 2023-09-22 04:53:58 +00:00 committed by GitHub
parent 3868266461
commit 4e496d77f1
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ project(capstone
if (MSVC)
add_compile_options(/W1 /w14189)
else()
add_compile_options(-Werror -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context)
add_compile_options(-Werror -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context -Wmisleading-indentation)
endif()

View File

@ -281,7 +281,7 @@ uint64_t MCInst_getOpVal(MCInst *MI, unsigned OpNum)
return MCOperand_getImm(op);
else
assert(0 && "Operand type not handled in this getter.");
return false;
return false;
}
void MCInst_setIsAlias(MCInst *MI, bool Flag) {