From 58e2e581ecb81fb39d9097410858821e8467cece Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Wed, 26 Jun 2024 15:19:00 +0200 Subject: [PATCH] Silence warnings --- core_updater_list.c | 1 - gfx/drivers/d3d8.c | 8 ++++---- menu/menu_driver.c | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core_updater_list.c b/core_updater_list.c index a2b2978b8e..08af5e02e2 100644 --- a/core_updater_list.c +++ b/core_updater_list.c @@ -784,7 +784,6 @@ bool core_updater_list_parse_network_data( const char *network_buildbot_url, const char *data, size_t len) { - size_t i; char *tok, *save; unsigned list_size = 0; char *data_buf = NULL; diff --git a/gfx/drivers/d3d8.c b/gfx/drivers/d3d8.c index 09143057f2..833ba326ca 100644 --- a/gfx/drivers/d3d8.c +++ b/gfx/drivers/d3d8.c @@ -1170,10 +1170,10 @@ static void d3d8_calculate_rect(void *data, vp.x = 0; vp.y = 0; - vp.width = width; - vp.height = height; - vp.full_width = width; - vp.full_height = height; + vp.width = *width; + vp.height = *height; + vp.full_width = *width; + vp.full_height = *height; if (video_scale_integer && !force_full) video_viewport_get_scaled_integer(&vp, diff --git a/menu/menu_driver.c b/menu/menu_driver.c index e16ad317be..7cc5a68fc7 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -5195,6 +5195,7 @@ unsigned menu_event( input_bits_t *p_trigger_input, bool display_kb) { + int i; /* Used for key repeat */ static retro_time_t last_time_us = 0; static float delay_timer = 0.0f; @@ -5242,7 +5243,6 @@ unsigned menu_event( RETRO_DEVICE_ID_JOYPAD_A : RETRO_DEVICE_ID_JOYPAD_B; unsigned ok_current = BIT256_GET_PTR(p_input, menu_ok_btn); unsigned ok_trigger = ok_current & ~ok_old; - unsigned i = 0; static unsigned navigation_initial = 0; unsigned navigation_current = 0; unsigned navigation_buttons[8] =