diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-07-03 18:40:08 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-07-05 10:00:13 +0200 |
commit | fe3ca9c36f15403d8d93263acb758100836ad3cb (patch) | |
tree | 59bcb743e86284f75ef42bd327f6fed701ce7ff5 /src/cairo.c | |
parent | b6c972897b9d7cb898fb08363115e721a3ff758c (diff) | |
download | cairo-fe3ca9c36f15403d8d93263acb758100836ad3cb.tar.gz |
Remove conditional compilation of freed-pools
Conditional compilation was needed to avoid warnings:
cairo-clip.c:51: warning: ‘clip_path_pool’ defined but not used
cairo.c:181: warning: ‘context_pool’ defined but not used
They can be avoided by making sure that _freed_pool_reset(ptr)
actually consumes its argument. This has the pleasant side-effect that
forgetting to properly reset a freed-pool now results in a warning if
atomic ops are disabled/not available.
Diffstat (limited to 'src/cairo.c')
-rw-r--r-- | src/cairo.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cairo.c b/src/cairo.c index 42afe26a3..32a1f9c63 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -178,10 +178,7 @@ _cairo_set_error (cairo_t *cr, cairo_status_t status) _cairo_status_set_error (&cr->status, _cairo_error (status)); } -#if HAS_FREED_POOL static freed_pool_t context_pool; -#endif - /* XXX This should disappear in favour of a common pool of error objects. */ static cairo_t *_cairo_nil__objects[CAIRO_STATUS_LAST_STATUS + 1]; |