From 294d6008083427b974ef0fa3540f6a1f56d8cee6 Mon Sep 17 00:00:00 2001 From: jinhelin Date: Fri, 17 Jan 2025 15:06:40 +0800 Subject: [PATCH] Fix compilation errors with unused variables (#9793) close pingcap/tiflash#9794 Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com> --- dbms/src/AggregateFunctions/AggregateFunctionNull.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/AggregateFunctions/AggregateFunctionNull.h b/dbms/src/AggregateFunctions/AggregateFunctionNull.h index b3845363618..dc6d8ec6e19 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionNull.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionNull.h @@ -513,7 +513,7 @@ inline size_t enlargePrefixSize(size_t prefix_size) noexcept static_assert((sizeof(prefix_size_look_up_table) / sizeof(UInt64)) == 7); // align_size is equal to prefix_size at the beginning - auto align_size = prefix_size; + [[maybe_unused]] const auto align_size = prefix_size; if (prefix_size < 8) prefix_size = prefix_size_look_up_table[prefix_size - 1];