From 1d0044cbc81e547ad688a295288910d58e1a3fb1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 May 2011 22:03:32 +0300 Subject: Fix compilation warnings after guichan integration. Remove temp file. --- src/guichan/keylistener.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/guichan/keylistener.hpp') diff --git a/src/guichan/keylistener.hpp b/src/guichan/keylistener.hpp index 7685558bd..caeed0da4 100644 --- a/src/guichan/keylistener.hpp +++ b/src/guichan/keylistener.hpp @@ -47,6 +47,12 @@ #include "guichan/keyevent.hpp" #include "guichan/platform.hpp" +#ifdef __GNUC__ +#define _UNUSED_ __attribute__ ((unused)) +#else +#define _UNUSED_ +#endif + namespace gcn { class Key; @@ -72,14 +78,14 @@ namespace gcn * * @param keyEvent Discribes the event. */ - virtual void keyPressed(KeyEvent& keyEvent) { } + virtual void keyPressed(KeyEvent& keyEvent _UNUSED_) { } /** * Called if a key is released when the widget has keyboard focus. * * @param keyEvent Discribes the event. */ - virtual void keyReleased(KeyEvent& keyEvent) { } + virtual void keyReleased(KeyEvent& keyEvent _UNUSED_) { } protected: /** -- cgit v1.2.3-60-g2f50