Prevent more 'unused parameter' warnings - compiling without debug enabled disables...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 12:16:51 +0000 (12:16 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 27 Jan 2008 12:16:51 +0000 (12:16 +0000)
git-svn-id: http://svn.voria.com/code@1511 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/guid.h
synfig-core/trunk/src/synfig/value.h
synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp
synfig-studio/trunk/src/gtkmm/childrentreestore.cpp

index d9a4008..c822628 100644 (file)
@@ -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);
 
index 6c2ffb5..d97c7c3 100644 (file)
@@ -226,7 +226,7 @@ public:
 
        // === GET MEMBERS ========================================================
        template <typename T>
-       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<const T*>(data);
index a7cebe0..fae690b 100644 (file)
@@ -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())
index aaf6a51..5903550 100644 (file)
@@ -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();
 }