Skip to content

Commit

Permalink
gui: Repair OEM build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Fighter19 authored and bigbiff committed Jun 10, 2020
1 parent 3754fab commit 0cd6be9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,18 +864,20 @@ extern "C" int gui_loadCustomResources(void)
#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)
{
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;
Expand Down

0 comments on commit 0cd6be9

Please sign in to comment.