From 2d284002344faf6ccf2f145eade4b793c6c193b3 Mon Sep 17 00:00:00 2001 From: WalterCouto Date: Thu, 20 Dec 2018 11:02:35 -0500 Subject: [PATCH] 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 --- runtime/Cpp/runtime/src/support/CPPUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/Cpp/runtime/src/support/CPPUtils.cpp b/runtime/Cpp/runtime/src/support/CPPUtils.cpp index 3eaaeca9b..2ca43d34d 100755 --- a/runtime/Cpp/runtime/src/support/CPPUtils.cpp +++ b/runtime/Cpp/runtime/src/support/CPPUtils.cpp @@ -50,8 +50,10 @@ namespace antlrcpp { break; } // else fall through +#ifndef _MSC_VER #if __has_cpp_attribute(clang::fallthrough) [[clang::fallthrough]]; +#endif #endif default: