[tests] Remove compiler warnings
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 14 Apr 2009 16:13:02 +0000 (17:13 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 14 Apr 2009 16:13:02 +0000 (17:13 +0100)
The tests have some unused variables that will make gcc whine.

examples/gtk-clutter-multistage.c
examples/gtk-clutter-test.c
examples/gtk-clutter-viewport.c

index e97da88..95058a7 100644 (file)
@@ -6,13 +6,9 @@
 int
 main (int argc, char *argv[])
 {
-  ClutterTimeline *timeline;
   ClutterActor    *stage1, *stage2, *tex1, *tex2;
-  ClutterColor     stage_color = { 0x61, 0x64, 0x8c, 0xff };
   GtkWidget       *window, *clutter1, *clutter2;
-  GtkWidget       *label, *button, *vbox;
-  GdkPixbuf       *pixbuf;
-  gint             i;
+  GtkWidget       *vbox;
   ClutterColor     col1 = { 0xff, 0xff, 0xff, 0xff };
   ClutterColor     col2 = { 0, 0, 0, 0xff };
 
index 48f44eb..5b7f025 100644 (file)
@@ -125,7 +125,7 @@ main (int argc, char *argv[])
   ClutterTimeline *timeline;
   ClutterActor    *stage;
   ClutterColor     stage_color = { 0x61, 0x64, 0x8c, 0xff };
-  GtkWidget       *window, *clutter, *socket_box;
+  GtkWidget       *window, *clutter;
   GtkWidget       *label, *button, *vbox;
   GdkPixbuf       *pixbuf;
   SuperOH         *oh;
index 70a8df6..0125b41 100644 (file)
@@ -19,14 +19,11 @@ on_load_finished (ClutterTexture *texture,
 int
 main (int argc, char *argv[])
 {
-  ClutterTimeline *timeline;
   ClutterActor    *stage, *viewport, *tex;
   ClutterColor     stage_color = { 0x61, 0x64, 0x8c, 0xff };
   GtkWidget       *window, *embed; 
   GtkWidget       *table, *scrollbar;
   GtkAdjustment   *h_adjustment, *v_adjustment;
-  gint             i;
-  ClutterColor     col2 = { 0, };
 
   g_thread_init (NULL);
   gdk_threads_init ();