diff --git a/audio/alsa_qsa.c b/audio/alsa_qsa.c index a5e2d0d731..bb561326a8 100644 --- a/audio/alsa_qsa.c +++ b/audio/alsa_qsa.c @@ -212,7 +212,6 @@ static int check_pcm_status(void *data, int channel_type) static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size) { - int status; alsa_t *alsa = (alsa_t*)data; snd_pcm_channel_status_t cstatus = {0}; snd_pcm_sframes_t written = 0; diff --git a/camera/video4linux2.c b/camera/video4linux2.c index 7c3a7e5bfc..46fdbc4382 100644 --- a/camera/video4linux2.c +++ b/camera/video4linux2.c @@ -158,7 +158,6 @@ static bool init_device(void *data) struct v4l2_cropcap cropcap; struct v4l2_crop crop; struct v4l2_format fmt; - unsigned min; video4linux_t *v4l = (video4linux_t*)data; if (xioctl(v4l->fd, VIDIOC_QUERYCAP, &cap) < 0) @@ -376,7 +375,6 @@ static bool preprocess_image(void *data) { video4linux_t *v4l = (video4linux_t*)data; struct v4l2_buffer buf; - unsigned i; memset(&buf, 0, sizeof(buf)); diff --git a/gfx/d3d9/render_chain_xdk.h b/gfx/d3d9/render_chain_xdk.h index f722221d96..bcc53f28f4 100644 --- a/gfx/d3d9/render_chain_xdk.h +++ b/gfx/d3d9/render_chain_xdk.h @@ -130,14 +130,12 @@ static void renderchain_render_pass(void *data, const void *frame, unsigned widt { d3d_video_t *d3d = (d3d_video_t*)data; LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)d3d->dev; -#ifndef _XBOX1 - DWORD fetchConstant; - UINT64 pendingMask3; -#endif + #ifdef _XBOX1 d3dr->SetFlickerFilter(g_extern.console.screen.flicker_filter_index); d3dr->SetSoftDisplayFilter(g_extern.console.softfilter_enable); #endif + renderchain_blit_to_texture(d3d, frame, width, height, pitch); renderchain_set_vertices(d3d, 1, width, height); diff --git a/gfx/omap_gfx.c b/gfx/omap_gfx.c index f730782b2d..6cb45d65e1 100644 --- a/gfx/omap_gfx.c +++ b/gfx/omap_gfx.c @@ -148,7 +148,7 @@ static int omapfb_detect_screen(omapfb_data_t *pdata) { int fb_id, overlay_id = -1, display_id = -1; char buff[64], manager_name[64], display_name[64]; struct stat status; - int fd, i, ret; + int i, ret; int w, h; FILE *f; @@ -295,8 +295,6 @@ static int omapfb_mmap(omapfb_data_t *pdata) { } static int omapfb_backup_state(omapfb_data_t *pdata) { - struct omapfb_plane_info pi; - struct omapfb_mem_info mi; void* mem; assert(pdata->saved_state == NULL); diff --git a/gfx/psp/psp1_gfx.c b/gfx/psp/psp1_gfx.c index 3148bbe982..352277263f 100644 --- a/gfx/psp/psp1_gfx.c +++ b/gfx/psp/psp1_gfx.c @@ -519,7 +519,6 @@ static void psp_set_texture_frame(void *data, const void *frame, bool rgb32, (void) rgb32; (void) alpha; - int i; psp1_video_t *psp = (psp1_video_t*)data; #ifdef DEBUG diff --git a/gfx/sdl_gfx.c b/gfx/sdl_gfx.c index ec8214f31c..50b40c05bb 100644 --- a/gfx/sdl_gfx.c +++ b/gfx/sdl_gfx.c @@ -129,7 +129,7 @@ static void sdl_init_font(sdl_video_t *vid, const char *font_path, unsigned font static void sdl_render_msg(sdl_video_t *vid, SDL_Surface *buffer, const char *msg, unsigned width, unsigned height, const SDL_PixelFormat *fmt) { - int x, y, msg_base_x, msg_base_y, delta_x, delta_y; + int x, y, msg_base_x, msg_base_y; unsigned rshift, gshift, bshift; if (!vid->font) diff --git a/ps3/gcmgl/src/rgl_ps3.cpp b/ps3/gcmgl/src/rgl_ps3.cpp index 8561bd1ea2..8801d13546 100644 --- a/ps3/gcmgl/src/rgl_ps3.cpp +++ b/ps3/gcmgl/src/rgl_ps3.cpp @@ -419,7 +419,7 @@ static uint32_t gmmInit(const void *localMemoryBase, const void *localStartAddre const uint32_t localSize) { GmmAllocator *pAllocator; - uint32_t alignedLocalSize, alignedMainSize; + uint32_t alignedLocalSize; uint32_t localEndAddress = (uint32_t)localStartAddress + localSize; localEndAddress = (localEndAddress / GMM_TILE_ALIGNMENT) * GMM_TILE_ALIGNMENT; diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index 616fef41c1..8de0da09b7 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -286,7 +286,7 @@ int main(int argc, char *argv[]) struct RunInfo info; struct core_file info_content; int rv; - char game_name[MAX_TOKEN_LEN], game_name_test[256]; + char game_name[MAX_TOKEN_LEN]; char *path = argv[1]; if (argc < 2)