forked from jasder/antlr
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:
parent
70d9ddcd0a
commit
2d28400234
|
@ -50,8 +50,10 @@ namespace antlrcpp {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// else fall through
|
// else fall through
|
||||||
|
#ifndef _MSC_VER
|
||||||
#if __has_cpp_attribute(clang::fallthrough)
|
#if __has_cpp_attribute(clang::fallthrough)
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue