From 7227167b387c38de56f8126f6c2fa13dc8b46e3a Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Sat, 23 Jun 2018 16:03:54 +0200 Subject: [PATCH] backtrace-cpp: implement a better fix for implicit case fallthrough --- external/backtrace-cpp/CMakeLists.txt | 2 +- external/backtrace-cpp/backward.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/external/backtrace-cpp/CMakeLists.txt b/external/backtrace-cpp/CMakeLists.txt index 91057580..b31bb8c3 100644 --- a/external/backtrace-cpp/CMakeLists.txt +++ b/external/backtrace-cpp/CMakeLists.txt @@ -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 diff --git a/external/backtrace-cpp/backward.hpp b/external/backtrace-cpp/backward.hpp index 37be193e..fd040679 100644 --- a/external/backtrace-cpp/backward.hpp +++ b/external/backtrace-cpp/backward.hpp @@ -1391,6 +1391,7 @@ private: if (die_has_pc(die, pc)) { return result; } + /* fall through */ default: bool declaration = false; Dwarf_Attribute attr_mem; -- GitLab