From: Simon Marchi Date: Wed, 15 Jan 2025 19:02:23 +0000 (-0500) Subject: Clean-up: lttng-ctl: remove unused variable X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8b8c88ac9256dc80f596bccd5ca1061f2a345af4;p=lttng-tools.git Clean-up: lttng-ctl: remove unused variable 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 --- 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;