summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-11-30 21:44:00 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2012-12-02 14:50:54 -0500
commit511e266a85d4b4c505d7c40db9d856739c874ea5 (patch)
tree3e0f19b596d164a81fe7fd4b90bb6594b459227d /tests
parent2034f1677dfacef2cb93c101e758143460eee31e (diff)
downloadclutter-511e266a85d4b4c505d7c40db9d856739c874ea5.tar.gz
A bunch of fixes for Coverity
None of these are relevant enough for their own fixes. https://bugzilla.gnome.org/show_bug.cgi?id=689496
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/test-animator.c2
-rw-r--r--tests/interactive/test-cogl-offscreen.c2
-rw-r--r--tests/interactive/test-cogl-tex-foreign.c2
-rw-r--r--tests/interactive/test-cogl-tex-getset.c2
-rw-r--r--tests/interactive/test-devices.c8
-rw-r--r--tests/interactive/test-state-animator.c2
6 files changed, 2 insertions, 16 deletions
diff --git a/tests/interactive/test-animator.c b/tests/interactive/test-animator.c
index dcd64c038..fc9f9f513 100644
--- a/tests/interactive/test-animator.c
+++ b/tests/interactive/test-animator.c
@@ -12,7 +12,7 @@ static ClutterActor *new_rect (gint r,
{
GError *error = NULL;
ClutterColor *color = clutter_color_new (r, g, b, a);
- ClutterActor *rectangle = clutter_rectangle_new_with_color (color);
+ ClutterActor *rectangle;
gchar *file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
rectangle = clutter_texture_new_from_file (file, &error);
diff --git a/tests/interactive/test-cogl-offscreen.c b/tests/interactive/test-cogl-offscreen.c
index 4e1c210ca..72aeb7933 100644
--- a/tests/interactive/test-cogl-offscreen.c
+++ b/tests/interactive/test-cogl-offscreen.c
@@ -83,8 +83,6 @@ test_coglbox_paint (ClutterActor *self)
gfloat texcoords[4] = { 0, 0, 1, 1 };
CoglHandle material;
- priv = TEST_COGLBOX_GET_PRIVATE (self);
-
cogl_set_source_color4ub (0x66, 0x66, 0xdd, 0xff);
cogl_rectangle (0, 0, 400, 400);
diff --git a/tests/interactive/test-cogl-tex-foreign.c b/tests/interactive/test-cogl-tex-foreign.c
index 18f4e44a3..b499abbbe 100644
--- a/tests/interactive/test-cogl-tex-foreign.c
+++ b/tests/interactive/test-cogl-tex-foreign.c
@@ -125,8 +125,6 @@ test_coglbox_paint(ClutterActor *self)
TestCoglboxPrivate *priv = TEST_COGLBOX_GET_PRIVATE (self);
gfloat texcoords[4] = { 0.3f, 0.3f, 0.7f, 0.7f };
- priv = TEST_COGLBOX_GET_PRIVATE (self);
-
cogl_set_source_color4ub (0x66, 0x66, 0xdd, 0xff);
cogl_rectangle (0,0,400,400);
diff --git a/tests/interactive/test-cogl-tex-getset.c b/tests/interactive/test-cogl-tex-getset.c
index 2697f1a69..952947df1 100644
--- a/tests/interactive/test-cogl-tex-getset.c
+++ b/tests/interactive/test-cogl-tex-getset.c
@@ -79,8 +79,6 @@ test_coglbox_paint(ClutterActor *self)
{
TestCoglboxPrivate *priv = TEST_COGLBOX_GET_PRIVATE (self);
gfloat texcoords[4] = { 0.0f, 0.0f, 1.0f, 1.0f };
-
- priv = TEST_COGLBOX_GET_PRIVATE (self);
cogl_set_source_color4ub (0x66, 0x66, 0xdd, 0xff);
cogl_rectangle (0, 0, 400, 400);
diff --git a/tests/interactive/test-devices.c b/tests/interactive/test-devices.c
index 498da35b9..d2c88f4d0 100644
--- a/tests/interactive/test-devices.c
+++ b/tests/interactive/test-devices.c
@@ -41,10 +41,6 @@ device_type_name (ClutterInputDevice *device)
default:
return "Unknown";
}
-
- g_warn_if_reached ();
-
- return NULL;
}
static const gchar *
@@ -73,10 +69,6 @@ axis_type_name (ClutterInputAxis axis)
default:
return "Unknown";
}
-
- g_warn_if_reached ();
-
- return NULL;
}
static gboolean
diff --git a/tests/interactive/test-state-animator.c b/tests/interactive/test-state-animator.c
index 94d93c211..42ae7d253 100644
--- a/tests/interactive/test-state-animator.c
+++ b/tests/interactive/test-state-animator.c
@@ -32,7 +32,7 @@ static ClutterActor *new_rect (gint r,
{
GError *error = NULL;
ClutterColor *color = clutter_color_new (r, g, b, a);
- ClutterActor *rectangle = clutter_rectangle_new_with_color (color);
+ ClutterActor *rectangle;
gchar *file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
rectangle = clutter_texture_new_from_file (file, &error);