From 845b30131fca20956445d38d16e77bdda78954c4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 4 Feb 2019 23:17:39 +0100 Subject: [PATCH] Cleanups --- cheevos/cheevos.c | 2 +- gfx/drivers/gl.c | 6 +++--- menu/cbs/menu_cbs_ok.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index 92891c4b70..17b41920be 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -2959,7 +2959,7 @@ found: /* Checks for the existence of a headered Lynx file. Unheadered files fall back to GENERIC_MD5. */ - if (coro->len <= lynx_header_len || + if (coro->len <= (unsigned)lynx_header_len || memcmp("LYNX", (void *)coro->data, 5) != 0) { coro->gameid = 0; diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index a019006d02..0a350d9876 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -406,7 +406,7 @@ static void gl2_renderchain_check_fbo_dimensions( unsigned i; /* Check if we have to recreate our FBO textures. */ - for (i = 0; i < chain->fbo_pass; i++) + for (i = 0; i < (unsigned)chain->fbo_pass; i++) { struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i]; if (fbo_rect) @@ -775,7 +775,7 @@ static bool gl_create_fbo_targets(gl_t *gl, gl2_renderchain_data_t *chain) glBindTexture(GL_TEXTURE_2D, 0); gl2_gen_fb(chain->fbo_pass, chain->fbo); - for (i = 0; i < chain->fbo_pass; i++) + for (i = 0; i < (unsigned)chain->fbo_pass; i++) { GLenum status; @@ -1000,7 +1000,7 @@ static void gl2_renderchain_recompute_pass_sizes( glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_size); /* Calculate viewports for FBOs. */ - for (i = 0; i < chain->fbo_pass; i++) + for (i = 0; i < (unsigned)chain->fbo_pass; i++) { struct video_fbo_rect *fbo_rect = &gl->fbo_rect[i]; struct gfx_fbo_scale *fbo_scale = &chain->fbo_scale[i]; diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 1a8f6c7f3a..230afe2bab 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -4032,13 +4032,13 @@ static int action_ok_open_uwp_permission_settings(const char *path, static int action_ok_open_picker(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { - char* new_path; int ret; #ifdef __WINRT__ - new_path = uwp_trigger_picker(); + char *new_path = uwp_trigger_picker(); if (!new_path) return 0; /* User aborted */ #else + char *new_path = NULL; retro_assert(false); #endif