1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-09-19 23:29:54 +00:00

Fix build warning -Wimplicit-fallthrough when using clang in C++14 mode

This commit is contained in:
Chuck Walbourn 2022-03-15 11:47:50 -07:00
parent f8b0a959b9
commit acbd901f3a

View File

@ -3265,10 +3265,10 @@ void DirectX::Internal::ConvertScanline(
#if (__cplusplus >= 201703L)
[[fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#elif defined(__clang__)
[[clang::fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#endif
case TEX_FILTER_RGB_COPY_RED:
@ -3555,10 +3555,10 @@ void DirectX::Internal::ConvertScanline(
#if (__cplusplus >= 201703L)
[[fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#elif defined(__clang__)
[[clang::fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#endif
case TEX_FILTER_RGB_COPY_RED:
@ -3654,10 +3654,10 @@ void DirectX::Internal::ConvertScanline(
#if (__cplusplus >= 201703L)
[[fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#elif defined(__clang__)
[[clang::fallthrough]];
#elif defined(_MSC_VER)
__fallthrough;
#endif
case TEX_FILTER_RGB_COPY_RED: