From 84f3fe1b077a06ca50f85fa3ff696a8fe094623b Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 20 Feb 2014 19:44:25 +0000 Subject: [PATCH] trace: Fix build warnings for Win32 build The Win32 build warns about trace/control-internal.h: warning: 'trace_event_count' declared inline after being called Fix this by simply reordering trace_event_id() and trace_event_count(). Signed-off-by: Peter Maydell Reviewed-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- trace/control-internal.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trace/control-internal.h b/trace/control-internal.h index cce2da47c4..b3f587ed93 100644 --- a/trace/control-internal.h +++ b/trace/control-internal.h @@ -16,17 +16,17 @@ extern TraceEvent trace_events[]; +static inline TraceEventID trace_event_count(void) +{ + return TRACE_EVENT_COUNT; +} + static inline TraceEvent *trace_event_id(TraceEventID id) { assert(id < trace_event_count()); return &trace_events[id]; } -static inline TraceEventID trace_event_count(void) -{ - return TRACE_EVENT_COUNT; -} - static inline bool trace_event_is_pattern(const char *str) { assert(str != NULL);