Skip to content

Commit

Permalink
added 'maybe unused'
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Oct 12, 2023
1 parent 8efadc1 commit cc0240b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 5 additions & 6 deletions libs/core/gasnet_base/src/gasnet_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ typedef struct
volatile int flag;
} done_t;

static void AM_signal(
gasnet_token_t token, gasnet_handlerarg_t a0, gasnet_handlerarg_t a1)
static void AM_signal([[maybe_unused]] gasnet_token_t token,
gasnet_handlerarg_t a0, gasnet_handlerarg_t a1)
{
done_t* done = reinterpret_cast<done_t*>(get_ptr_from_args(a0, a1));
uint_least32_t prev;
Expand All @@ -125,7 +125,8 @@ static void AM_signal(
done->flag = 1;
}

static void AM_signal_long(gasnet_token_t token, void* buf, size_t nbytes,
static void AM_signal_long([[maybe_unused]] gasnet_token_t token,
[[maybe_unused]] void* buf, [[maybe_unused]] size_t nbytes,
gasnet_handlerarg_t a0, gasnet_handlerarg_t a1)
{
done_t* done = reinterpret_cast<done_t*>(get_ptr_from_args(a0, a1));
Expand Down Expand Up @@ -292,7 +293,7 @@ namespace hpx::util {

///////////////////////////////////////////////////////////////////////////
int gasnet_environment::init(int* argc, char*** argv, const int minimal,
const int required, int& provided)
[[maybe_unused]] const int required, int& provided)
{
if (!has_called_init_)
{
Expand Down Expand Up @@ -349,8 +350,6 @@ namespace hpx::util {

GASNET_Safe(gasnet_getSegmentInfo(segments, size()));

int retval;

gasnet_barrier_notify(0, GASNET_BARRIERFLAG_ANONYMOUS);
gasnet_barrier_wait(0, GASNET_BARRIERFLAG_ANONYMOUS);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ namespace hpx::parcelset::policies::gasnet {
// different versions of clang-format disagree
// clang-format off
sender() noexcept
: next_free_tag_request_(-1)
, next_free_tag_(-1)
: next_free_tag_(-1)
{
}
// clang-format on
Expand Down Expand Up @@ -157,7 +156,6 @@ namespace hpx::parcelset::policies::gasnet {
connection_list connections_;

hpx::spinlock next_free_tag_mtx_;
int next_free_tag_request_;
int next_free_tag_;
};

Expand Down
2 changes: 1 addition & 1 deletion libs/full/parcelport_gasnet/src/parcelport_gasnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace hpx::parcelset {
}

static std::size_t background_threads(
util::runtime_configuration const& ini)
[[maybe_unused]] util::runtime_configuration const& ini)
{
/*
return hpx::util::get_entry_as<std::size_t>(ini,
Expand Down

0 comments on commit cc0240b

Please sign in to comment.