From 64591d2bbceaf68a64008a0044e2fef3454e44ac Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 27 Jan 2008 12:16:51 +0000 Subject: [PATCH] Prevent more 'unused parameter' warnings - compiling without debug enabled disables the assert() checks which leads to more parameters being unused. git-svn-id: http://svn.voria.com/code@1511 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/guid.h | 2 +- synfig-core/trunk/src/synfig/value.h | 2 +- synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp | 8 ++++---- synfig-studio/trunk/src/gtkmm/childrentreestore.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/synfig-core/trunk/src/synfig/guid.h b/synfig-core/trunk/src/synfig/guid.h index d9a4008..c822628 100644 --- a/synfig-core/trunk/src/synfig/guid.h +++ b/synfig-core/trunk/src/synfig/guid.h @@ -60,7 +60,7 @@ public: { make_unique(); } GUID(const GUID& x):data(x.data) { } - GUID(const int i){assert(!i); data.u_64.a=0;data.u_64.b=0;} + GUID(const int i __attribute__ ((unused))){assert(!i); data.u_64.a=0;data.u_64.b=0;} GUID(const String& str); diff --git a/synfig-core/trunk/src/synfig/value.h b/synfig-core/trunk/src/synfig/value.h index 6c2ffb5..d97c7c3 100644 --- a/synfig-core/trunk/src/synfig/value.h +++ b/synfig-core/trunk/src/synfig/value.h @@ -226,7 +226,7 @@ public: // === GET MEMBERS ======================================================== template - const T &get(const T& x)const + const T &get(const T& x __attribute__ ((unused)))const { assert(is_valid() && same_type_as(x)); return *static_cast(data); diff --git a/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp b/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp index a7cebe0..fae690b 100644 --- a/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp +++ b/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp @@ -494,12 +494,12 @@ CellRenderer_ValueBase::color_edited(synfig::Color color, Glib::ustring path) Gtk::CellEditable* CellRenderer_ValueBase::start_editing_vfunc( - GdkEvent* event, + GdkEvent* event __attribute__ ((unused)), Gtk::Widget& widget, const Glib::ustring& path, - const Gdk::Rectangle& background_area, - const Gdk::Rectangle& cell_area, - Gtk::CellRendererState flags) + const Gdk::Rectangle& background_area __attribute__ ((unused)), + const Gdk::Rectangle& cell_area __attribute__ ((unused)), + Gtk::CellRendererState flags __attribute__ ((unused))) { // If we aren't editable, then there is nothing to do if(!property_editable()) diff --git a/synfig-studio/trunk/src/gtkmm/childrentreestore.cpp b/synfig-studio/trunk/src/gtkmm/childrentreestore.cpp index aaf6a51..5903550 100644 --- a/synfig-studio/trunk/src/gtkmm/childrentreestore.cpp +++ b/synfig-studio/trunk/src/gtkmm/childrentreestore.cpp @@ -331,7 +331,7 @@ ChildrenTreeStore::on_value_node_changed(synfig::ValueNode::Handle value_node) } void -ChildrenTreeStore::on_value_node_renamed(synfig::ValueNode::Handle value_node) +ChildrenTreeStore::on_value_node_renamed(synfig::ValueNode::Handle value_node __attribute__ ((unused))) { rebuild_value_nodes(); } -- 2.7.4