From: Mathieu Desnoyers Date: Fri, 15 Jul 2016 15:25:29 +0000 (-0400) Subject: Cleanup: __dynamic_len_idx set but not used warning X-Git-Tag: v2.9.0-rc1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ec0a7fba9ae64b9c36edbf027a249f37cef17b2f;p=lttng-modules.git Cleanup: __dynamic_len_idx set but not used warning __dynamic_len_idx can be set but not used, which causes gcc to emit a warning. Mark it as possibly unused. Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/lttng-tracepoint-event-impl.h b/probes/lttng-tracepoint-event-impl.h index e1c40829..cd7af776 100644 --- a/probes/lttng-tracepoint-event-impl.h +++ b/probes/lttng-tracepoint-event-impl.h @@ -1130,7 +1130,7 @@ static void __event_probe__##_name(void *__data, _proto) \ struct lib_ring_buffer_ctx __ctx; \ ssize_t __event_len; \ size_t __event_align; \ - size_t __orig_dynamic_len_offset, __dynamic_len_idx; \ + size_t __orig_dynamic_len_offset, __dynamic_len_idx __attribute__((unused)); \ union { \ size_t __dynamic_len_removed[ARRAY_SIZE(__event_fields___##_name)]; \ char __filter_stack_data[2 * sizeof(unsigned long) * ARRAY_SIZE(__event_fields___##_name)]; \ @@ -1204,7 +1204,7 @@ static void __event_probe__##_name(void *__data) \ struct lib_ring_buffer_ctx __ctx; \ ssize_t __event_len; \ size_t __event_align; \ - size_t __orig_dynamic_len_offset, __dynamic_len_idx; \ + size_t __orig_dynamic_len_offset, __dynamic_len_idx __attribute__((unused)); \ union { \ size_t __dynamic_len_removed[ARRAY_SIZE(__event_fields___##_name)]; \ char __filter_stack_data[2 * sizeof(unsigned long) * ARRAY_SIZE(__event_fields___##_name)]; \