mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 09:18:11 +02:00
observer: Silence gcc warning
GCC complains that: cairo-surface-observer.c:289:26: warning: ignoring return value of 'cairo_device_acquire', declared with attribute warn_unused_result [-Wunused-result] Explain why it's safe to ignore it in a comment.
This commit is contained in:
parent
f2567e95a1
commit
469994ac19
1 changed files with 5 additions and 1 deletions
|
|
@ -286,7 +286,11 @@ static void
|
|||
_cairo_device_observer_lock (void *_device)
|
||||
{
|
||||
cairo_device_observer_t *device = (cairo_device_observer_t *) _device;
|
||||
cairo_device_acquire (device->target);
|
||||
cairo_status_t ignored;
|
||||
|
||||
/* cairo_device_acquire() can fail for nil and finished
|
||||
* devices. We don't care about observing them. */
|
||||
ignored = cairo_device_acquire (device->target);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue