From 57d397b33ec953c53feaca70743356cca61d0b61 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 1 Jan 2024 00:20:12 +0100 Subject: [PATCH] nvtx: Implement review suggestion. --- src/profiling.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/profiling.cpp b/src/profiling.cpp index fd476ba47e3..12ebb22bfa8 100644 --- a/src/profiling.cpp +++ b/src/profiling.cpp @@ -25,10 +25,14 @@ #include #ifdef WZ_PROFILING_NVTX -#pragma warning( push ) -#pragma warning( disable : 4191 ) +#if defined( _MSC_VER ) +# pragma warning( push ) +# pragma warning( disable : 4191 ) +#endif #include -#pragma warning( pop ) +#if defined( _MSC_VER ) +# pragma warning( pop ) +#endif #endif #ifdef WZ_PROFILING_VTUNE