未验证 提交 5310ad6f 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #769 from morphis/better-fix-for-fallthrough

backtrace-cpp: implement a better fix for implicit case fallthrough
......@@ -38,7 +38,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_COMPILER_IS_GNUCXX)
endif()
# ANBOX: allow old-style casts
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=old-style-cast -Wno-error=switch-default -Wno-error=implicit-fallthrough")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=old-style-cast -Wno-error=switch-default")
###############################################################################
# BACKWARD OBJECT
......
......@@ -1391,6 +1391,7 @@ private:
if (die_has_pc(die, pc)) {
return result;
}
/* fall through */
default:
bool declaration = false;
Dwarf_Attribute attr_mem;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册