Merge pull request #942 from lioncash/unused

Remove some unused variables.
This commit is contained in:
Twinaphex 2014-09-06 03:40:56 +02:00
commit 66427db631
8 changed files with 6 additions and 14 deletions

View File

@ -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) static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size)
{ {
int status;
alsa_t *alsa = (alsa_t*)data; alsa_t *alsa = (alsa_t*)data;
snd_pcm_channel_status_t cstatus = {0}; snd_pcm_channel_status_t cstatus = {0};
snd_pcm_sframes_t written = 0; snd_pcm_sframes_t written = 0;

View File

@ -158,7 +158,6 @@ static bool init_device(void *data)
struct v4l2_cropcap cropcap; struct v4l2_cropcap cropcap;
struct v4l2_crop crop; struct v4l2_crop crop;
struct v4l2_format fmt; struct v4l2_format fmt;
unsigned min;
video4linux_t *v4l = (video4linux_t*)data; video4linux_t *v4l = (video4linux_t*)data;
if (xioctl(v4l->fd, VIDIOC_QUERYCAP, &cap) < 0) if (xioctl(v4l->fd, VIDIOC_QUERYCAP, &cap) < 0)
@ -376,7 +375,6 @@ static bool preprocess_image(void *data)
{ {
video4linux_t *v4l = (video4linux_t*)data; video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_buffer buf; struct v4l2_buffer buf;
unsigned i;
memset(&buf, 0, sizeof(buf)); memset(&buf, 0, sizeof(buf));

View File

@ -130,14 +130,12 @@ static void renderchain_render_pass(void *data, const void *frame, unsigned widt
{ {
d3d_video_t *d3d = (d3d_video_t*)data; d3d_video_t *d3d = (d3d_video_t*)data;
LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)d3d->dev; LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)d3d->dev;
#ifndef _XBOX1
DWORD fetchConstant;
UINT64 pendingMask3;
#endif
#ifdef _XBOX1 #ifdef _XBOX1
d3dr->SetFlickerFilter(g_extern.console.screen.flicker_filter_index); d3dr->SetFlickerFilter(g_extern.console.screen.flicker_filter_index);
d3dr->SetSoftDisplayFilter(g_extern.console.softfilter_enable); d3dr->SetSoftDisplayFilter(g_extern.console.softfilter_enable);
#endif #endif
renderchain_blit_to_texture(d3d, frame, width, height, pitch); renderchain_blit_to_texture(d3d, frame, width, height, pitch);
renderchain_set_vertices(d3d, 1, width, height); renderchain_set_vertices(d3d, 1, width, height);

View File

@ -148,7 +148,7 @@ static int omapfb_detect_screen(omapfb_data_t *pdata) {
int fb_id, overlay_id = -1, display_id = -1; int fb_id, overlay_id = -1, display_id = -1;
char buff[64], manager_name[64], display_name[64]; char buff[64], manager_name[64], display_name[64];
struct stat status; struct stat status;
int fd, i, ret; int i, ret;
int w, h; int w, h;
FILE *f; FILE *f;
@ -295,8 +295,6 @@ static int omapfb_mmap(omapfb_data_t *pdata) {
} }
static int omapfb_backup_state(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; void* mem;
assert(pdata->saved_state == NULL); assert(pdata->saved_state == NULL);

View File

@ -519,7 +519,6 @@ static void psp_set_texture_frame(void *data, const void *frame, bool rgb32,
(void) rgb32; (void) rgb32;
(void) alpha; (void) alpha;
int i;
psp1_video_t *psp = (psp1_video_t*)data; psp1_video_t *psp = (psp1_video_t*)data;
#ifdef DEBUG #ifdef DEBUG

View File

@ -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, static void sdl_render_msg(sdl_video_t *vid, SDL_Surface *buffer,
const char *msg, unsigned width, unsigned height, const SDL_PixelFormat *fmt) 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; unsigned rshift, gshift, bshift;
if (!vid->font) if (!vid->font)

View File

@ -419,7 +419,7 @@ static uint32_t gmmInit(const void *localMemoryBase, const void *localStartAddre
const uint32_t localSize) const uint32_t localSize)
{ {
GmmAllocator *pAllocator; GmmAllocator *pAllocator;
uint32_t alignedLocalSize, alignedMainSize; uint32_t alignedLocalSize;
uint32_t localEndAddress = (uint32_t)localStartAddress + localSize; uint32_t localEndAddress = (uint32_t)localStartAddress + localSize;
localEndAddress = (localEndAddress / GMM_TILE_ALIGNMENT) * GMM_TILE_ALIGNMENT; localEndAddress = (localEndAddress / GMM_TILE_ALIGNMENT) * GMM_TILE_ALIGNMENT;

View File

@ -286,7 +286,7 @@ int main(int argc, char *argv[])
struct RunInfo info; struct RunInfo info;
struct core_file info_content; struct core_file info_content;
int rv; int rv;
char game_name[MAX_TOKEN_LEN], game_name_test[256]; char game_name[MAX_TOKEN_LEN];
char *path = argv[1]; char *path = argv[1];
if (argc < 2) if (argc < 2)