Skip to content

Commit

Permalink
adding maybe_unused to init arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Oct 28, 2023
1 parent 866d1e6 commit efe2aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/core/openshmem_base/src/openshmem_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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_)
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit efe2aa2

Please sign in to comment.