Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -28,7 +28,7 @@ public:
|
||||
* Called by YAPF to attach cached or local segment cost data to the given node.
|
||||
* @return true if globally cached data were used or false if local data was used
|
||||
*/
|
||||
inline bool PfNodeCacheFetch(Node &n)
|
||||
inline bool PfNodeCacheFetch(Node &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
* Called by YAPF to flush the cached segment cost data back into cache storage.
|
||||
* Current cache implementation doesn't use that.
|
||||
*/
|
||||
inline void PfNodeCacheFlush(Node &n)
|
||||
inline void PfNodeCacheFlush(Node &)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
* Called by YAPF to flush the cached segment cost data back into cache storage.
|
||||
* Current cache implementation doesn't use that.
|
||||
*/
|
||||
inline void PfNodeCacheFlush(Node &n)
|
||||
inline void PfNodeCacheFlush(Node &)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -101,7 +101,7 @@ struct CSegmentCostCacheBase
|
||||
{
|
||||
static int s_rail_change_counter;
|
||||
|
||||
static void NotifyTrackLayoutChange(TileIndex tile, Track track)
|
||||
static void NotifyTrackLayoutChange(TileIndex, Track)
|
||||
{
|
||||
s_rail_change_counter++;
|
||||
}
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
* Called by YAPF to flush the cached segment cost data back into cache storage.
|
||||
* Current cache implementation doesn't use that.
|
||||
*/
|
||||
inline void PfNodeCacheFlush(Node &n)
|
||||
inline void PfNodeCacheFlush(Node &)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
}
|
||||
|
||||
/** Called by YAPF to detect if node ends in the desired destination */
|
||||
inline bool PfDetectDestination(TileIndex tile, Trackdir td)
|
||||
inline bool PfDetectDestination(TileIndex tile, Trackdir)
|
||||
{
|
||||
bool bDest = IsRailDepotTile(tile);
|
||||
return bDest;
|
||||
|
||||
@@ -417,7 +417,7 @@ public:
|
||||
return result1;
|
||||
}
|
||||
|
||||
inline Trackdir ChooseRailTrack(const Train *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found, bool reserve_track, PBSTileInfo *target, TileIndex *dest)
|
||||
inline Trackdir ChooseRailTrack(const Train *v, TileIndex, DiagDirection, TrackBits, bool &path_found, bool reserve_track, PBSTileInfo *target, TileIndex *dest)
|
||||
{
|
||||
if (target != nullptr) target->tile = INVALID_TILE;
|
||||
if (dest != nullptr) *dest = INVALID_TILE;
|
||||
|
||||
@@ -35,7 +35,7 @@ protected:
|
||||
return *static_cast<Tpf *>(this);
|
||||
}
|
||||
|
||||
int SlopeCost(TileIndex tile, TileIndex next_tile, Trackdir trackdir)
|
||||
int SlopeCost(TileIndex tile, TileIndex next_tile, Trackdir)
|
||||
{
|
||||
/* height of the center of the current tile */
|
||||
int x1 = TileX(tile) * TILE_SIZE;
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
* Calculates only the cost of given node, adds it to the parent node cost
|
||||
* and stores the result into Node::m_cost member
|
||||
*/
|
||||
inline bool PfCalcCost(Node &n, const TrackFollower *tf)
|
||||
inline bool PfCalcCost(Node &n, const TrackFollower *)
|
||||
{
|
||||
int segment_cost = 0;
|
||||
uint tiles = 0;
|
||||
@@ -202,7 +202,7 @@ public:
|
||||
return IsRoadDepotTile(n.m_segment_last_tile);
|
||||
}
|
||||
|
||||
inline bool PfDetectDestinationTile(TileIndex tile, Trackdir trackdir)
|
||||
inline bool PfDetectDestinationTile(TileIndex tile, Trackdir)
|
||||
{
|
||||
return IsRoadDepotTile(tile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user