forked from rosebudai/OpenRCT2-Web
Declare arguments as [[maybe_unused]] due to constexpr checks
This commit is contained in:
1 file changed
+2
-1
@@ -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