From 8b8c88ac9256dc80f596bccd5ca1061f2a345af4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 15 Jan 2025 14:02:23 -0500 Subject: [PATCH] Clean-up: lttng-ctl: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix: CXX lttng-ctl.lo /home/simark/src/lttng-tools/src/lib/lttng-ctl/lttng-ctl.cpp: In function 'int lttng_enable_channel(lttng_handle*, lttng_channel*)': /home/simark/src/lttng-tools/src/lib/lttng-ctl/lttng-ctl.cpp:1549:31: error: unused variable 'ret_code' [-Werror=unused-variable] 1549 | enum lttng_error_code ret_code; | ^~~~~~~~ Change-Id: Ie3b12eb9fba99578a677b1679147ea29daddb653 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- src/lib/lttng-ctl/lttng-ctl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/lttng-ctl/lttng-ctl.cpp b/src/lib/lttng-ctl/lttng-ctl.cpp index 9af768fb1..905a1750c 100644 --- a/src/lib/lttng-ctl/lttng-ctl.cpp +++ b/src/lib/lttng-ctl/lttng-ctl.cpp @@ -1546,7 +1546,6 @@ void lttng_channel_destroy(struct lttng_channel *channel) */ int lttng_enable_channel(struct lttng_handle *handle, struct lttng_channel *in_chan) { - enum lttng_error_code ret_code; int ret; struct lttng_dynamic_buffer buffer; struct lttcomm_session_msg lsm; -- 2.39.5