From 36b1eebe9eac83371ce377e0155d70c42ab38c8d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 May 2013 23:48:51 +0300 Subject: fix compilation warnings. --- src/gui/inventorywindow.cpp | 2 +- src/gui/userpalette.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index fd1916a58..a817e749f 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -572,7 +572,7 @@ void InventoryWindow::mouseMoved(gcn::MouseEvent &event) } } -void InventoryWindow::mouseExited(gcn::MouseEvent &event) +void InventoryWindow::mouseExited(gcn::MouseEvent &event A_UNUSED) { mTextPopup->hide(); } diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp index 9db32677a..c1f618962 100644 --- a/src/gui/userpalette.cpp +++ b/src/gui/userpalette.cpp @@ -250,7 +250,7 @@ void UserPalette::setGradient(const int type, const GradientType grad) if (elem->grad != STATIC && grad == STATIC) { - const int sz = mGradVector.size(); + const size_t sz = mGradVector.size(); for (size_t i = 0; i < sz; i++) { if (mGradVector[i] == elem) -- cgit v1.2.3-70-g09d2