Codechange: Silence warnings about intentionally unused parameters.

This commit is contained in:
frosch
2023-09-16 22:20:53 +02:00
committed by frosch
parent df400ef84a
commit b6c8f301be
227 changed files with 972 additions and 1039 deletions

View File

@@ -108,10 +108,9 @@ public:
/**
* Setup the node to start iterating at.
* @param source Unused.
* @param node Node to start iterating at.
*/
void SetNode(NodeID source, NodeID node)
void SetNode(NodeID, NodeID node)
{
this->i = this->job[node].edges.cbegin();
this->end = this->job[node].edges.cend();
@@ -197,7 +196,7 @@ public:
* @return True if base + the new edge would be better than the path associated
* with this annotation.
*/
bool DistanceAnnotation::IsBetter(const DistanceAnnotation *base, uint cap,
bool DistanceAnnotation::IsBetter(const DistanceAnnotation *base, uint,
int free_cap, uint dist) const
{
/* If any of the paths is disconnected, the other one is better. If both