summaryrefslogtreecommitdiff
path: root/src/guichan/include/guichan/font.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 13:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch)
tree077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/guichan/include/guichan/font.hpp
parent6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff)
downloadmanaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz
manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2
manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz
manaverse-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip
Add unused warnings to other files.
Diffstat (limited to 'src/guichan/include/guichan/font.hpp')
-rw-r--r--src/guichan/include/guichan/font.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/guichan/include/guichan/font.hpp b/src/guichan/include/guichan/font.hpp
index cc177928e..e780b3808 100644
--- a/src/guichan/include/guichan/font.hpp
+++ b/src/guichan/include/guichan/font.hpp
@@ -48,6 +48,8 @@
#include <string>
#include "guichan/platform.hpp"
+#include "localconsts.h"
+
namespace gcn
{
class Graphics;
@@ -74,14 +76,14 @@ namespace gcn
* @param text The string to return the width of.
* @return The width of a string.
*/
- virtual int getWidth(const std::string& text) const = 0;
+ virtual int getWidth(const std::string& text) const A_WARN_UNUSED = 0;
/**
* Gets the height of the glyphs in the font.
*
* @return The height of the glyphs int the font.
*/
- virtual int getHeight() const = 0;
+ virtual int getHeight() const A_WARN_UNUSED = 0;
/**
* Gets a string index in a string providing an x coordinate.
@@ -93,7 +95,7 @@ namespace gcn
* @return A string index in a string providing an x coordinate.
*/
virtual int getStringIndexAt(const std::string& text,
- const int x) const;
+ const int x) const A_WARN_UNUSED;
/**
* Draws a string.