diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 9e8bc5c883..bc93899351 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -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 static void LogPathfinding(const Peep* peep, const char* format, TArgs&&... args) + template + static void LogPathfinding([[maybe_unused]] const Peep* peep, [[maybe_unused]] const char* format, TArgs&&... args) { if constexpr (kLogPathfinding) {