validate: fix compiler warnings

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;
   ^~~~~~~~~~~~
This commit is contained in:
Tim-Philipp Müller 2016-09-20 13:39:02 +01:00
parent 026da6cd81
commit 63ed33f1c5

View file

@ -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) {