Assorted warning fixes
This commit is contained in:
@@ -301,7 +301,7 @@ path_abs(char *path)
|
||||
}
|
||||
|
||||
void
|
||||
path_normalize(char *path)
|
||||
path_normalize(UNUSED(char *path))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -459,13 +459,13 @@ plat_remove(char *path)
|
||||
}
|
||||
|
||||
void
|
||||
ui_sb_update_icon_state(int tag, int state)
|
||||
ui_sb_update_icon_state(UNUSED(int tag), UNUSED(int state))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
void
|
||||
ui_sb_update_icon(int tag, int active)
|
||||
ui_sb_update_icon(UNUSED(int tag), UNUSED(int active))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -477,7 +477,7 @@ plat_delay_ms(uint32_t count)
|
||||
}
|
||||
|
||||
void
|
||||
ui_sb_update_tip(int arg)
|
||||
ui_sb_update_tip(UNUSED(int arg))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -514,8 +514,9 @@ path_get_dirname(char *dest, const char *path)
|
||||
*dest = '\0';
|
||||
}
|
||||
volatile int cpu_thread_run = 1;
|
||||
|
||||
void
|
||||
ui_sb_set_text_w(wchar_t *wstr)
|
||||
ui_sb_set_text_w(UNUSED(wchar_t *wstr))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -533,7 +534,7 @@ strnicmp(const char *s1, const char *s2, size_t n)
|
||||
}
|
||||
|
||||
void
|
||||
main_thread(void *param)
|
||||
main_thread(UNUSED(void *param))
|
||||
{
|
||||
uint32_t old_time;
|
||||
uint32_t new_time;
|
||||
@@ -707,7 +708,7 @@ plat_power_off(void)
|
||||
}
|
||||
|
||||
void
|
||||
ui_sb_bugui(char *str)
|
||||
ui_sb_bugui(UNUSED(char *str))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -726,7 +727,7 @@ int real_sdl_w;
|
||||
int real_sdl_h;
|
||||
|
||||
void
|
||||
ui_sb_set_ready(int ready)
|
||||
ui_sb_set_ready(UNUSED(int ready))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
@@ -912,14 +913,14 @@ void (*f_rl_callback_handler_remove)(void) = NULL;
|
||||
#endif
|
||||
|
||||
uint32_t
|
||||
timer_onesec(uint32_t interval, void *param)
|
||||
timer_onesec(uint32_t interval, UNUSED(void *param))
|
||||
{
|
||||
pc_onesec();
|
||||
return interval;
|
||||
}
|
||||
|
||||
void
|
||||
monitor_thread(void *param)
|
||||
monitor_thread(UNUSED(void *param))
|
||||
{
|
||||
#ifndef USE_CLI
|
||||
if (isatty(fileno(stdin)) && isatty(fileno(stdout))) {
|
||||
@@ -1369,14 +1370,14 @@ main(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
char *
|
||||
plat_vidapi_name(int i)
|
||||
plat_vidapi_name(UNUSED(int i))
|
||||
{
|
||||
return "default";
|
||||
}
|
||||
|
||||
/* Sets up the program language before initialization. */
|
||||
uint32_t
|
||||
plat_language_code(char *langcode)
|
||||
plat_language_code(UNUSED(char *langcode))
|
||||
{
|
||||
/* or maybe not */
|
||||
return 0;
|
||||
@@ -1413,7 +1414,7 @@ plat_set_thread_name(void *thread, const char *name)
|
||||
|
||||
/* Converts back the language code to LCID */
|
||||
void
|
||||
plat_language_code_r(uint32_t lcid, char *outbuf, int len)
|
||||
plat_language_code_r(UNUSED(uint32_t lcid), UNUSED(char *outbuf), UNUSED(int len))
|
||||
{
|
||||
/* or maybe not */
|
||||
return;
|
||||
@@ -1451,7 +1452,7 @@ endblit(void)
|
||||
|
||||
/* API */
|
||||
void
|
||||
ui_sb_mt32lcd(char *str)
|
||||
ui_sb_mt32lcd(UNUSED(char *str))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user