From efe2aa2bcc45a6c6e8cf70dde5c365476e8015f2 Mon Sep 17 00:00:00 2001 From: ct-clmsn Date: Fri, 27 Oct 2023 21:39:51 -0400 Subject: [PATCH] adding maybe_unused to init arguments --- libs/core/openshmem_base/src/openshmem_environment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/core/openshmem_base/src/openshmem_environment.cpp b/libs/core/openshmem_base/src/openshmem_environment.cpp index 6ec06a60d99e..8b85f47c0031 100644 --- a/libs/core/openshmem_base/src/openshmem_environment.cpp +++ b/libs/core/openshmem_base/src/openshmem_environment.cpp @@ -62,7 +62,7 @@ namespace hpx::util { } // namespace detail bool openshmem_environment::check_openshmem_environment( - util::runtime_configuration const& cfg) + [[maybe_unused]] util::runtime_configuration const& cfg) { #if defined(HPX_HAVE_NETWORKING) && defined(HPX_HAVE_MODULE_OPENSHMEM_BASE) // We disable the OPENSHMEM parcelport if any of these hold: @@ -110,7 +110,7 @@ namespace hpx::util { unsigned int openshmem_environment::xmt = 0; /////////////////////////////////////////////////////////////////////////// - int openshmem_environment::init(int* argc, char*** argv, int& provided) + int openshmem_environment::init([[maybe_unused]] int* argc, [[maybe_unused]] char*** argv, [[maybe_unused]] int& provided) { if (!has_called_init_) { @@ -171,7 +171,7 @@ namespace hpx::util { /////////////////////////////////////////////////////////////////////////// void openshmem_environment::init( - int* argc, char*** argv, util::runtime_configuration& rtcfg) + [[maybe_unused]] int* argc, [[maybe_unused]] char*** argv, [[maybe_unused]] util::runtime_configuration& rtcfg) { if (enabled_) return; // don't call twice