Fix a bunch of warnings

Mostly adding __unused where needed.

Change-Id: Ia4f675b9b360782728c361ed1699db0cc277c3a5
diff --git a/gui/gui.cpp b/gui/gui.cpp
index ebd7053..a5ac33e 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -796,7 +796,7 @@
 		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 @@
 	return runPages(page_name, stop_on_page_done);
 }
 
-static void * console_thread(void *cookie)
+static void * console_thread(void *cookie __unused)
 {
 	PageManager::SwitchToConsole();