[Openmp-commits] [PATCH] D45415: [OpenMP] Remove extra warning when we build
Guansong Zhang via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Apr 8 09:46:31 PDT 2018
guansong created this revision.
guansong added a reviewer: grokos.
guansong added a project: OpenMP.
Herald added a subscriber: openmp-commits.
This one line change is to remove this warning message
"warning: integer conversion resulted in a change of sign"
Repository:
rOMP OpenMP
https://reviews.llvm.org/D45415
Files:
libomptarget/deviceRTLs/nvptx/src/debug.h
Index: libomptarget/deviceRTLs/nvptx/src/debug.h
===================================================================
--- libomptarget/deviceRTLs/nvptx/src/debug.h
+++ 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.141549.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180408/1b8d8332/attachment.bin>
More information about the Openmp-commits
mailing list