summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-09-02 19:43:08 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-09-08 19:16:21 -0400
commite29d9dfcb5935777333f6239b95c18c3da697ab2 (patch)
treec480065ddb7b1b5529be4d5fcd133fd7d1231f1a
parent27f7852b5ac8d137c917e653fb7113f419a4c77a (diff)
Silence some warnings about uninitialized variables
Neither were real problems, but GCC was complaining about them.
-rw-r--r--pixman/pixman.c3
-rw-r--r--test/composite.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/pixman/pixman.c b/pixman/pixman.c
index 62b58b88..47ffdd6d 100644
--- a/pixman/pixman.c
+++ b/pixman/pixman.c
@@ -613,6 +613,9 @@ compute_sample_extents (pixman_transform_t *transform,
{
int i;
+ /* Silence GCC */
+ tx1 = ty1 = tx2 = ty2 = 0;
+
for (i = 0; i < 4; ++i)
{
pixman_fixed_48_16_t tx, ty;
diff --git a/test/composite.c b/test/composite.c
index 0624cd37..b530a205 100644
--- a/test/composite.c
+++ b/test/composite.c
@@ -882,6 +882,7 @@ main (void)
mask.size? TRUE : FALSE);
break;
default:
+ ok = FALSE; /* Silence GCC */
break;
}
group_ok = group_ok && ok;