]> git.lttng.org Git - lttng-tools.git/commitdiff
Clean-up: lttng-ctl: remove unused variable
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 15 Jan 2025 19:02:23 +0000 (14:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jan 2025 19:18:27 +0000 (19:18 +0000)
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 <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.cpp

index 9af768fb1ac045831a6bb85a0e7cf5b27aa783f2..905a1750c5f779f3064f55e78d4f7544615db2a8 100644 (file)
@@ -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;
This page took 0.031445 seconds and 4 git commands to generate.