mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Merge pull request #942 from lioncash/unused
Remove some unused variables.
This commit is contained in:
commit
66427db631
@ -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;
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user