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
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 2 additions and 1 deletions

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