summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-11-09 13:56:50 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-11-09 13:56:50 +0100
commitf96e78fa546d5d9f5016fa30fb60ce5dcf9a0a8e (patch)
tree16d520bf82b43ae957c78db7a4567747e35d854a
parentd883775f690ec9e6f89a1ae16cb7d9c2e7a15897 (diff)
Silence some 'unused var' warnings
-rw-r--r--boilerplate/cairo-boilerplate.c2
-rw-r--r--perf/cairo-stats.c2
-rw-r--r--test/mask-glyphs.c2
3 files changed, 1 insertions, 5 deletions
diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c
index 8e252f52b..91abbe219 100644
--- a/boilerplate/cairo-boilerplate.c
+++ b/boilerplate/cairo-boilerplate.c
@@ -678,8 +678,6 @@ cairo_boilerplate_get_targets (int *pnum_targets,
const cairo_boilerplate_target_t *
cairo_boilerplate_get_image_target (cairo_content_t content)
{
- struct cairo_boilerplate_target_list *list;
-
if (cairo_boilerplate_targets == NULL)
_cairo_boilerplate_register_all ();
diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c
index 1e25aef17..44ed038c2 100644
--- a/perf/cairo-stats.c
+++ b/perf/cairo-stats.c
@@ -32,7 +32,7 @@ _cairo_stats_compute (cairo_stats_t *stats,
cairo_time_t *values,
int num_values)
{
- cairo_time_t sum, mean, delta, q1, q3, iqr;
+ cairo_time_t sum, mean, q1, q3, iqr;
cairo_time_t outlier_min, outlier_max;
int i, min_valid, num_valid;
double s;
diff --git a/test/mask-glyphs.c b/test/mask-glyphs.c
index 9ac02722b..2e7b70301 100644
--- a/test/mask-glyphs.c
+++ b/test/mask-glyphs.c
@@ -43,13 +43,11 @@ _image_to_glyphs (cairo_surface_t *image,
{
int width, height, stride;
const unsigned char *data;
- cairo_format_t format;
int x, y, z, n;
width = cairo_image_surface_get_width (image);
height = cairo_image_surface_get_height (image);
stride = cairo_image_surface_get_stride (image);
- format = cairo_image_surface_get_format (image);
data = cairo_image_surface_get_data (image);
n = 0;