Code

Warning cleanup
authorjoncruz <joncruz@users.sourceforge.net>
Sat, 5 Jul 2008 02:54:00 +0000 (02:54 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Sat, 5 Jul 2008 02:54:00 +0000 (02:54 +0000)
src/sp-shape.cpp
src/widgets/toolbox.cpp

index 54f674f6bb05ab9650e6cff78bac4b27b2494b82..5fee7cc4855f21ec8633227c22c22ec85cf607df 100644 (file)
@@ -1060,6 +1060,7 @@ sp_shape_has_markers (SPShape const *shape)
 int
 sp_shape_number_of_markers (SPShape *shape, int type)
 {
+// TODO fixme: this looks very bad that the type parameter is ignored.
     Geom::PathVector const & pathv = shape->curve->get_pathvector();
 
     guint n = shape->marker[SP_MARKER_LOC_START] ?  pathv.size() : 0;
index 148694ef98f6f77997a93dcaeb98323364bc815f..bf0b9f553d575a880bfcb79e459a904cca49222f 100644 (file)
@@ -1597,7 +1597,7 @@ setup_tool_toolbox(GtkWidget *toolbox, SPDesktop *desktop)
 
 
 static void
-update_tool_toolbox( SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox )
+update_tool_toolbox( SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget */*toolbox*/ )
 {
     gchar const *const tname = ( eventcontext
                                  ? gtk_type_name(GTK_OBJECT_TYPE(eventcontext))
@@ -3329,7 +3329,7 @@ static void sp_add_spiro_toggle(GtkActionGroup* mainActions, GObject* holder, bo
     }
 }
 
-static void sp_freehand_change_shape(EgeSelectOneAction* act, GObject *dataKludge) {
+static void sp_freehand_change_shape(EgeSelectOneAction* act, GObject */*dataKludge*/) {
     gint shape = ege_select_one_action_get_active( act );
     prefs_set_int_attribute("tools.freehand", "shape", shape);
 }
@@ -3420,11 +3420,11 @@ sp_pencil_tb_tolerance_value_changed(GtkAdjustment *adj, GObject *tbl)
 
 
 static void
-sp_pencil_tb_tolerance_value_changed_external(Inkscape::XML::Node *repr,
-                                              const gchar *key,
-                                              const gchar *oldval,
-                                              const gchar *newval,
-                                              bool is_interactive,
+sp_pencil_tb_tolerance_value_changed_external(Inkscape::XML::Node */*repr*/,
+                                              const gchar */*key*/,
+                                              const gchar */*oldval*/,
+                                              const gchar */*newval*/,
+                                              bool /*is_interactive*/,
                                               void * data)
 {
     GObject* tbl = G_OBJECT(data);