fix unused-variable warning

This commit is contained in:
Joachim Schoeberl 2022-02-11 15:08:59 +01:00
parent 79ff65d224
commit 67c031cb77

View File

@ -147,7 +147,7 @@ namespace ngcore
}; };
}; };
struct TNoTracing{ static constexpr bool do_tracing=false; }; struct TNoTracing{ static constexpr bool do_tracing=false; };
struct TTracing{ static constexpr bool do_tracing=true; }; struct TTracing{ static constexpr bool do_tracing=true; };
@ -163,8 +163,8 @@ namespace ngcore
constexpr bool is_timing_type_v = std::is_same_v<T, TNoTiming> || std::is_same_v<T, TTiming>; constexpr bool is_timing_type_v = std::is_same_v<T, TNoTiming> || std::is_same_v<T, TTiming>;
} }
static TNoTracing NoTracing; [[maybe_unused]] static TNoTracing NoTracing;
static TNoTiming NoTiming; [[maybe_unused]] static TNoTiming NoTiming;
template<typename TTracing=TTracing, typename TTiming=TTiming> template<typename TTracing=TTracing, typename TTiming=TTiming>
class Timer class Timer