mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
026da6cd81
commit
63ed33f1c5
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue