mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 21:52:28 -05:00
SDL: Silence a large number of compile warnings (WIP)
There are some real bugs in here, but we're drowning in warnings. Change-Id: I7c2c0eafc8426327521bdd8a3ac2d3742ac16864
This commit is contained in:
parent
2ad6c3438e
commit
e28d1fe916
44 changed files with 424 additions and 395 deletions
|
|
@ -961,7 +961,7 @@ void DrawPlayBorder (void);
|
|||
void DrawStatusBorder (byte color);
|
||||
void DrawPlayScreen (void);
|
||||
void DrawPlayBorderSides (void);
|
||||
void ShowActStatus();
|
||||
void ShowActStatus(void);
|
||||
|
||||
void PlayDemo (int demonumber);
|
||||
void RecordDemo (void);
|
||||
|
|
@ -1372,7 +1372,7 @@ void GP2X_ButtonUp(int button);
|
|||
=============================================================================
|
||||
*/
|
||||
|
||||
static fixed FixedMul(fixed a, fixed b)
|
||||
static inline fixed FixedMul(fixed a, fixed b)
|
||||
{
|
||||
return (fixed)(((int64_t)a * b + 0x8000) >> 16);
|
||||
}
|
||||
|
|
@ -1394,13 +1394,13 @@ static fixed FixedMul(fixed a, fixed b)
|
|||
|
||||
#define CHECKMALLOCRESULT(x) if(!(x)) Quit("Out of memory at %s:%i", __FILE__, __LINE__)
|
||||
|
||||
static char* itoa(int value, char* string, int radix)
|
||||
static inline char* itoa(int value, char* string, int radix)
|
||||
{
|
||||
sprintf(string, "%d", value);
|
||||
return string;
|
||||
}
|
||||
|
||||
static char* ltoa(long value, char* string, int radix)
|
||||
static inline char* ltoa(long value, char* string, int radix)
|
||||
{
|
||||
sprintf(string, "%ld", value);
|
||||
return string;
|
||||
|
|
@ -1409,14 +1409,14 @@ static char* ltoa(long value, char* string, int radix)
|
|||
#define lengthof(x) (sizeof(x) / sizeof(*(x)))
|
||||
#define endof(x) ((x) + lengthof(x))
|
||||
|
||||
static word READWORD(byte **ptr)
|
||||
static inline word READWORD(byte **ptr)
|
||||
{
|
||||
word val = (*ptr)[0] | (*ptr)[1] << 8;
|
||||
*ptr += 2;
|
||||
return val;
|
||||
}
|
||||
|
||||
static longword READLONGWORD(byte **ptr)
|
||||
static inline longword READLONGWORD(byte **ptr)
|
||||
{
|
||||
longword val = (*ptr)[0] | (*ptr)[1] << 8 | (*ptr)[2] << 16 | (*ptr)[3] << 24;
|
||||
*ptr += 4;
|
||||
|
|
@ -1454,7 +1454,7 @@ static longword READLONGWORD(byte **ptr)
|
|||
*************************************************************/
|
||||
|
||||
// The feature flags are stored as a wall in the upper right corner of each level
|
||||
static word GetFeatureFlags()
|
||||
static inline word GetFeatureFlags()
|
||||
{
|
||||
return ffDataTopRight;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue