[Openmp-commits] [openmp] 470040b - [Libomptarget][NFC] Remove warning on return value const

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 15 16:50:43 PDT 2024


Author: Joseph Huber
Date: 2024-03-15T18:50:33-05:00
New Revision: 470040bd4d54f39f9ac0868a2197fa2ae3e6d4f5

URL: https://github.com/llvm/llvm-project/commit/470040bd4d54f39f9ac0868a2197fa2ae3e6d4f5
DIFF: https://github.com/llvm/llvm-project/commit/470040bd4d54f39f9ac0868a2197fa2ae3e6d4f5.diff

LOG: [Libomptarget][NFC] Remove warning on return value const

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h
    openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h
index 9645ab2a672625..118bb7d3051b24 100644
--- a/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h
+++ b/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h
@@ -1393,7 +1393,7 @@ template <typename ResourceRef> class GenericDeviceResourceManagerTy {
 };
 
 /// A static check on whether or not we support RPC in libomptarget.
-const bool libomptargetSupportsRPC();
+bool libomptargetSupportsRPC();
 
 } // namespace plugin
 } // namespace target

diff  --git a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
index 8c8c52de0c210c..414506f30b8f11 100644
--- a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
@@ -1560,7 +1560,7 @@ Expected<bool> GenericPluginTy::checkELFImage(StringRef Image) const {
   return isELFCompatible(Image);
 }
 
-const bool llvm::omp::target::plugin::libomptargetSupportsRPC() {
+bool llvm::omp::target::plugin::libomptargetSupportsRPC() {
 #ifdef LIBOMPTARGET_RPC_SUPPORT
   return true;
 #else


        


More information about the Openmp-commits mailing list