summaryrefslogtreecommitdiff
path: root/src/guichan/widget.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/widget.hpp
parentb82ee801506790283d2f03060949bb5089086de8 (diff)
downloadplus-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.gz
plus-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.bz2
plus-1d0044cbc81e547ad688a295288910d58e1a3fb1.tar.xz
plus-1d0044cbc81e547ad688a295288910d58e1a3fb1.zip
Fix compilation warnings after guichan integration.
Remove temp file.
Diffstat (limited to 'src/guichan/widget.hpp')
-rw-r--r--src/guichan/widget.hpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/guichan/widget.hpp b/src/guichan/widget.hpp
index e702ffd62..0f8c803ca 100644
--- a/src/guichan/widget.hpp
+++ b/src/guichan/widget.hpp
@@ -50,6 +50,12 @@
#include "guichan/color.hpp"
#include "guichan/rectangle.hpp"
+#ifdef __GNUC__
+#define _UNUSED_ __attribute__ ((unused))
+#else
+#define _UNUSED_
+#endif
+
namespace gcn
{
class ActionListener;
@@ -887,7 +893,7 @@ namespace gcn
* @see moveToBottom
* @since 0.1.0
*/
- virtual void moveToTop(Widget* widget) { };
+ virtual void moveToTop(Widget* widget _UNUSED_) { };
/**
* Moves a widget in this widget to the bottom of this widget.
@@ -897,7 +903,7 @@ namespace gcn
* @see moveToTop
* @since 0.1.0
*/
- virtual void moveToBottom(Widget* widget) { };
+ virtual void moveToBottom(Widget* widget _UNUSED_) { };
/**
* Focuses the next widget in the widget.
@@ -923,7 +929,9 @@ namespace gcn
* @param area The area to show.
* @since 0.1.0
*/
- virtual void showWidgetPart(Widget* widget, Rectangle area) { };
+ virtual void showWidgetPart(Widget* widget _UNUSED_,
+ Rectangle area _UNUSED_)
+ { };
/**
* Sets an id of a widget. An id can be useful if a widget needs to be