mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-10 06:50:06 +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)
|
#if (__cplusplus >= 201703L)
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
__fallthrough;
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
__fallthrough;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case TEX_FILTER_RGB_COPY_RED:
|
case TEX_FILTER_RGB_COPY_RED:
|
||||||
@ -3555,10 +3555,10 @@ void DirectX::Internal::ConvertScanline(
|
|||||||
|
|
||||||
#if (__cplusplus >= 201703L)
|
#if (__cplusplus >= 201703L)
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
__fallthrough;
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
__fallthrough;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case TEX_FILTER_RGB_COPY_RED:
|
case TEX_FILTER_RGB_COPY_RED:
|
||||||
@ -3654,10 +3654,10 @@ void DirectX::Internal::ConvertScanline(
|
|||||||
|
|
||||||
#if (__cplusplus >= 201703L)
|
#if (__cplusplus >= 201703L)
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
__fallthrough;
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
__fallthrough;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case TEX_FILTER_RGB_COPY_RED:
|
case TEX_FILTER_RGB_COPY_RED:
|
||||||
|
Loading…
Reference in New Issue
Block a user