From 4e496d77f1f773fc48c3946da31755a025cefcd2 Mon Sep 17 00:00:00 2001 From: Rot127 <45763064+Rot127@users.noreply.github.com> Date: Fri, 22 Sep 2023 04:53:58 +0000 Subject: [PATCH] Fix misleading-indet warning. (#2167) --- CMakeLists.txt | 2 +- MCInst.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cce6672..5ba281d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/MCInst.c b/MCInst.c index f390a3c8..6f4c98ab 100644 --- a/MCInst.c +++ b/MCInst.c @@ -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) {