mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 12:16:14 +01:00
std::ignore usage instead of (void) for ignoring return values
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <new>
|
||||
#include <tuple>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
@@ -557,7 +558,7 @@ namespace
|
||||
sRGB = (loadFlags & WIC_LOADER_SRGB_DEFAULT) != 0;
|
||||
}
|
||||
|
||||
(void)PropVariantClear(&value);
|
||||
std::ignore = PropVariantClear(&value);
|
||||
|
||||
if (sRGB)
|
||||
format = MakeSRGB(format);
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <cstring>
|
||||
#include <iterator>
|
||||
#include <new>
|
||||
#include <tuple>
|
||||
|
||||
#include <wincodec.h>
|
||||
|
||||
@@ -469,7 +470,7 @@ namespace
|
||||
sRGB = (loadFlags & WIC_LOADER_SRGB_DEFAULT) != 0;
|
||||
}
|
||||
|
||||
(void)PropVariantClear(&value);
|
||||
std::ignore = PropVariantClear(&value);
|
||||
|
||||
if (sRGB)
|
||||
format = MakeSRGB(format);
|
||||
|
||||
Reference in New Issue
Block a user