From cf383ed98ff41b6086325b168e5f750b6f87d72e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Dec 2013 21:40:10 +0300 Subject: fix compilation warnings. --- src/net/tmwa/pethandler.cpp | 2 +- src/render/mobileopenglgraphics.cpp | 2 +- src/render/nullopenglgraphics.cpp | 12 +++++++----- src/render/surfacegraphics.h | 8 +++++--- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index d260cea3a..37f87ab15 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -45,7 +45,7 @@ PetHandler::PetHandler() : petHandler = this; } -void PetHandler::handleMessage(Net::MessageIn &msg) +void PetHandler::handleMessage(Net::MessageIn &msg A_UNUSED) { BLOCK_START("PetHandler::handleMessage") BLOCK_END("PetHandler::handleMessage") diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 8a1f47bef..202d03a37 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -339,7 +339,7 @@ void MobileOpenGLGraphics::drawPatternCached(const Image *const image, vertFill2D(mFloatTexArrayCached, mShortVertArrayCached, texX1, texY1, texX2, texY2, - x, y, width, height); + dstX, dstY, width, height); vp += 12; if (vp >= vLimit) diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index 9e0b49aeb..7cf4c2f34 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -158,14 +158,16 @@ bool NullOpenGLGraphics::drawImage2(const Image *const image, return true; } -void NullOpenGLGraphics::drawImageCached(const Image *const image, - int x, int y) +void NullOpenGLGraphics::drawImageCached(const Image *const image A_UNUSED, + int x A_UNUSED, int y A_UNUSED) { } -void NullOpenGLGraphics::drawPatternCached(const Image *const image, - const int x, const int y, - const int w, const int h) +void NullOpenGLGraphics::drawPatternCached(const Image *const image A_UNUSED, + const int x A_UNUSED, + const int y A_UNUSED, + const int w A_UNUSED, + const int h A_UNUSED) { } diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index b606d0ddf..6b8051c6a 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -188,9 +188,11 @@ class SurfaceGraphics final : public Graphics void drawImageCached(const Image *const image, int x, int y) override final; - void drawPatternCached(const Image *const image, - const int x, const int y, - const int w, const int h) override final + void drawPatternCached(const Image *const image A_UNUSED, + const int x A_UNUSED, + const int y A_UNUSED, + const int w A_UNUSED, + const int h A_UNUSED) override final { } void completeCache() override final; -- cgit v1.2.3-70-g09d2