backtrace-cpp: implement a better fix for implicit case fallthrough

This commit is contained in:
Simon Fels 2018-06-23 16:03:54 +02:00
commit 7227167b38
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -1391,6 +1391,7 @@ private:
if (die_has_pc(die, pc)) {
return result;
}
/* fall through */
default:
bool declaration = false;
Dwarf_Attribute attr_mem;