Assorted warning fixes
This commit is contained in:
@@ -97,7 +97,7 @@ ioctl_get_raw_track_info(UNUSED(const void *local), int *num, uint8_t *rti)
|
||||
}
|
||||
|
||||
static int
|
||||
ioctl_is_track_pre(const void *local, const uint32_t sector)
|
||||
ioctl_is_track_pre(const void *local, UNUSED(const uint32_t sector))
|
||||
{
|
||||
ioctl_t *ioctl = (ioctl_t *) local;
|
||||
|
||||
@@ -111,7 +111,7 @@ ioctl_is_track_pre(const void *local, const uint32_t sector)
|
||||
}
|
||||
|
||||
static int
|
||||
ioctl_read_sector(const void *local, uint8_t *buffer, uint32_t const sector)
|
||||
ioctl_read_sector(const void *local, UNUSED(uint8_t *buffer), UNUSED(uint32_t const sector))
|
||||
{
|
||||
ioctl_t *ioctl = (ioctl_t *) local;
|
||||
|
||||
|
||||
@@ -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. */
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ cassette_eject(void)
|
||||
}
|
||||
|
||||
void
|
||||
cartridge_mount(uint8_t id, char *fn, uint8_t wp)
|
||||
cartridge_mount(uint8_t id, char *fn, UNUSED(uint8_t wp))
|
||||
{
|
||||
cart_close(id);
|
||||
cart_load(id, fn);
|
||||
@@ -121,7 +121,7 @@ floppy_eject(uint8_t id)
|
||||
}
|
||||
|
||||
void
|
||||
plat_cdrom_ui_update(uint8_t id, uint8_t reload)
|
||||
plat_cdrom_ui_update(uint8_t id, UNUSED(uint8_t reload))
|
||||
{
|
||||
cdrom_t *drv = &cdrom[id];
|
||||
|
||||
|
||||
@@ -533,19 +533,19 @@ ui_window_title(wchar_t *str)
|
||||
}
|
||||
|
||||
void
|
||||
ui_init_monitor(int monitor_index)
|
||||
ui_init_monitor(UNUSED(int monitor_index))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
void
|
||||
ui_deinit_monitor(int monitor_index)
|
||||
ui_deinit_monitor(UNUSED(int monitor_index))
|
||||
{
|
||||
/* No-op. */
|
||||
}
|
||||
|
||||
void
|
||||
plat_resize_request(int w, int h, int monitor_index)
|
||||
plat_resize_request(UNUSED(int w), UNUSED(int h), int monitor_index)
|
||||
{
|
||||
atomic_store((&doresize_monitors[monitor_index]), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user