Merge pull request #2446 from WalterCouto/test
C++ avoid warning in visual studio build due to clang specific directive
This commit is contained in:
commit
fa19ded837
|
@ -50,8 +50,10 @@ namespace antlrcpp {
|
|||
break;
|
||||
}
|
||||
// else fall through
|
||||
#ifndef _MSC_VER
|
||||
#if __has_cpp_attribute(clang::fallthrough)
|
||||
[[clang::fallthrough]];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue