From 6ba6f9e3ec4c1a6ac7c050c1495cc8393294c4a6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Mar 2019 17:07:49 +0100 Subject: [PATCH] (D3D9) Some buildfixes for C89 --- gfx/drivers/d3d9.c | 6 ++++-- retroarch.c | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gfx/drivers/d3d9.c b/gfx/drivers/d3d9.c index 2793ce8570..9a3ea1703f 100644 --- a/gfx/drivers/d3d9.c +++ b/gfx/drivers/d3d9.c @@ -1297,6 +1297,7 @@ static bool d3d9_init_internal(d3d9_video_t *d3d, return false; d3d->video_info = *info; + if (!d3d9_initialize(d3d, &d3d->video_info)) return false; @@ -1304,9 +1305,10 @@ static bool d3d9_init_internal(d3d9_video_t *d3d, settings->arrays.input_joypad_driver, input, input_data); { - D3DADAPTER_IDENTIFIER9 ident = {0}; - IDirect3D9_GetAdapterIdentifier(g_pD3D9, 0, 0, &ident); char version_str[128]; + D3DADAPTER_IDENTIFIER9 ident = {0}; + + IDirect3D9_GetAdapterIdentifier(g_pD3D9, 0, 0, &ident); version_str[0] = '\0'; diff --git a/retroarch.c b/retroarch.c index 640711a110..838824f2bc 100644 --- a/retroarch.c +++ b/retroarch.c @@ -4856,7 +4856,6 @@ bool rarch_write_debug_info(void) { for (retro_id = 0; retro_id < RARCH_ANALOG_BIND_LIST_END; retro_id++) { - char desc_label[400]; char descriptor[300]; const struct retro_keybind *auto_bind = NULL; const struct retro_keybind *keybind = NULL; @@ -5086,7 +5085,7 @@ bool rarch_write_debug_info(void) if (core_info_list) { - int i; + unsigned i; for (i = 0; i < core_info_list->count; i++) { @@ -5097,7 +5096,7 @@ bool rarch_write_debug_info(void) if (info->firmware_count) { - int j; + unsigned j; bool core_found = false; for (j = 0; j < info->firmware_count; j++)