summaryrefslogtreecommitdiffstats
path: root/drivers/d3d12/d3d12ma.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-06-19 23:40:06 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-06-19 23:40:06 +0300
commit10d81a238e07aede26c50ba23cf640239f755e23 (patch)
tree2a0c27f94f31b883ddc06c143061d842add2385f /drivers/d3d12/d3d12ma.cpp
parentb75f0485ba15951b87f1d9a2d8dd0fcd55e178e4 (diff)
downloadredot-engine-10d81a238e07aede26c50ba23cf640239f755e23.tar.gz
[LLVM/MinGW] Fix/suppress DX12 related warnings.
Diffstat (limited to 'drivers/d3d12/d3d12ma.cpp')
-rw-r--r--drivers/d3d12/d3d12ma.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/d3d12/d3d12ma.cpp b/drivers/d3d12/d3d12ma.cpp
index 51171141de..b7c9eb7ec0 100644
--- a/drivers/d3d12/d3d12ma.cpp
+++ b/drivers/d3d12/d3d12ma.cpp
@@ -43,6 +43,18 @@
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wnonnull-compare"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#elif defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
+#pragma clang diagnostic ignored "-Wstring-plus-int"
+#pragma clang diagnostic ignored "-Wswitch"
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+#pragma clang diagnostic ignored "-Wtautological-undefined-compare"
+#pragma clang diagnostic ignored "-Wunused-variable"
+#pragma clang diagnostic ignored "-Wunused-but-set-variable"
+#pragma clang diagnostic ignored "-Wunused-function"
+#pragma clang diagnostic ignored "-Wunused-private-field"
+#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
#endif
#if defined(_MSC_VER)