From f10ad63044d998fbd8ace8a18c570123a9c9f271 Mon Sep 17 00:00:00 2001 From: Dario Date: Sun, 21 Jul 2024 18:20:36 -0300 Subject: [PATCH] Add clang ifdef for clang warning pragmas. --- src/d3d12/rt64_d3d12.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d3d12/rt64_d3d12.cpp b/src/d3d12/rt64_d3d12.cpp index a17c5c0..86195ef 100644 --- a/src/d3d12/rt64_d3d12.cpp +++ b/src/d3d12/rt64_d3d12.cpp @@ -6,11 +6,17 @@ #include +#ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wtautological-undefined-compare" #pragma clang diagnostic ignored "-Wswitch" +#endif + #include "D3D12MemAlloc.cpp" + +#ifdef __clang__ #pragma clang diagnostic pop +#endif #include "utf8conv/utf8conv.h"