1
0
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:
ζeh Matt
2024-02-23 00:09:59 +02:00
parent fd66cb5e1b
commit f3a5320ff8

View File

@@ -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)
{