From f1b47ccc5630d0e312c05d9f76dc9181d350a3a9 Mon Sep 17 00:00:00 2001 From: joncruz Date: Sat, 5 Jul 2008 02:54:00 +0000 Subject: [PATCH] Warning cleanup --- src/sp-shape.cpp | 1 + src/widgets/toolbox.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 54f674f6b..5fee7cc48 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -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; diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 148694ef9..bf0b9f553 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -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); -- 2.30.2