mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
get rid of most compiler warnings
This commit is contained in:
@@ -101,13 +101,19 @@ static int reset()
|
||||
|
||||
static int writeData(void* _call)
|
||||
{
|
||||
#ifndef MARTII
|
||||
unsigned char r;
|
||||
unsigned char g;
|
||||
unsigned char b;
|
||||
#endif
|
||||
unsigned char a;
|
||||
#ifndef MARTII
|
||||
int x,y;
|
||||
#endif
|
||||
int res = 0;
|
||||
#ifndef MARTII
|
||||
unsigned char* dst;
|
||||
#endif
|
||||
|
||||
WriterFBCallData_t* call = (WriterFBCallData_t*) _call;
|
||||
|
||||
@@ -171,6 +177,9 @@ static int writeData(void* _call)
|
||||
}
|
||||
} else
|
||||
{
|
||||
#ifdef MARTII
|
||||
int y;
|
||||
#endif
|
||||
for (y = 0; y < call->Height; y++)
|
||||
memset(call->destination + ((call->y + y) * call->destStride) + call->x * 4, 0, call->Width * 4);
|
||||
}
|
||||
|
Reference in New Issue
Block a user