gui: Repair OEM build
Building with TW_OEM_BUILD results in errors during compilation:
error: unused label 'error' [-Werror,-Wunused-label]
error: unused parameter 'allow_commands' [-Werror,-Wunused-parameter]
These changes are required to allow compilation to complete.
Change-Id: Iddc5bf1b90120de19a472c48b21d3531b758cacf
diff --git a/gui/gui.cpp b/gui/gui.cpp
index ade4d79..cd6fa59 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -864,10 +864,12 @@
#endif
return 0;
+#ifndef TW_OEM_BUILD
error:
LOGERR("An internal error has occurred: unable to load theme.\n");
gGuiInitialized = 0;
return -1;
+#endif
}
extern "C" int gui_start(void)
@@ -875,7 +877,7 @@
return gui_startPage("main", 1, 0);
}
-extern "C" int gui_startPage(const char *page_name, const int allow_commands, int stop_on_page_done)
+extern "C" int gui_startPage(const char *page_name, __attribute__((unused)) const int allow_commands, int stop_on_page_done)
{
if (!gGuiInitialized)
return -1;