mirror of https://github.com/OpenRCT2/OpenRCT2.git
Declare arguments as [[maybe_unused]] due to constexpr checks
This commit is contained in:
parent
fd66cb5e1b
commit
f3a5320ff8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue