https://github.com/libsdl-org/Maelstrom/commit/148668a4a4674ec1f2dd99bd8828a60bc73dec6f
From 148668a4a4674ec1f2dd99bd8828a60bc73dec6f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 31 Oct 2011 03:39:37 -0400
Subject: [PATCH] Fixed compiler warnings
---
screenlib/UIElement.cpp | 2 --
screenlib/UIElementEditbox.cpp | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/screenlib/UIElement.cpp b/screenlib/UIElement.cpp
index b2f3210d..0ccec624 100644
--- a/screenlib/UIElement.cpp
+++ b/screenlib/UIElement.cpp
@@ -32,8 +32,6 @@ UIElement::UIElement(UIBaseElement *parent, const char *name) :
bool
UIElement::Load(rapidxml::xml_node<> *node, const UITemplates *templates)
{
- rapidxml::xml_attribute<> *attr;
-
if (!UIBaseElement::Load(node, templates)) {
return false;
}
diff --git a/screenlib/UIElementEditbox.cpp b/screenlib/UIElementEditbox.cpp
index 2992ea76..d6b562ee 100644
--- a/screenlib/UIElementEditbox.cpp
+++ b/screenlib/UIElementEditbox.cpp
@@ -72,6 +72,7 @@ UIElementEditbox::FinishLoading()
}
AddElement(m_label);
}
+ return true;
}
bool
@@ -169,7 +170,6 @@ void
UIElementEditbox::SetFocusNext()
{
UIElementEditbox *editbox;
- unsigned i, j;
// We always lose focus even if we don't find another editbox
SetFocus(false);