commit | a152ed7a2a81b36626cdd8f9af37ef828754cf95 | [log] [tgz] |
---|---|---|
author | Joseph Huber <huberjn@outlook.com> | Fri Mar 15 17:55:50 2024 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Mar 15 16:56:59 2024 -0700 |
tree | c15e7da3d7a055e8b4f38931d89f797107c37bf4 | |
parent | 9a2f947e92b151c91aa97686a3acaec37c5c8e88 [diff] |
[Libomptarget][NFC] Remove warning on return value const GitOrigin-RevId: 470040bd4d54f39f9ac0868a2197fa2ae3e6d4f5
diff --git a/libomptarget/plugins-nextgen/common/include/PluginInterface.h b/libomptarget/plugins-nextgen/common/include/PluginInterface.h index 9645ab2..118bb7d 100644 --- a/libomptarget/plugins-nextgen/common/include/PluginInterface.h +++ b/libomptarget/plugins-nextgen/common/include/PluginInterface.h
@@ -1393,7 +1393,7 @@ }; /// A static check on whether or not we support RPC in libomptarget. -const bool libomptargetSupportsRPC(); +bool libomptargetSupportsRPC(); } // namespace plugin } // namespace target
diff --git a/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp index 8c8c52d..414506f 100644 --- a/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp +++ b/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
@@ -1560,7 +1560,7 @@ return isELFCompatible(Image); } -const bool llvm::omp::target::plugin::libomptargetSupportsRPC() { +bool llvm::omp::target::plugin::libomptargetSupportsRPC() { #ifdef LIBOMPTARGET_RPC_SUPPORT return true; #else