summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-27 23:48:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-27 23:48:51 +0300
commit36b1eebe9eac83371ce377e0155d70c42ab38c8d (patch)
tree4121583f0bf1b3da6d7b369378e25c0eb807e6a5 /src/gui
parentd432d78ba8ced0118cc7aa2be8a0308831932bcb (diff)
downloadplus-36b1eebe9eac83371ce377e0155d70c42ab38c8d.tar.gz
plus-36b1eebe9eac83371ce377e0155d70c42ab38c8d.tar.bz2
plus-36b1eebe9eac83371ce377e0155d70c42ab38c8d.tar.xz
plus-36b1eebe9eac83371ce377e0155d70c42ab38c8d.zip
fix compilation warnings.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/inventorywindow.cpp2
-rw-r--r--src/gui/userpalette.cpp2
2 files changed, 2 insertions, 2 deletions
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)