[clutter/clutter-1.16] tests: Fix compiler warnings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.16] tests: Fix compiler warnings
- Date: Tue, 27 Aug 2013 12:47:31 +0000 (UTC)
commit 8db571ff54db6f877f079014eb6020aab36f97d9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Aug 27 08:47:16 2013 -0400
tests: Fix compiler warnings
tests/conform/actor-layout.c | 2 +-
tests/conform/events-touch.c | 1 -
tests/conform/texture-fbo.c | 3 +--
3 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tests/conform/actor-layout.c b/tests/conform/actor-layout.c
index 6401f80..cb7f315 100644
--- a/tests/conform/actor-layout.c
+++ b/tests/conform/actor-layout.c
@@ -139,7 +139,7 @@ validate_state (gpointer data)
/* avoid recursion */
if (test_state_in_validation (state))
- return;
+ return G_SOURCE_REMOVE;
g_assert (state->actors != NULL);
g_assert (state->colors != NULL);
diff --git a/tests/conform/events-touch.c b/tests/conform/events-touch.c
index 237a245..96f2f39 100644
--- a/tests/conform/events-touch.c
+++ b/tests/conform/events-touch.c
@@ -148,7 +148,6 @@ screen_coords_to_device (int screen_x, int screen_y,
static gboolean
perform_gesture (gpointer data)
{
- State *state = data;
int i;
for (i = 0; i < TOUCH_POINTS; i++)
diff --git a/tests/conform/texture-fbo.c b/tests/conform/texture-fbo.c
index 5659bfe..4a30b38 100644
--- a/tests/conform/texture-fbo.c
+++ b/tests/conform/texture-fbo.c
@@ -72,13 +72,12 @@ post_paint_clip_cb (void)
cogl_clip_pop ();
}
-static gboolean
+static void
validate_part (TestState *state,
int xpos, int ypos,
int clip_flags)
{
int x, y;
- gboolean pass = TRUE;
/* Check whether the center of each division is the right color */
for (y = 0; y < SOURCE_DIVISIONS_Y; y++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]