From c39b842d05a8dde0fdce5f568810b090bad0a4d5 Mon Sep 17 00:00:00 2001 From: Dylan Tuttle Date: Fri, 1 Sep 2023 07:41:03 -0700 Subject: [PATCH] Add missing default cases to switch statements Add missing default cases to switch statements which were causing "enumeration values not handled in switch" warnings Signed-off-by: Dylan Tuttle --- compiler/aarch64/codegen/ARM64Debug.cpp | 3 +++ compiler/aarch64/codegen/OMRCodeGenerator.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/compiler/aarch64/codegen/ARM64Debug.cpp b/compiler/aarch64/codegen/ARM64Debug.cpp index 327958e8ba7..927e6993396 100644 --- a/compiler/aarch64/codegen/ARM64Debug.cpp +++ b/compiler/aarch64/codegen/ARM64Debug.cpp @@ -1695,6 +1695,9 @@ TR_Debug::print(TR::FILE *pOutFile, TR::ARM64Trg1Src1ImmInstruction *instr) break; case TR::InstOpCode::addsimmw: mnemonic = "cmnimmw"; + break; + default: + break; } trfprintf(pOutFile, "%s \t", mnemonic); print(pOutFile, instr->getSource1Register(), TR_WordReg); diff --git a/compiler/aarch64/codegen/OMRCodeGenerator.cpp b/compiler/aarch64/codegen/OMRCodeGenerator.cpp index 6b2e74a80d7..d77794c6525 100644 --- a/compiler/aarch64/codegen/OMRCodeGenerator.cpp +++ b/compiler/aarch64/codegen/OMRCodeGenerator.cpp @@ -980,6 +980,8 @@ OMR::ARM64::CodeGenerator::supportsNonHelper(TR::SymbolReferenceTable::CommonNon result = true; break; } + default: + break; } return result;