[Openmp-commits] [PATCH] D154787: [OpenMP] Fix build warnings

Shao-Ce SUN via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Jul 9 07:12:37 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG048423702d4b: [OpenMP] Fix build warnings (authored by sunshaoce).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154787

Files:
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
  openmp/libomptarget/src/private.h


Index: openmp/libomptarget/src/private.h
===================================================================
--- openmp/libomptarget/src/private.h
+++ openmp/libomptarget/src/private.h
@@ -257,7 +257,9 @@
 #endif
 
 #define TARGET_NAME Libomptarget
+#ifndef DEBUG_PREFIX
 #define DEBUG_PREFIX GETNAME(TARGET_NAME)
+#endif
 
 ////////////////////////////////////////////////////////////////////////////////
 /// dump a table of all the host-target pointer pairs on failure
Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
===================================================================
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
@@ -455,7 +455,7 @@
 
   if (RPCHandle)
     if (auto Err = RPCHandle->deinitDevice())
-      return std::move(Err);
+      return Err;
 
   return deinitImpl();
 }
@@ -549,7 +549,7 @@
     return Plugin::success();
 
   if (auto Err = Server.initDevice(*this, Plugin.getGlobalHandler(), Image))
-    return std::move(Err);
+    return Err;
 
   auto DeviceOrErr = Server.getDevice(*this);
   if (!DeviceOrErr)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154787.538431.patch
Type: text/x-patch
Size: 1203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230709/215b8991/attachment-0001.bin>


More information about the Openmp-commits mailing list