From d0514ba8064513864469906b19d1c055e6c3b481 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 22 Oct 2015 14:17:47 -0500 Subject: Fix a bunch of warnings Mostly adding __unused where needed. Change-Id: Ia4f675b9b360782728c361ed1699db0cc277c3a5 --- gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/gui.cpp') diff --git a/gui/gui.cpp b/gui/gui.cpp index ebd70534c..a5ac33e86 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -796,7 +796,7 @@ extern "C" int gui_init(void) printf("Unable to locate '%s'\nDid you set a TW_THEME in your config files?\n", curtain_path.c_str()); return -1; } - if (gr_get_width(source_Surface) != gr_fb_width() || gr_get_height(source_Surface) != gr_fb_height()) { + if (gr_get_width(source_Surface) != (unsigned)gr_fb_width() || gr_get_height(source_Surface) != (unsigned)gr_fb_height()) { // We need to scale the curtain to fit the screen float scale_w = (float)gr_fb_width() / (float)gr_get_width(source_Surface); float scale_h = (float)gr_fb_height() / (float)gr_get_height(source_Surface); @@ -946,7 +946,7 @@ extern "C" int gui_startPage(const char *page_name, const int allow_commands, in return runPages(page_name, stop_on_page_done); } -static void * console_thread(void *cookie) +static void * console_thread(void *cookie __unused) { PageManager::SwitchToConsole(); -- cgit v1.2.3