some compilers hated [[maybe_unused]] so use (void) when they are unused

pull/1638/head
Jeff Becker 3 years ago
parent cf187ddffc
commit d882f1a302
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -103,11 +103,12 @@ namespace llarp
template <typename... T>
struct LogTrace
{
LogTrace(
[[maybe_unused]] T... args,
[[maybe_unused]] const slns::source_location& location = slns::source_location::current())
LogTrace(T... args, const slns::source_location& location = slns::source_location::current())
{
#ifndef NDEBUG
#ifdef NDEBUG
((void)args, ...);
(void)location;
#else
_log(eLogTrace, location, std::forward<T>(args)...);
#endif
}

Loading…
Cancel
Save