Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -206,7 +206,7 @@ Industry::~Industry()
|
||||
* Invalidating some stuff after removing item from the pool.
|
||||
* @param index index of deleted item
|
||||
*/
|
||||
void Industry::PostDestructor(size_t index)
|
||||
void Industry::PostDestructor(size_t)
|
||||
{
|
||||
InvalidateWindowData(WC_INDUSTRY_DIRECTORY, 0, IDIWD_FORCE_REBUILD);
|
||||
SetWindowDirty(WC_BUILD_INDUSTRY, 0);
|
||||
@@ -385,7 +385,7 @@ static void DrawTile_Industry(TileInfo *ti)
|
||||
}
|
||||
}
|
||||
|
||||
static int GetSlopePixelZ_Industry(TileIndex tile, uint x, uint y, bool ground_vehicle)
|
||||
static int GetSlopePixelZ_Industry(TileIndex tile, uint, uint, bool)
|
||||
{
|
||||
return GetTileMaxPixelZ(tile);
|
||||
}
|
||||
@@ -952,7 +952,7 @@ static bool ClickTile_Industry(TileIndex tile)
|
||||
return true;
|
||||
}
|
||||
|
||||
static TrackStatus GetTileTrackStatus_Industry(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
|
||||
static TrackStatus GetTileTrackStatus_Industry(TileIndex, TransportType, uint, DiagDirection)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -1094,10 +1094,9 @@ void PlantRandomFarmField(const Industry *i)
|
||||
/**
|
||||
* Search callback function for ChopLumberMillTrees
|
||||
* @param tile to test
|
||||
* @param user_data that is passed by the caller. In this case, nothing
|
||||
* @return the result of the test
|
||||
*/
|
||||
static bool SearchLumberMillTrees(TileIndex tile, void *user_data)
|
||||
static bool SearchLumberMillTrees(TileIndex tile, void *)
|
||||
{
|
||||
if (IsTileType(tile, MP_TREES) && GetTreeGrowth(tile) > 2) { ///< 3 and up means all fully grown trees
|
||||
/* found a tree */
|
||||
@@ -1225,10 +1224,9 @@ void OnTick_Industry()
|
||||
|
||||
/**
|
||||
* Check the conditions of #CHECK_NOTHING (Always succeeds).
|
||||
* @param tile %Tile to perform the checking.
|
||||
* @return Succeeded or failed command.
|
||||
*/
|
||||
static CommandCost CheckNewIndustry_NULL(TileIndex tile)
|
||||
static CommandCost CheckNewIndustry_NULL(TileIndex)
|
||||
{
|
||||
return CommandCost();
|
||||
}
|
||||
|
Reference in New Issue
Block a user