mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Declare arguments as [[maybe_unused]] due to constexpr checks
This commit is contained in:
@@ -68,7 +68,8 @@ namespace OpenRCT2::PathFinding
|
||||
// require to have PEEP_FLAGS_DEBUG_PATHFINDING set in PeepFlags in order to activate logging.
|
||||
static constexpr bool kLogPathfinding = false;
|
||||
|
||||
template<typename... TArgs> static void LogPathfinding(const Peep* peep, const char* format, TArgs&&... args)
|
||||
template<typename... TArgs>
|
||||
static void LogPathfinding([[maybe_unused]] const Peep* peep, [[maybe_unused]] const char* format, TArgs&&... args)
|
||||
{
|
||||
if constexpr (kLogPathfinding)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user