From 3141dadea9014d97c70d5a5455483a5941274c15 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Tue, 28 Nov 2017 19:44:33 +0000 Subject: [PATCH] Remove UNUSED macro --- src/common/common_types.h | 2 -- src/frontend/translate/translate_arm/exception_generating.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/common_types.h b/src/common/common_types.h index 06897167..005541f9 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -27,5 +27,3 @@ using f32 = float; using f64 = double; static_assert(sizeof(f32) == sizeof(u32), "f32 must be 32 bits wide"); static_assert(sizeof(f64) == sizeof(u64), "f64 must be 64 bits wide"); - -#define UNUSED(...) (void)([__VA_ARGS__](){}) diff --git a/src/frontend/translate/translate_arm/exception_generating.cpp b/src/frontend/translate/translate_arm/exception_generating.cpp index a808b00c..4180325d 100644 --- a/src/frontend/translate/translate_arm/exception_generating.cpp +++ b/src/frontend/translate/translate_arm/exception_generating.cpp @@ -9,8 +9,7 @@ namespace Dynarmic { namespace Arm { -bool ArmTranslatorVisitor::arm_BKPT(Cond cond, Imm12 imm12, Imm4 imm4) { - UNUSED(cond, imm12, imm4); +bool ArmTranslatorVisitor::arm_BKPT(Cond /*cond*/, Imm12 /*imm12*/, Imm4 /*imm4*/) { return InterpretThisInstruction(); }