[dia] [warningectomy] Missing prototypes and unused variables with DiaMatrix



commit 447d730901c757ffe94f380efc21ea75787c0920
Author: Hans Breuer <hans breuer org>
Date:   Sun Jan 23 12:18:07 2011 +0100

    [warningectomy] Missing prototypes and unused variables with DiaMatrix
    
    prop_matrix.c:80: warning: no previous prototype for 'data_matrix'
    prop_matrix.c: In function 'data_matrix':
    prop_matrix.c:83: warning: unused variable 'str'
    prop_matrix.c: At top level:
    prop_matrix.c:120: warning: no previous prototype for 'data_add_matrix'
    prop_matrix.c: In function 'matrixprop_set_from_widget':
    prop_matrix.c:236: warning: unused variable 'adj'

 lib/dia_xml.h     |    3 +++
 lib/prop_matrix.c |    2 --
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/dia_xml.h b/lib/dia_xml.h
index faff1cb..8ba8135 100644
--- a/lib/dia_xml.h
+++ b/lib/dia_xml.h
@@ -105,5 +105,8 @@ void data_add_dict (AttributeNode attr, GHashTable *data);
 GdkPixbuf *data_pixbuf (DataNode data);
 void data_add_pixbuf (AttributeNode attr, GdkPixbuf *pixbuf);
 
+DiaMatrix *data_matrix(DataNode data);
+void data_add_matrix(AttributeNode attr, DiaMatrix *matrix);
+
 #endif /* DIA_XML_H */
 
diff --git a/lib/prop_matrix.c b/lib/prop_matrix.c
index 5fd3721..bad678a 100644
--- a/lib/prop_matrix.c
+++ b/lib/prop_matrix.c
@@ -80,7 +80,6 @@ DiaMatrix *
 data_matrix (DataNode data)
 {
   DiaMatrix *matrix;
-  gchar *str;
 
   matrix = g_new (DiaMatrix, 1);
   matrix->xx = _matrix_xml_get_value (data, "xx", 1.0);
@@ -233,7 +232,6 @@ matrixprop_set_from_widget(MatrixProperty *prop, GtkWidget *widget)
 {
   GList *children, *child;
   GtkWidget *sb;
-  GtkObject *adj;
   real angle = 0.0, sx = 1.0, sy = 1.0;
   int i = 0;
 



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