summaryrefslogtreecommitdiff
path: root/src/guichan/mouselistener.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-30 22:03:32 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-30 22:03:32 +0300
commit1d0044cbc81e547ad688a295288910d58e1a3fb1 (patch)
tree0a4575b8ff5f76b571891ea0f30df02fe61f4f29 /src/guichan/mouselistener.hpp
parentb82ee801506790283d2f03060949bb5089086de8 (diff)
downloadmanaverse-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.gz
manaverse-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.bz2
manaverse-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.xz
manaverse-1d0044cbc81e547ad688a295288910d58e1a3fb1.zip
Fix compilation warnings after guichan integration.
Remove temp file.
Diffstat (limited to 'src/guichan/mouselistener.hpp')
-rw-r--r--src/guichan/mouselistener.hpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/guichan/mouselistener.hpp b/src/guichan/mouselistener.hpp
index 345a66531..152d3494e 100644
--- a/src/guichan/mouselistener.hpp
+++ b/src/guichan/mouselistener.hpp
@@ -47,6 +47,12 @@
#include "guichan/mouseevent.hpp"
#include "guichan/platform.hpp"
+#ifdef __GNUC__
+#define _UNUSED_ __attribute__ ((unused))
+#else
+#define _UNUSED_
+#endif
+
namespace gcn
{
/**
@@ -70,7 +76,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseEntered(MouseEvent& mouseEvent)
+ virtual void mouseEntered(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -81,7 +87,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseExited(MouseEvent& mouseEvent)
+ virtual void mouseExited(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -95,7 +101,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mousePressed(MouseEvent& mouseEvent)
+ virtual void mousePressed(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -106,7 +112,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseReleased(MouseEvent& mouseEvent)
+ virtual void mouseReleased(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -118,7 +124,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseClicked(MouseEvent& mouseEvent)
+ virtual void mouseClicked(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -129,7 +135,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseWheelMovedUp(MouseEvent& mouseEvent)
+ virtual void mouseWheelMovedUp(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -140,7 +146,7 @@ namespace gcn
* @param mousEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseWheelMovedDown(MouseEvent& mouseEvent)
+ virtual void mouseWheelMovedDown(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -152,7 +158,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseMoved(MouseEvent& mouseEvent)
+ virtual void mouseMoved(MouseEvent& mouseEvent _UNUSED_)
{
}
@@ -164,7 +170,7 @@ namespace gcn
* @param mouseEvent Describes the event.
* @since 0.6.0
*/
- virtual void mouseDragged(MouseEvent& mouseEvent)
+ virtual void mouseDragged(MouseEvent& mouseEvent _UNUSED_)
{
}