[Openmp-commits] [openmp] 9b2b549 - [OpenMP] Silence build warnings when built with MinGW
Martin Storsjö via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 17 08:52:12 PST 2021
Author: Martin Storsjö
Date: 2021-11-17T18:51:18+02:00
New Revision: 9b2b54983765abd365f6e43428c6a2697c8e4c03
URL: https://github.com/llvm/llvm-project/commit/9b2b54983765abd365f6e43428c6a2697c8e4c03
DIFF: https://github.com/llvm/llvm-project/commit/9b2b54983765abd365f6e43428c6a2697c8e4c03.diff
LOG: [OpenMP] Silence build warnings when built with MinGW
There's an attempt to upstream this change in
https://github.com/intel/ittapi/pull/25 too.
Differential Revision: https://reviews.llvm.org/D114069
Added:
Modified:
openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
Removed:
################################################################################
diff --git a/openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h b/openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
index 84842215eb57..6499247ee358 100644
--- a/openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
+++ b/openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
@@ -11,6 +11,8 @@
#if ITT_PLATFORM == ITT_PLATFORM_WIN
+#if defined _MSC_VER
+
#pragma warning(disable : 593) /* parameter "XXXX" was set but never used */
#pragma warning(disable : 344) /* typedef name has already been declared (with \
same type) */
@@ -19,6 +21,8 @@
#pragma warning( \
disable : 4306) /* conversion from '?' to '?' of greater size */
+#endif /* _MSC_VER */
+
#endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
#if defined __INTEL_COMPILER
More information about the Openmp-commits
mailing list