From e9b1a49c425339bccf634955420a5ec216ab092e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Jul 2019 09:36:46 +0200 Subject: [PATCH] Silence warnings --- retroarch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/retroarch.c b/retroarch.c index 1668cf8a60..7133189143 100644 --- a/retroarch.c +++ b/retroarch.c @@ -3034,31 +3034,26 @@ error: } #endif +#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD) static void input_remote_free(input_remote_t *handle, unsigned max_users) { -#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD) unsigned user; for(user = 0; user < max_users; user ++) socket_close(handle->net_fd[user]); -#endif free(handle); } - static input_remote_t *input_remote_new(uint16_t port, unsigned max_users) { -#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD) unsigned user; settings_t *settings = configuration_settings; -#endif input_remote_t *handle = (input_remote_t*) calloc(1, sizeof(*handle)); if (!handle) return NULL; -#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD) for(user = 0; user < max_users; user ++) { handle->net_fd[user] = -1; @@ -3069,10 +3064,10 @@ static input_remote_t *input_remote_new(uint16_t port, unsigned max_users) return NULL; } } -#endif return handle; } +#endif #if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD) static void input_remote_parse_packet(struct remote_message *msg, unsigned user)