1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 22:40:06 +00:00

Fix annoying warnings I saw with clang about ignored pragmas by ifdef'ing MSVC specific things. (#424)

This commit is contained in:
J. Peter Mugaas 2023-12-17 17:39:11 -06:00 committed by GitHub
parent 3154a66b41
commit a4e1c046d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
#pragma once #pragma once
#ifdef _MSC_VER
// Off by default warnings // Off by default warnings
#pragma warning(disable : 4619 4616 4061 4265 4365 4571 4623 4625 4626 4628 4668 4710 4711 4746 4774 4820 4987 5026 5027 5031 5032 5039 5045 5219 5246 5264 26812) #pragma warning(disable : 4619 4616 4061 4265 4365 4571 4623 4625 4626 4628 4668 4710 4711 4746 4774 4820 4987 5026 5027 5031 5032 5039 5045 5219 5246 5264 26812)
// C4619/4616 #pragma warning warnings // C4619/4616 #pragma warning warnings
@ -49,6 +50,7 @@
// Xbox One XDK related Off by default warnings // Xbox One XDK related Off by default warnings
#pragma warning(disable : 4643) #pragma warning(disable : 4643)
// C4643 Forward declaring in namespace std is not permitted by the C++ Standard // C4643 Forward declaring in namespace std is not permitted by the C++ Standard
#endif
#ifdef __INTEL_COMPILER #ifdef __INTEL_COMPILER
#pragma warning(disable : 161) #pragma warning(disable : 161)