Fix -Wunused-variable warnings

This commit is contained in:
Chuck Walbourn 2022-05-24 18:00:28 -07:00
parent 9a9fb5e39e
commit ad9c7cbb3a
2 changed files with 2 additions and 3 deletions

View File

@ -180,7 +180,9 @@ namespace
// We don't support n-channel formats // We don't support n-channel formats
}; };
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8) || defined(_WIN7_PLATFORM_UPDATE)
bool g_WIC2 = false; bool g_WIC2 = false;
#endif
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID *ifactory) noexcept BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID *ifactory) noexcept
{ {

View File

@ -158,8 +158,6 @@ namespace
// We don't support n-channel formats // We don't support n-channel formats
}; };
bool g_WIC2 = false;
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID* ifactory) noexcept BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID* ifactory) noexcept
{ {
@ -175,7 +173,6 @@ namespace
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
// WIC2 is available on Windows 10, Windows 8.x, and Windows 7 SP1 with KB 2670838 installed // WIC2 is available on Windows 10, Windows 8.x, and Windows 7 SP1 with KB 2670838 installed
g_WIC2 = true;
return TRUE; return TRUE;
} }
else else