mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-24 13:20:13 +00:00
Fix build warning -Wimplicit-fallthrough when using clang in C++14 mode
This commit is contained in:
parent
f8b0a959b9
commit
acbd901f3a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user