tests: Fix compiler warnings

This commit is contained in:
Jasper St. Pierre 2013-08-27 08:47:16 -04:00
parent 90b696a4d2
commit 8db571ff54
3 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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++)

View File

@ -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++)