diff options
| author | Mark Rowe <mark@vector35.com> | 2025-12-19 11:12:20 -0800 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-12-20 21:34:49 -0800 |
| commit | ed0f3b1b8593f6b76fbb64c53a0885073c1c1979 (patch) | |
| tree | 5d22d77ccea8bffc0619a32ed886d79d14daccf1 /arch/armv7 | |
| parent | ba13f6ec7d0ce9a18a03a1c895fb72d18e03014a (diff) | |
Fix many of the warnings that show up when compiling with GCC 15.2
Diffstat (limited to 'arch/armv7')
| -rw-r--r-- | arch/armv7/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | arch/armv7/il.cpp | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/armv7/CMakeLists.txt b/arch/armv7/CMakeLists.txt index 802bcf6a..25847dfe 100644 --- a/arch/armv7/CMakeLists.txt +++ b/arch/armv7/CMakeLists.txt @@ -43,3 +43,10 @@ if(BN_INTERNAL_BUILD) LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) endif() + +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") + target_compile_options(arch_armv7 PRIVATE + $<$<COMPILE_LANGUAGE:CXX>:-Wno-deprecated-enum-enum-conversion> + ) +endif() + diff --git a/arch/armv7/il.cpp b/arch/armv7/il.cpp index 0d79bcf6..5e2ee010 100644 --- a/arch/armv7/il.cpp +++ b/arch/armv7/il.cpp @@ -906,7 +906,7 @@ bool GetLowLevelILForArmInstruction(Architecture* arch, uint64_t addr, LowLevelI } if (op1.flags.wb) { - ExprId wb; + ExprId wb = BN_INVALID_OPERAND; switch (instr.operation) { case ARMV7_LDM: |
