C++ avoid warning in visual studio build due to clang specific directive

The revently added clang directive cause a new warning for Visual Studio build. Need to include the new code with a directive checking for visual studio
This commit is contained in:
WalterCouto 2018-12-20 11:02:35 -05:00
parent 70d9ddcd0a
commit 2d28400234
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: