summaryrefslogtreecommitdiff
path: root/arch/armv7
diff options
context:
space:
mode:
Diffstat (limited to 'arch/armv7')
-rw-r--r--arch/armv7/CMakeLists.txt7
-rw-r--r--arch/armv7/il.cpp2
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: