summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.h
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/resources/imagehelper.h
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/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 2d25091fd..a11a55e2e 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -59,33 +59,34 @@ class ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Image *load(SDL_RWops *const rw);
+ Image *load(SDL_RWops *const rw) A_WARN_UNUSED;
#ifdef __GNUC__
- virtual Image *load(SDL_RWops *rw, Dye const &dye) = 0;
+ virtual Image *load(SDL_RWops *rw, Dye const &dye) A_WARN_UNUSED = 0;
- virtual Image *load(SDL_Surface *) = 0;
+ virtual Image *load(SDL_Surface *) A_WARN_UNUSED = 0;
virtual Image *createTextSurface(SDL_Surface *tmpImage,
- float alpha) = 0;
+ float alpha) A_WARN_UNUSED = 0;
- virtual int useOpenGL() = 0;
+ virtual int useOpenGL() A_WARN_UNUSED = 0;
#else
- virtual Image *load(SDL_RWops *rw, Dye const &dye)
+ virtual Image *load(SDL_RWops *rw, Dye const &dye) A_WARN_UNUSED
{ return nullptr; }
- virtual Image *load(SDL_Surface *)
+ virtual Image *load(SDL_Surface *) A_WARN_UNUSED
{ return nullptr; }
virtual Image *createTextSurface(SDL_Surface *const tmpImage,
- const float alpha)
+ const float alpha) A_WARN_UNUSED
{ return nullptr; }
- virtual int useOpenGL()
+ virtual int useOpenGL() A_WARN_UNUSED
{ return 0; }
#endif
- static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage);
+ static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage)
+ A_WARN_UNUSED;
void dumpSurfaceFormat(const SDL_Surface *const image) const;