From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjV5-0007OS-Fq for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:47:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNjV1-0003Zm-3v for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:47:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjV0-0003ZW-TN for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:47:11 -0400 From: Stefan Hajnoczi Date: Wed, 12 Mar 2014 14:46:55 +0100 Message-Id: <1394632015-32573-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1394632015-32573-1-git-send-email-stefanha@redhat.com> References: <1394632015-32573-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 1/1] trace: Fix build warnings for Win32 build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori From: Peter Maydell 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 cce2da4..b3f587e 100644 --- a/trace/control-internal.h +++ b/trace/control-internal.h @@ -16,15 +16,15 @@ extern TraceEvent trace_events[]; -static inline TraceEvent *trace_event_id(TraceEventID id) +static inline TraceEventID trace_event_count(void) { - assert(id < trace_event_count()); - return &trace_events[id]; + return TRACE_EVENT_COUNT; } -static inline TraceEventID trace_event_count(void) +static inline TraceEvent *trace_event_id(TraceEventID id) { - return TRACE_EVENT_COUNT; + assert(id < trace_event_count()); + return &trace_events[id]; } static inline bool trace_event_is_pattern(const char *str) -- 1.8.5.3