mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
trace: Always emit a function name for write-to-png-stream
By emitting an empty function name when it it impossible to perform the lookup, we can get rid of the warning: trace.c:3714: warning: unused variable ‘symbol’ Additionally, this makes the syntax (or, rather, the parameter count) for write-to-png-stream the same on every configuration.
This commit is contained in:
parent
f2eb3f2178
commit
ad458d816a
1 changed files with 4 additions and 3 deletions
|
|
@ -3715,10 +3715,11 @@ cairo_surface_write_to_png_stream (cairo_surface_t *surface,
|
|||
|
||||
_trace_printf ("%% s%ld ", _get_surface_id (surface));
|
||||
#if CAIRO_HAS_SYMBOL_LOOKUP
|
||||
_emit_string_literal (lookup_symbol (symbol, sizeof (symbol),
|
||||
write_func),
|
||||
-1);
|
||||
lookup_symbol (symbol, sizeof (symbol), write_func);
|
||||
#else
|
||||
symbol[0] = '\0';
|
||||
#endif
|
||||
_emit_string_literal (symbol, -1);
|
||||
_trace_printf (" write-to-png-stream\n");
|
||||
_write_unlock ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue