killed warnings in cyberblade driver

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22889 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2007-04-01 13:03:37 +00:00
parent 13c431f1a9
commit 3625d66f0d
1 changed files with 2 additions and 19 deletions

View File

@ -67,28 +67,12 @@ FILE *logfile=0;
/* Helper functions for reading registers. */
static int CRINW(int reg)
{
int result;
result=CRINB(reg);
result|=CRINB(reg+1)<<8;
return(result);
}
static void CROUTW(int reg,int val)
{
CROUTB(reg,val&255);
CROUTB(reg+1,(val>>8)&255);
}
static int SRINW(int reg)
{
int result;
result=SRINB(reg);
result|=SRINB(reg+1)<<8;
return(result);
}
static void SROUTW(int reg,int val)
{
SROUTB(reg,val&255);
@ -97,8 +81,8 @@ static void SROUTW(int reg,int val)
void DumpRegisters(void)
{
int reg,val;
#ifdef DEBUG_LOGFILE
int reg,val;
if(logfile)
{
LOGWRITE("CRTC Register Dump:\n")
@ -377,12 +361,11 @@ static int YOffs,UOffs,VOffs;
static int cyberblade_config_playback(vidix_playback_t *info)
{
int shrink, zoom;
int src_w, drw_w;
int src_h, drw_h;
int hscale,vscale;
long base0;
int y_pitch, uv_pitch;
int y_pitch = 0, uv_pitch = 0;
int protect=0;
int layout=0;
unsigned int i;