[Openmp-commits] [PATCH] D45415: [OpenMP] Remove extra warning when we build

Guansong Zhang via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 10 08:31:38 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329713: [OpenMP] Remove extra warning when we build (authored by guansong, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D45415?vs=141549&id=141858#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D45415

Files:
  openmp/trunk/libomptarget/deviceRTLs/nvptx/src/debug.h


Index: openmp/trunk/libomptarget/deviceRTLs/nvptx/src/debug.h
===================================================================
--- openmp/trunk/libomptarget/deviceRTLs/nvptx/src/debug.h
+++ openmp/trunk/libomptarget/deviceRTLs/nvptx/src/debug.h
@@ -159,7 +159,7 @@
 // implement
 #if OMPTARGET_NVPTX_DEBUG
 
-#define DON(_flag) ((OMPTARGET_NVPTX_DEBUG) & (_flag))
+#define DON(_flag) ((unsigned)(OMPTARGET_NVPTX_DEBUG) & (_flag))
 
 #define PRINT0(_flag, _str)                                                    \
   {                                                                            \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45415.141858.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180410/ce7777d6/attachment.bin>


More information about the Openmp-commits mailing list