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

backtrace-cpp: implement a better fix for implicit case fallthrough
This commit is contained in:
Simon Fels 2018-06-24 11:11:09 +02:00 • committed by GitHub
commit 5310ad6f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;