From 1ede06be83d0ca7b474184a5e61761b10c049e9c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Jun 2011 12:57:35 +0300 Subject: Fix compilation warnings. --- src/gui/skilldialog.cpp | 4 ++-- 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. * -- cgit v1.2.3-60-g2f50