You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2025/04/30 05:04:02 UTC
(kudu) branch master updated: [rpc] fix compilation warning on macOS
This is an automated email from the ASF dual-hosted git repository.
alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new fcecd4bd5 [rpc] fix compilation warning on macOS
fcecd4bd5 is described below
commit fcecd4bd50e8f4d2bed43ff1858d6acc244ee718
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Mon Apr 28 11:16:41 2025 -0700
[rpc] fix compilation warning on macOS
This patch addresses the following compilation warning on macOS:
src/kudu/rpc/acceptor_pool.cc:264:18: warning: unused variable 'ds_query_freq_mask' [-Wunused-variable]
const uint64_t ds_query_freq_mask =
^
1 warning generated.
This changelist doesn't contain any functional modifications.
Change-Id: Ia1bba4e63f497db0367358c04b7f825a511f1fdb
Reviewed-on: http://gerrit.cloudera.org:8080/22827
Tested-by: Alexey Serbin <al...@apache.org>
Reviewed-by: Yifan Zhang <ch...@163.com>
---
src/kudu/rpc/acceptor_pool.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kudu/rpc/acceptor_pool.cc b/src/kudu/rpc/acceptor_pool.cc
index 009031b19..e54ea3341 100644
--- a/src/kudu/rpc/acceptor_pool.cc
+++ b/src/kudu/rpc/acceptor_pool.cc
@@ -261,10 +261,10 @@ void AcceptorPool::RunThread() {
const int ds_query_freq_log2 = FLAGS_rpc_listen_socket_stats_every_log2;
const bool ds_query_enabled = (ds_query_freq_log2 >= 0);
- const uint64_t ds_query_freq_mask =
- ds_query_enabled ? (1ULL << ds_query_freq_log2) - 1 : 0;
#if defined(KUDU_HAS_DIAGNOSTIC_SOCKET)
+ const uint64_t ds_query_freq_mask =
+ ds_query_enabled ? (1ULL << ds_query_freq_log2) - 1 : 0;
DiagnosticSocket ds;
uint64_t counter = 0;
if (ds_query_enabled) {