summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-23 12:57:35 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-23 12:57:35 +0300
commit1ede06be83d0ca7b474184a5e61761b10c049e9c (patch)
treea19af33287ac179280496c867b93451211d67b45 /src
parent99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1 (diff)
downloadmv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.gz
mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.bz2
mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.xz
mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.zip
Fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/gui/skilldialog.cpp4
-rw-r--r--src/gui/skilldialog.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 57f8a4fc8..b28bb7e36 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -146,7 +146,7 @@ private:
SkillList mVisibleSkills;
};
-class SkillListBox : public ListBox, public gcn::MouseListener
+class SkillListBox : public ListBox
{
public:
SkillListBox(SkillModel *model):
@@ -231,7 +231,7 @@ public:
skill->dispName);
}
- void mouseExited(gcn::MouseEvent &event)
+ void mouseExited(gcn::MouseEvent &event _UNUSED_)
{
mPopup->hide();
}
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index af25ec508..0b8287643 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -42,6 +42,12 @@ class TabbedArea;
struct SkillInfo;
+#ifdef __GNUC__
+#define _UNUSED_ __attribute__ ((unused))
+#else
+#define _UNUSED_
+#endif
+
/**
* The skill dialog.
*