diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 6942bc22ee..28105ad5f6 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -925,8 +925,10 @@ static bool d3d_init_imports(d3d_video_t *d3d) static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info) { - unsigned i; + unsigned i = 0; LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)d3d->dev; + + (void)i; /* Setup information for first pass. */ #ifdef _XBOX /* TODO - properly implement this. */ @@ -1549,11 +1551,13 @@ static bool d3d_frame(void *data, const void *frame, unsigned width, unsigned height, unsigned pitch, const char *msg) { - unsigned i; + unsigned i = 0; D3DVIEWPORT screen_vp; d3d_video_t *d3d = (d3d_video_t*)data; LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)d3d->dev; + (void)i; + if (!frame) return true; diff --git a/menu/drivers_display/rmenu_xui.cpp b/menu/drivers_display/rmenu_xui.cpp index 0ef95b677c..48eca9cdf2 100644 --- a/menu/drivers_display/rmenu_xui.cpp +++ b/menu/drivers_display/rmenu_xui.cpp @@ -556,7 +556,7 @@ static void rmenu_xui_render(void) for (i = 0; i < end; i++) { wchar_t msg_left[PATH_MAX_LENGTH], msg_right[PATH_MAX_LENGTH]; - char type_str[PATH_MAX_LENGTH], entry_title_buf[PATH_MAX_LENGTH], path_buf[PATH_MAX_LENGTH]; + char type_str[PATH_MAX_LENGTH], path_buf[PATH_MAX_LENGTH]; const char *path = NULL, *entry_label = NULL; unsigned type = 0, w = 0;