summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolland Dudemaine <rolland@ghs.com>2011-01-25 15:08:26 +0200
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>2011-01-26 15:05:24 +0200
commitfead9eb82a7fc78a4927fff960d4cacea799bd9b (patch)
treefc11104eb68ecea2ecefa897b1bf42b1a5a03c6a
parent32e556df33b3cd3b31de8184f144b3065206406b (diff)
Fix "variable was set but never used" warnings
Removes useless variable declarations. This can only result in more efficient code, as these variables where sometimes assigned, but their values were never used.
-rw-r--r--pixman/pixman-fast-path.c3
-rw-r--r--pixman/pixman-matrix.c3
-rw-r--r--pixman/pixman-trap.c6
3 files changed, 1 insertions, 11 deletions
diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c
index 868175f6..2f9f1769 100644
--- a/pixman/pixman-fast-path.c
+++ b/pixman/pixman-fast-path.c
@@ -364,7 +364,7 @@ fast_composite_add_n_8888_8888_ca (pixman_implementation_t *imp,
int32_t width,
int32_t height)
{
- uint32_t src, srca, s;
+ uint32_t src, s;
uint32_t *dst_line, *dst, d;
uint32_t *mask_line, *mask, ma;
int dst_stride, mask_stride;
@@ -372,7 +372,6 @@ fast_composite_add_n_8888_8888_ca (pixman_implementation_t *imp,
src = _pixman_image_get_solid (imp, src_image, dst_image->bits.format);
- srca = src >> 24;
if (src == 0)
return;
diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c
index f2f67ab4..8d0d9732 100644
--- a/pixman/pixman-matrix.c
+++ b/pixman/pixman-matrix.c
@@ -465,9 +465,6 @@ pixman_transform_from_pixman_f_transform (struct pixman_transform * t,
return TRUE;
}
-static const int a[3] = { 3, 3, 2 };
-static const int b[3] = { 2, 1, 1 };
-
PIXMAN_EXPORT pixman_bool_t
pixman_f_transform_invert (struct pixman_f_transform * dst,
const struct pixman_f_transform *src)
diff --git a/pixman/pixman-trap.c b/pixman/pixman-trap.c
index 8353992c..742911cb 100644
--- a/pixman/pixman-trap.c
+++ b/pixman/pixman-trap.c
@@ -235,7 +235,6 @@ pixman_add_traps (pixman_image_t * image,
pixman_trap_t * traps)
{
int bpp;
- int width;
int height;
pixman_fixed_t x_off_fixed;
@@ -245,7 +244,6 @@ pixman_add_traps (pixman_image_t * image,
_pixman_image_validate (image);
- width = image->bits.width;
height = image->bits.height;
bpp = PIXMAN_FORMAT_BPP (image->bits.format);
@@ -349,10 +347,8 @@ pixman_rasterize_trapezoid (pixman_image_t * image,
int y_off)
{
int bpp;
- int width;
int height;
- pixman_fixed_t x_off_fixed;
pixman_fixed_t y_off_fixed;
pixman_edge_t l, r;
pixman_fixed_t t, b;
@@ -364,11 +360,9 @@ pixman_rasterize_trapezoid (pixman_image_t * image,
if (!pixman_trapezoid_valid (trap))
return;
- width = image->bits.width;
height = image->bits.height;
bpp = PIXMAN_FORMAT_BPP (image->bits.format);
- x_off_fixed = pixman_int_to_fixed (x_off);
y_off_fixed = pixman_int_to_fixed (y_off);
t = trap->top + y_off_fixed;