(D3D9) Some buildfixes for C89

This commit is contained in:
twinaphex 2019-03-11 17:07:49 +01:00
parent 3ddbb0bc4a
commit 6ba6f9e3ec
2 changed files with 6 additions and 5 deletions

View File

@ -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';

View File

@ -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++)