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

@@ -462,13 +462,13 @@ public:
* Sets the expense type associated to this vehicle type
* @param income whether this is income or (running) expenses of the vehicle
*/
virtual ExpensesType GetExpenseType(bool income) const { return EXPENSES_OTHER; }
virtual ExpensesType GetExpenseType([[maybe_unused]] bool income) const { return EXPENSES_OTHER; }
/**
* Play the sound associated with leaving the station
* @param force Should we play the sound even if sound effects are muted? (horn hotkey)
*/
virtual void PlayLeaveStationSound(bool force = false) const {}
virtual void PlayLeaveStationSound([[maybe_unused]] bool force = false) const {}
/**
* Whether this is the primary vehicle in the chain.
@@ -482,7 +482,7 @@ public:
* @param direction the direction the vehicle is facing
* @param[out] result Vehicle sprite sequence.
*/
virtual void GetImage(Direction direction, EngineImageType image_type, VehicleSpriteSeq *result) const { result->Clear(); }
virtual void GetImage([[maybe_unused]] Direction direction, [[maybe_unused]] EngineImageType image_type, [[maybe_unused]] VehicleSpriteSeq *result) const { result->Clear(); }
const GRFFile *GetGRF() const;
uint32_t GetGRFID() const;
@@ -782,7 +782,7 @@ public:
* @param station the station to make the next location of the vehicle.
* @return the location (tile) to aim for.
*/
virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; }
virtual TileIndex GetOrderStationLocation([[maybe_unused]] StationID station) { return INVALID_TILE; }
/**
* Find the closest depot for this vehicle and tell us the location,