diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-23 12:57:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-23 12:57:35 +0300 |
commit | 1ede06be83d0ca7b474184a5e61761b10c049e9c (patch) | |
tree | a19af33287ac179280496c867b93451211d67b45 | |
parent | 99cb204d29a63bf5f4edb40b25f4fc1a6605fbd1 (diff) | |
download | mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.gz mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.bz2 mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.tar.xz mv-1ede06be83d0ca7b474184a5e61761b10c049e9c.zip |
Fix compilation warnings.
-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. * |