Skip to content

Commit

Permalink
Fix PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markuu-s committed Jan 24, 2025
1 parent d7ca9ba commit 2d82f7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controlplane/configparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ controlplane::base_t config_parser_t::loadConfig(const std::string& rootFilePath
return baseNext;
}

void config_parser_t::loadConfig_route_bird(controlplane::base_t& baseNext,
void config_parser_t::loadConfig_route_bird([[maybe_unused]]controlplane::base_t& baseNext,
std::vector<controlplane::route::bird_import_t>& birdsImport,
const nlohmann::json& birdJson)
{
Expand All @@ -216,10 +216,10 @@ void config_parser_t::loadConfig_route_bird(controlplane::base_t& baseNext,
import.vrf = elemJson[BirdImport::vrfStr];
}

birdsImport.push_back(import);
YANET_LOG_INFO("loadConfig_route_bird: socket(%s), vrf(%s)\n",
import.socket.data(),
import.vrf.data());
birdsImport.push_back(std::move(import));
}
}

Expand Down
2 changes: 1 addition & 1 deletion controlplane/rib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void rib_t::bird_import_get()
auto route = controlPlane->getRoute();
for (auto& [vrf, response] : route)
{
(void)vrf;
YANET_GCC_BUG_UNUSED(vrf);
auto imports = response.bird_imports;

for (auto& import : imports)
Expand Down

0 comments on commit 2d82f7e

Please sign in to comment.