From d1c2302fc5814f3f6d6dff42e1ba7fbc200c2332 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 11 Jun 2017 22:57:31 +0000 Subject: [PATCH] cxa_demangle: fix -Wimplicit-fallthrough for GCC:7 Use the C++11 (formalised in C++17) tag to indicate a fallthrough in the switch case. Silences a -Wimplicit-fallthrough warning with gcc:7 llvm-svn: 305173 --- libcxxabi/src/cxa_demangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxxabi/src/cxa_demangle.cpp b/libcxxabi/src/cxa_demangle.cpp index 3707dcaaa655..a2c384e37358 100644 --- a/libcxxabi/src/cxa_demangle.cpp +++ b/libcxxabi/src/cxa_demangle.cpp @@ -2258,7 +2258,7 @@ parse_type(const char* first, const char* last, C& db) break; } } - // drop through + [[gnu::fallthrough]]; default: // must check for builtin-types before class-enum-types to avoid // ambiguities with operator-names