tests: Fix compiler warnings
This commit is contained in:
parent
90b696a4d2
commit
8db571ff54
@ -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);
|
||||
|
@ -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++)
|
||||
|
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user