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:
Andrea Canciani 2011-03-18 16:36:12 +01:00
parent f2eb3f2178
commit ad458d816a

View file

@ -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 ();
}