Commit ad3d27937 for imagemagick.org
commit ad3d27937f1a93a50a646d203e0f3eaec9cf2b84
Author: Cristy <urban-warrior@imagemagick.org>
Date: Wed Apr 15 20:49:11 2026 -0400
eliminate compiler warning
diff --git a/MagickCore/thread-private.h b/MagickCore/thread-private.h
index 7d793d46b..8ecc97bbf 100644
--- a/MagickCore/thread-private.h
+++ b/MagickCore/thread-private.h
@@ -183,7 +183,11 @@ static inline void SetOpenMPMaximumThreads(const int magick_unused(threads))
#if defined(MAGICKCORE_OPENMP_SUPPORT)
static inline void SetOpenMPMaxActiveLevels(const int value)
{
+#if defined(_MSC_VER)
+ omp_set_nested(value);
+#else
omp_set_max_active_levels(value ? 2 : 1);
+#endif
#else
static inline void SetOpenMPMaxActiveLevels(const int magick_unused(value))
{