diff --git a/libs/core/batch_environments/src/batch_environment.cpp b/libs/core/batch_environments/src/batch_environment.cpp index 49d008aaa973..f56db2142ec7 100644 --- a/libs/core/batch_environments/src/batch_environment.cpp +++ b/libs/core/batch_environments/src/batch_environment.cpp @@ -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 const& nodes, std::string const& agas_host, - bool have_tcp) + [[maybe_unused]] bool have_tcp) { if (debug_) std::cerr << "got node list" << std::endl; @@ -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(); diff --git a/libs/full/command_line_handling/src/command_line_handling.cpp b/libs/full/command_line_handling/src/command_line_handling.cpp index a3c018f293f7..acd17480fe00 100644 --- a/libs/full/command_line_handling/src/command_line_handling.cpp +++ b/libs/full/command_line_handling/src/command_line_handling.cpp @@ -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;