From: Simon Marchi Date: Wed, 31 Mar 2021 19:10:13 +0000 (-0400) Subject: Clean-up: lttng-session: fix -Wshadow error in unregister_all_triggers X-Git-Tag: v2.13.0-rc1~120 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=49bac6bf673c3a156f27313d875c89df9717dd2f;p=lttng-tools.git Clean-up: lttng-session: fix -Wshadow error in unregister_all_triggers We can safely re-use the variable at function scope. Change-Id: I0c357c328325853842d599b2d79dc2076c48365e Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index d733f7061..bca33a4f8 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -1322,7 +1322,6 @@ static void unregister_all_triggers(void) assert(trigger_status == LTTNG_TRIGGER_STATUS_OK); for (i = 0; i < trigger_count; i++) { - enum lttng_error_code ret_code; uid_t trigger_owner; const char *trigger_name; const struct lttng_trigger *trigger =