mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
Avoid 'function not used' warnings
This commit is contained in:
parent
4b76f88939
commit
8bef9743aa
12
command.c
12
command.c
@ -112,6 +112,7 @@ static struct sockaddr_storage lastcmd_net_source;
|
|||||||
static socklen_t lastcmd_net_source_len;
|
static socklen_t lastcmd_net_source_len;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
#if defined(HAVE_STDIN_CMD) || defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
#if defined(HAVE_STDIN_CMD) || defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
|
||||||
static bool command_reply(const char * data, size_t len)
|
static bool command_reply(const char * data, size_t len)
|
||||||
{
|
{
|
||||||
@ -132,6 +133,7 @@ static bool command_reply(const char * data, size_t len)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
struct cmd_map
|
struct cmd_map
|
||||||
{
|
{
|
||||||
@ -188,9 +190,10 @@ static bool command_set_shader(const char *arg)
|
|||||||
return video_driver_set_shader(type, arg);
|
return video_driver_set_shader(type, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CHEEVOS
|
||||||
static bool command_read_ram(const char *arg)
|
static bool command_read_ram(const char *arg)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CHEEVOS
|
|
||||||
cheevos_var_t var;
|
cheevos_var_t var;
|
||||||
const uint8_t * data;
|
const uint8_t * data;
|
||||||
unsigned nbytes;
|
unsigned nbytes;
|
||||||
@ -222,14 +225,10 @@ static bool command_read_ram(const char *arg)
|
|||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool command_write_ram(const char *arg)
|
static bool command_write_ram(const char *arg)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CHEEVOS
|
|
||||||
cheevos_var_t var;
|
cheevos_var_t var;
|
||||||
uint8_t * data;
|
uint8_t * data;
|
||||||
unsigned nbytes;
|
unsigned nbytes;
|
||||||
@ -248,10 +247,9 @@ static bool command_write_ram(const char *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
|
||||||
return false;
|
return false;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const struct cmd_action_map action_map[] = {
|
static const struct cmd_action_map action_map[] = {
|
||||||
{ "SET_SHADER", command_set_shader, "<shader path>" },
|
{ "SET_SHADER", command_set_shader, "<shader path>" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user