Skip to content

Commit

Permalink
add [[maybe_unused]]
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Aug 14, 2024
1 parent 58f4200 commit 27beadd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/core/batch_environments/src/batch_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace hpx::util {
// this function initializes the map of nodes from the given a list of nodes
std::string batch_environment::init_from_nodelist(
std::vector<std::string> const& nodes, std::string const& agas_host,
bool have_tcp)
[[maybe_unused]] bool have_tcp)
{
if (debug_)
std::cerr << "got node list" << std::endl;
Expand Down Expand Up @@ -246,7 +246,7 @@ namespace hpx::util {
}

std::string batch_environment::host_name(
std::string const& def_hpx_name) const
[[maybe_unused]] std::string const& def_hpx_name) const
{
#if defined(HPX_HAVE_PARCELPORT_TCP)
std::string host = nodes_.empty() ? def_hpx_name : host_name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ namespace hpx::util {
agas_host.empty() ? HPX_INITIAL_IP_ADDRESS : agas_host);
#endif

bool run_agas_server = false;
[[maybe_unused]] bool run_agas_server = false;
[[maybe_unused]] std::string hpx_host;
[[maybe_unused]] std::uint16_t hpx_port = 0;

Expand Down

0 comments on commit 27beadd

Please sign in to comment.