Merge pull request #2446 from WalterCouto/test

C++ avoid warning in visual studio build due to clang specific directive
This commit is contained in:
Terence Parr 2018-12-21 12:01:22 -07:00 committed by GitHub
commit fa19ded837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -50,8 +50,10 @@ namespace antlrcpp {
break;
}
// else fall through
#ifndef _MSC_VER
#if __has_cpp_attribute(clang::fallthrough)
[[clang::fallthrough]];
#endif
#endif
default: