Code

remove warnings
authorishmal <ishmal@users.sourceforge.net>
Tue, 13 May 2008 17:22:10 +0000 (17:22 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 13 May 2008 17:22:10 +0000 (17:22 +0000)
src/jabber_whiteboard/inkboard-document.cpp
src/jabber_whiteboard/inkboard-document.h
src/jabber_whiteboard/inkboard-node.cpp
src/jabber_whiteboard/pedrogui.cpp
src/jabber_whiteboard/session-manager.h
src/pedro/pedroconfig.h
src/sp-skeleton.cpp
src/style-test.cpp

index 36295dd28d485ab15d8a6f3a4d6359bdf7ae5742..dd039ab6fd1b08bbdfa8b062f6da7ee1569c2738 100644 (file)
@@ -371,9 +371,9 @@ InkboardDocument::createPI(char const *target, char const* content)
 
 
 
-void InkboardDocument::notifyChildAdded(XML::Node &parent,
+void InkboardDocument::notifyChildAdded(XML::Node &/*parent*/,
                                         XML::Node &child,
-                                        XML::Node *prev)
+                                        XML::Node */*prev*/)
 {
     if (_in_transaction && state == State::IN_WHITEBOARD) {
 
@@ -389,9 +389,9 @@ void InkboardDocument::notifyChildAdded(XML::Node &parent,
     }
 }
 
-void InkboardDocument::notifyChildRemoved(XML::Node &parent,
+void InkboardDocument::notifyChildRemoved(XML::Node &/*parent*/,
                                           XML::Node &child,
-                                          XML::Node *prev)
+                                          XML::Node */*prev*/)
 {
     if (_in_transaction && state == State::IN_WHITEBOARD) 
     {
@@ -406,8 +406,8 @@ void InkboardDocument::notifyChildRemoved(XML::Node &parent,
 
 void InkboardDocument::notifyChildOrderChanged(XML::Node &parent,
                                                XML::Node &child,
-                                               XML::Node *old_prev,
-                                               XML::Node *new_prev)
+                                               XML::Node */*old_prev*/,
+                                               XML::Node */*new_prev*/)
 {
     if (_in_transaction && state == State::IN_WHITEBOARD) 
     {
@@ -424,7 +424,7 @@ void InkboardDocument::notifyChildOrderChanged(XML::Node &parent,
 }
 
 void InkboardDocument::notifyContentChanged(XML::Node &node,
-                                            Util::ptr_shared<char> old_content,
+                                            Util::ptr_shared<char> /*old_content*/,
                                             Util::ptr_shared<char> new_content)
 {
     if (_in_transaction && state == State::IN_WHITEBOARD) 
@@ -452,7 +452,7 @@ void InkboardDocument::notifyContentChanged(XML::Node &node,
 
 void InkboardDocument::notifyAttributeChanged(XML::Node &node,
                                               GQuark name,
-                                              Util::ptr_shared<char> old_value,
+                                              Util::ptr_shared<char> /*old_value*/,
                                               Util::ptr_shared<char> new_value)
 {
     if (_in_transaction && state == State::IN_WHITEBOARD) 
index 23ce9f3b9ab54520240c54809d5c16844e0e2cda..6bfcab59b6599597b68d08666a6ef1a266d11359 100644 (file)
@@ -131,7 +131,7 @@ protected:
                _initBindings();
        }
 
-       XML::SimpleNode* _duplicate(XML::Document* xml_doc) const
+       XML::SimpleNode* _duplicate(XML::Document* /*xml_doc*/) const
        {
                return new InkboardDocument(*this);
        }
index 343b6c4c1216815fcdcd61851e726584bcd1a994..d3d5685513b577c27da6fa778a4de4c547de6e77 100644 (file)
@@ -60,11 +60,12 @@ InkboardDocument::composeNewMessage(Inkscape::XML::Node *node)
 }
 
 void
-InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version,
-        Glib::ustring text)
+InkboardDocument::changeConfigureText(Glib::ustring target,
+                                      unsigned int /*version*/,
+                                      Glib::ustring text)
 {
     XML::Node *node = this->tracker->get(target);
-    unsigned int elementVersion = this->tracker->getVersion(node);
+    //unsigned int elementVersion = this->tracker->getVersion(node);
 
     if(node)// && version == (elementVersion + 1))
     {
@@ -75,11 +76,13 @@ InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version
 }
 
 void
-InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version, 
-        Glib::ustring attribute, Glib::ustring value)
+InkboardDocument::changeConfigure(Glib::ustring target,
+                                  unsigned int /*version*/, 
+                                  Glib::ustring attribute,
+                                                                 Glib::ustring value)
 {
     XML::Node *node = this->tracker->get(target);
-    unsigned int elementVersion = this->tracker->getVersion(node);
+    //unsigned int elementVersion = this->tracker->getVersion(node);
 
     if(node)// && version == (elementVersion + 1))
     {
@@ -93,7 +96,7 @@ InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version,
 
 void 
 InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id, 
-        signed int index, Pedro::Element* data)
+        signed int /*index*/, Pedro::Element* data)
 {
 
     Glib::ustring name(data->getName());
index b101047cb006266d2a6f19d4302eb3cb531a3a86..95ef0c96ad10ad6a283f187e953d17c1a3e6b439 100644 (file)
@@ -4,7 +4,7 @@
  * Authors:
  *   Bob Jamison
  *
- * Copyright (C) 2005 Bob Jamison
+ * Copyright (C) 2005-2008 Bob Jamison
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -380,8 +380,8 @@ static const guint8 icon_xa[] =
 //#########################################################################
 
 
-void Roster::doubleClickCallback(const Gtk::TreeModel::Path &path,
-                   Gtk::TreeViewColumn *col)
+void Roster::doubleClickCallback(const Gtk::TreeModel::Path &/*path*/,
+                   Gtk::TreeViewColumn */*col*/)
 {
     Glib::RefPtr<Gtk::TreeModel> model = rosterView.get_model();
     Glib::RefPtr<Gtk::TreeSelection> sel = rosterView.get_selection();
@@ -699,8 +699,8 @@ void MessageList::postMessage(const DOMString &from, const DOMString &msg)
 //#########################################################################
 //# U S E R     L I S T
 //#########################################################################
-void UserList::doubleClickCallback(const Gtk::TreeModel::Path &path,
-                   Gtk::TreeViewColumn *col)
+void UserList::doubleClickCallback(const Gtk::TreeModel::Path &/*path*/,
+                   Gtk::TreeViewColumn */*col*/)
 {
     Glib::RefPtr<Gtk::TreeModel> model = userList.get_model();
     Glib::RefPtr<Gtk::TreeSelection> sel = userList.get_selection();
@@ -1092,7 +1092,7 @@ bool GroupChatWindow::receiveMessage(const DOMString &from,
 bool GroupChatWindow::receivePresence(const DOMString &fromNick,
                                       bool presence,
                                       const DOMString &show,
-                                      const DOMString &status)
+                                      const DOMString &/*status*/)
 {
 
     DOMString presStr = "";
@@ -1585,8 +1585,8 @@ void ConnectDialog::cancelCallback()
 
 
 void ConnectDialog::doubleClickCallback(
-                   const Gtk::TreeModel::Path &path,
-                   Gtk::TreeViewColumn *col)
+                   const Gtk::TreeModel::Path &/*path*/,
+                   Gtk::TreeViewColumn */*col*/)
 {
     Glib::RefPtr<Gtk::TreeModel> model = accountView.get_model();
     Glib::RefPtr<Gtk::TreeSelection> sel = accountView.get_selection();
index 3187612590c8ee5d92de6f0cbbc67b00d51bcb1d..53cc8f5b4e53f71539800558a2064f45eb677853 100644 (file)
@@ -98,7 +98,8 @@ public:
     InkboardDocument* getInkboardSession(Glib::ustring const& to);
 
 
-    void operator=(XmppEventListener const& other) {}
+    void operator=(XmppEventListener const& /*other*/)
+           {}
 
 private:
 
index f3fb96e72e5704ac4b171b924957583d116bfcc7..be8c6c665b8297bf3becefea1398089ceb68be35 100644 (file)
@@ -6,7 +6,7 @@
  * Authors:
  *   Bob Jamison
  *
- * Copyright (C) 2005-2007 Bob Jamison
+ * Copyright (C) 2005-2008 Bob Jamison
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -178,7 +178,7 @@ public:
     /**
      *
      */
-    XmppConfig(const XmppConfig &other)
+    XmppConfig(const XmppConfig &other) : XmppEventTarget(other)
         { assign(other); }
 
     /**
index 878d8f31b590919fb6fe52931cf6b03e20480f2b..ee0c9626b9623695732aea3987f84ce584e0730c 100644 (file)
@@ -147,7 +147,7 @@ sp_skeleton_set(SPObject *object, unsigned int key, gchar const *value)
 {
     debug("0x%p %s(%u): '%s'",object,
             sp_attribute_name(key),key,value ? value : "<no value>");
-    SPSkeleton *skeleton = SP_SKELETON(object);
+    //SPSkeleton *skeleton = SP_SKELETON(object);
 
     /* See if any parents need this value. */
     if (((SPObjectClass *) skeleton_parent_class)->set) {
index 1349bd00a7fd00e9200fe2cfceaaa8ffa347ca98..d390ae79fe815c9d7dc72c7c0850e01384eb8399 100644 (file)
@@ -342,7 +342,7 @@ font_family_val(char const prop[], char const *const dummy_vals[])
  * `px') for better CSS interoperability.
  */
 static void
-unitful_length_val(char const prop[], char const *const dummy_vals[])
+unitful_length_val(char const /*prop*/[], char const *const dummy_vals[])
 {
     /* todo */
     assert(dummy_vals == NULL);
@@ -381,8 +381,9 @@ uri_or_enum_val(char const prop[], char const *const vals[])
 }
 
 static void
-suppress_warning_log_handler(gchar const *log_domain, GLogLevelFlags /*log_level*/,
-                             gchar const *message,
+suppress_warning_log_handler(gchar const */*log_domain*/,
+                             GLogLevelFlags /*log_level*/,
+                             gchar const */*message*/,
                              gpointer /*user_data*/)
 {
     /* todo: We could strncpy message to a static buffer for later testing with