diff --git a/dbms/src/Common/QueryProfiler.cpp b/dbms/src/Common/QueryProfiler.cpp index a3d88af6007..5aafa35df94 100644 --- a/dbms/src/Common/QueryProfiler.cpp +++ b/dbms/src/Common/QueryProfiler.cpp @@ -176,6 +176,7 @@ QueryProfilerBase::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 } diff --git a/dbms/src/Core/Defines.h b/dbms/src/Core/Defines.h index 1214b742803..b9f3563a9db 100644 --- a/dbms/src/Core/Defines.h +++ b/dbms/src/Core/Defines.h @@ -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__)