diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/skilldialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/skilldialog.h | 6 |
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. * |