nvfx: Silence uninitialized variable warnings.

Silence the following i686-apple-darwin10-gcc-4.2.1 warnings.
nv04_2d.c: In function 'nv04_region_copy_cpu':
nv04_2d.c:560: warning: 'dswy' may be used uninitialized in this function
nv04_2d.c:559: warning: 'dswx' may be used uninitialized in this function
nv04_2d.c:562: warning: 'sswy' may be used uninitialized in this function
nv04_2d.c:561: warning: 'sswx' may be used uninitialized in this function
This commit is contained in:
Vinson Lee
2010-08-21 22:09:47 -07:00
parent 4a06525737
commit 68d34f2979
+4 -4
View File
@@ -556,10 +556,10 @@ simple:
}
else
{
int* dswx;
int* dswy;
int* sswx;
int* sswy;
int* dswx = NULL;
int* dswy = NULL;
int* sswx = NULL;
int* sswy = NULL;
int dir;
if(!dst->pitch)