From 32667eeaa9ae781846e963d18da641af1242ad05 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 1 Feb 2017 01:17:53 +0000 Subject: GRAPHICS: Fix GCC Compiler Warnings. --- graphics/macgui/mactext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics') diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index c582c4ec03..8644bb9a97 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -243,12 +243,12 @@ void MacText::render(int from, int to) { for (uint j = 0; j < _textLines[i].chunks.size(); j++) debugN(4, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, _textLines[i].chunks[j].text.c_str()); - debug(4, ""); + debug(4, "%s", ""); } } int MacText::getLineWidth(int line) { - if (line >= _textLines.size()) + if ((uint)line >= _textLines.size()) return 0; if (_textLines[line].width != -1) @@ -269,7 +269,7 @@ int MacText::getLineWidth(int line) { } int MacText::getLineHeight(int line) { - if (line >= _textLines.size()) + if ((uint)line >= _textLines.size()) return 0; getLineWidth(line); // This calculates height also -- cgit v1.2.3