[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 01:07:17 PST 2021


mstorsjo created this revision.
mstorsjo added a reviewer: AndreyChurbanov.
Herald added subscribers: guansong, yaxunl.
mstorsjo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.

I've tried to upstream these changes first in
https://github.com/intel/ittapi/pull/25, but there hasn't been
any response whatsoever.


Repository:
  rG LLVM Github Monorepo

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.387866.patch
Type: text/x-patch
Size: 827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211117/d8ec0f6f/attachment.bin>


More information about the Openmp-commits mailing list