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

@@ -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 &)
{
}
};