From: Simon Marchi Date: Wed, 31 Mar 2021 18:38:26 +0000 (-0400) Subject: Clean-up: consumer: fix -Wshadow error in lttng_consumer_rotate_channel X-Git-Tag: v2.13.0-rc1~137 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b1085ea8f4d95b74bbdcfa746c546f8ca8c9af84;p=lttng-tools.git Clean-up: consumer: fix -Wshadow error in lttng_consumer_rotate_channel We can safely re-use the chunk_status declared in the broader scope. Change-Id: I0dc501168b1c35522a2ce4805d4514854162cefc Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index cecdc3f91..20f4deb29 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -4094,7 +4094,6 @@ int lttng_consumer_rotate_channel(struct lttng_consumer_channel *channel, */ flush_active = produced_pos != consumed_pos; if (!flush_active) { - enum lttng_trace_chunk_status chunk_status; const char *trace_chunk_name; uint64_t trace_chunk_id;