[Openmp-commits] [PATCH] D114069: [OpenMP] Silence build warnings when built with MinGW

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 17 08:52:16 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9b2b54983765: [OpenMP] Silence build warnings when built with MinGW (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114069/new/

https://reviews.llvm.org/D114069

Files:
  openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h


Index: openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
===================================================================
--- openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114069.387958.patch
Type: text/x-patch
Size: 827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211117/38971e56/attachment.bin>


More information about the Openmp-commits mailing list