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

@@ -148,7 +148,7 @@ static uint NPFHash(TileIndex tile, Trackdir dir)
return ((part1 << NPF_HASH_HALFBITS | part2) + (NPF_HASH_SIZE * dir / TRACKDIR_END)) % NPF_HASH_SIZE;
}
static int32_t NPFCalcZero(AyStar *as, AyStarNode *current, OpenListNode *parent)
static int32_t NPFCalcZero(AyStar *, AyStarNode *, OpenListNode *)
{
return 0;
}
@@ -156,7 +156,7 @@ static int32_t NPFCalcZero(AyStar *as, AyStarNode *current, OpenListNode *parent
/* Calculates the heuristic to the target station or tile. For train stations, it
* takes into account the direction of approach.
*/
static int32_t NPFCalcStationOrTileHeuristic(AyStar *as, AyStarNode *current, OpenListNode *parent)
static int32_t NPFCalcStationOrTileHeuristic(AyStar *as, AyStarNode *current, OpenListNode *)
{
NPFFindStationOrTileData *fstd = (NPFFindStationOrTileData*)as->user_target;
NPFFoundTargetData *ftd = (NPFFoundTargetData*)as->user_path;
@@ -312,7 +312,7 @@ static Vehicle *CountShipProc(Vehicle *v, void *data)
return nullptr;
}
static int32_t NPFWaterPathCost(AyStar *as, AyStarNode *current, OpenListNode *parent)
static int32_t NPFWaterPathCost(AyStar *, AyStarNode *current, OpenListNode *parent)
{
int32_t cost = 0;
Trackdir trackdir = current->direction;
@@ -340,7 +340,7 @@ static int32_t NPFWaterPathCost(AyStar *as, AyStarNode *current, OpenListNode *p
}
/* Determine the cost of this node, for road tracks */
static int32_t NPFRoadPathCost(AyStar *as, AyStarNode *current, OpenListNode *parent)
static int32_t NPFRoadPathCost(AyStar *, AyStarNode *current, OpenListNode *)
{
TileIndex tile = current->tile;
int32_t cost = 0;