mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Update standalone warning handling
This commit is contained in:
parent
ab6776554b
commit
1580e0b51e
@ -21,6 +21,17 @@
|
||||
#include <memory>
|
||||
#include <new>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
|
@ -26,6 +26,17 @@
|
||||
#include <filesystem>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wtautological-type-limit-compare"
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
@ -34,8 +45,6 @@
|
||||
#pragma clang diagnostic ignored "-Wunused-macros"
|
||||
#endif
|
||||
|
||||
#pragma warning(disable : 4062)
|
||||
|
||||
#define D3DX12_NO_STATE_OBJECT_HELPERS
|
||||
#define D3DX12_NO_CHECK_FEATURE_SUPPORT_CLASS
|
||||
#ifdef WIN32
|
||||
|
@ -18,14 +18,13 @@
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <d3d12.h>
|
||||
#pragma comment(lib,"dxguid.lib")
|
||||
#else
|
||||
#include <wsl/winadapter.h>
|
||||
#include <wsl/wrladapter.h>
|
||||
#include <directx/d3d12.h>
|
||||
#endif
|
||||
|
||||
#pragma comment(lib,"dxguid.lib")
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
@ -26,6 +26,15 @@
|
||||
|
||||
#include <wrl/client.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
|
@ -35,6 +35,17 @@
|
||||
|
||||
#include <wrl\client.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
|
@ -40,6 +40,17 @@
|
||||
#include <thread>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wtautological-type-limit-compare"
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
|
@ -29,6 +29,17 @@
|
||||
|
||||
#include <wrl\client.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
|
@ -40,18 +40,22 @@
|
||||
#include <new>
|
||||
#include <tuple>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
#endif
|
||||
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
|
||||
using namespace DirectX;
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
|
@ -34,6 +34,17 @@
|
||||
|
||||
#include <wrl\client.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4062 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4062 enumerator 'x' in switch of enum 'y' is not handled
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wtautological-type-limit-compare"
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
@ -42,13 +53,6 @@
|
||||
#pragma clang diagnostic ignored "-Wunused-macros"
|
||||
#endif
|
||||
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
|
||||
#define D3DX12_NO_STATE_OBJECT_HELPERS
|
||||
#define D3DX12_NO_CHECK_FEATURE_SUPPORT_CLASS
|
||||
#include "d3dx12.h"
|
||||
|
@ -34,18 +34,21 @@
|
||||
|
||||
#include <wrl\client.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4061 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4061 enumerator 'x' in switch of enum 'y' is not explicitly handled by a case label
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||
#endif
|
||||
|
||||
// Off by default warnings
|
||||
#pragma warning(disable : 4619 4616 4623 4626 5027)
|
||||
// C4619/4616 #pragma warning warnings
|
||||
// C4623 default constructor was implicitly defined as deleted
|
||||
// C4626 assignment operator was implicitly defined as deleted
|
||||
// C5027 move assignment operator was implicitly defined as deleted
|
||||
|
||||
using namespace DirectX;
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user