diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-03-18 16:57:04 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-03-19 12:24:14 +0100 |
commit | ab8c108b88edf49959b95a8d7cc12edb239d361c (patch) | |
tree | 349c331a85c64610f7c60a9f55c100a8c64c0783 /src/cairo-gstate.c | |
parent | 628ef17aca98ea3b0816a7dfa9e990275af6c791 (diff) |
Do not warn when ignoring the return value of _cairo_rectangle_intersect()
gcc complains that
cairo-surface-wrapper.c:647: warning: ignoring return value of
‘_cairo_rectangle_intersect’, declared with attribute warn_unused_result
It can be silenced by making _cairo_rectangle_intersect()
cairo_private_no_warn. This makes it possible to avoid unused
temporary variables in other places and reduces the dead assignments
reported by clang static analyzer from 114 to 98.
Diffstat (limited to 'src/cairo-gstate.c')
-rw-r--r-- | src/cairo-gstate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index 9fd3600f..ac73ca96 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -1511,9 +1511,7 @@ _cairo_gstate_int_clip_extents (cairo_gstate_t *gstate, clip_extents = _cairo_clip_get_extents (&gstate->clip); if (clip_extents != NULL) { - cairo_bool_t is_empty; - - is_empty = _cairo_rectangle_intersect (extents, clip_extents); + _cairo_rectangle_intersect (extents, clip_extents); is_bounded = TRUE; } |