forked from OSchip/llvm-project
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
This commit is contained in:
parent
52bb919615
commit
d1c2302fc5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue