From 63ed33f1c5028ba1d70f03afd88a165d61725458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 20 Sep 2016 13:39:02 +0100 Subject: [PATCH] validate: fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gst-validate-report.c: In function ‘generate_unwind_trace’: gst-validate-report.c:116:1: error: old-style function definition [-Werror=old-style-definition] generate_unwind_trace () ^~~~~~~~~~~~~~~~~~~~~ gst-validate-report.c:122:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] unw_cursor_t cursor; ^~~~~~~~~~~~ --- validate/gst/validate/gst-validate-report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 5186b226f6..ca0933573b 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -113,13 +113,13 @@ append_debug_info (GString * trace, const void *ip) #endif static gchar * -generate_unwind_trace () +generate_unwind_trace (void) { unw_context_t uc; + unw_cursor_t cursor; GString *trace = g_string_new (NULL); unw_getcontext (&uc); - unw_cursor_t cursor; unw_init_local (&cursor, &uc); while (unw_step (&cursor) > 0) {