From e29d9dfcb5935777333f6239b95c18c3da697ab2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Thu, 2 Sep 2010 19:43:08 -0400 Subject: [PATCH] Silence some warnings about uninitialized variables Neither were real problems, but GCC was complaining about them. --- pixman/pixman.c | 3 +++ test/composite.c | 1 + 2 files changed, 4 insertions(+) diff --git a/pixman/pixman.c b/pixman/pixman.c index 62b58b8..47ffdd6 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 0624cd3..b530a20 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; -- 2.7.4