From 1c10834162ecc5c51737a86ab934ca3ed7f4e9d3 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 3 Aug 2011 22:45:11 +0200 Subject: [PATCH] Fix autoconf-ring_buffer_lost_events.c compile warning. Newer GCC will warn about the event variable not being used, making this test fail. Just remove the 'event' variable. --- runtime/autoconf-ring_buffer_lost_events.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/autoconf-ring_buffer_lost_events.c b/runtime/autoconf-ring_buffer_lost_events.c index 0966e7f91..df3e315b3 100644 --- a/runtime/autoconf-ring_buffer_lost_events.c +++ b/runtime/autoconf-ring_buffer_lost_events.c @@ -3,9 +3,8 @@ #include #include -void foo (void) +struct ring_buffer_event *foo (void) { - struct ring_buffer_event *event; /* last field is not always there */ - event = ring_buffer_peek(NULL, 1, NULL, NULL); + return ring_buffer_peek(NULL, 1, NULL, NULL); } -- 2.43.5