[PATCH 1/9]: virt-manager: silence compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
this patch removes unused variables, simply to silence compiler warnings.
 -- Guido
remove unused variables to silence compiler warnings.

diff -r 59fd3136f525 src/graphWidgets/cellrenderersparkline.c
--- a/src/graphWidgets/cellrenderersparkline.c	Thu Oct 02 15:15:53 2008 +0200
+++ b/src/graphWidgets/cellrenderersparkline.c	Sat Oct 04 17:01:35 2008 +0200
@@ -142,7 +142,6 @@
 
 static void gtk_cell_renderer_sparkline_finalize (GObject *object)
 {
-  GtkCellRendererSparkline *cellsparkline = GTK_CELL_RENDERER_SPARKLINE (object);
   GtkCellRendererSparklinePrivate *priv;
 
   priv = GTK_CELL_RENDERER_SPARKLINE_GET_PRIVATE (object);
@@ -156,7 +155,6 @@
 						      GValue *value,
 						      GParamSpec *pspec)
 {
-  GtkCellRendererSparkline *cellsparkline = GTK_CELL_RENDERER_SPARKLINE (object);
   GtkCellRendererSparklinePrivate *priv;
 
   priv = GTK_CELL_RENDERER_SPARKLINE_GET_PRIVATE (object);
@@ -179,7 +177,6 @@
 					  const GValue *value,
 					  GParamSpec   *pspec)
 {
-  GtkCellRendererSparkline *cellsparkline = GTK_CELL_RENDERER_SPARKLINE (object);
   GtkCellRendererSparklinePrivate *priv;
 
   priv = GTK_CELL_RENDERER_SPARKLINE_GET_PRIVATE (object);
@@ -205,7 +202,6 @@
 						  gint *width,
 						  gint *height)
 {
-  GtkCellRendererSparkline *cellsparkline = (GtkCellRendererSparkline *) cell;
   GtkCellRendererSparklinePrivate *priv;
   GValueArray *data;
 
diff -r 59fd3136f525 src/graphWidgets/sparkline.c
--- a/src/graphWidgets/sparkline.c	Thu Oct 02 15:15:53 2008 +0200
+++ b/src/graphWidgets/sparkline.c	Sat Oct 04 17:01:35 2008 +0200
@@ -130,12 +130,9 @@
 
 static void gtk_sparkline_finalize (GObject *object)
 {
-  GtkSparkline *cellsparkline = GTK_SPARKLINE (object);
   GtkSparklinePrivate *priv;
 
   priv = GTK_SPARKLINE_GET_PRIVATE (object);
-
-
   (* G_OBJECT_CLASS (parent_class)->finalize) (object);
 }
 
@@ -144,7 +141,6 @@
 					GValue *value,
 					GParamSpec *pspec)
 {
-  GtkSparkline *cellsparkline = GTK_SPARKLINE (object);
   GtkSparklinePrivate *priv;
 
   priv = GTK_SPARKLINE_GET_PRIVATE (object);
@@ -167,7 +163,6 @@
 			    const GValue *value,
 			    GParamSpec   *pspec)
 {
-  GtkSparkline *cellsparkline = GTK_SPARKLINE (object);
   GtkSparklinePrivate *priv;
 
   priv = GTK_SPARKLINE_GET_PRIVATE (object);
@@ -189,7 +184,6 @@
 static void gtk_sparkline_size_request(GtkWidget *widget,
 				       GtkRequisition *area)
 {
-  GtkSparkline *sparkline = (GtkSparkline *) widget;
   GtkSparklinePrivate *priv;
   GValueArray *data;
 
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux