Fixed non-standard build

This commit is contained in:
Alexey Milovidov 2019-07-27 20:04:26 +03:00
parent 3f2d857cb1
commit 98c3ff92ae
2 changed files with 2 additions and 1 deletions

View File

@ -176,6 +176,7 @@ QueryProfilerBase<ProfilerImpl>::QueryProfilerBase(const Int32 thread_id, const
throw;
}
#else
UNUSED(thread_id, clock_type, period, pause_signal);
throw Exception("QueryProfiler cannot work with stock libunwind", ErrorCodes::NOT_IMPLEMENTED);
#endif
}

View File

@ -142,4 +142,4 @@
/// A macro for suppressing warnings about unused variables or function results.
/// Useful for structured bindings which have no standard way to declare this.
#define UNUSED(X) (void) (X)
#define UNUSED(...) (void)(__VA_ARGS__)