Fixed Bug #978835: gcc 3.3.3 gives deprecated warnings on build
This commit is contained in:
parent
d75e96d4fe
commit
f10d5c5c8e
2 changed files with 8 additions and 6 deletions
|
@ -103,7 +103,7 @@ extern unsigned short inline _FetchLE16(unsigned char** pp) {
|
|||
|
||||
#else
|
||||
|
||||
#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))++)
|
||||
#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))); ++p
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -123,7 +123,7 @@ extern unsigned inline _FetchLE32(unsigned char** pp) {
|
|||
|
||||
#else
|
||||
|
||||
#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))++)
|
||||
#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))); ++p
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -263,7 +263,7 @@ void UpdateStats(int reset)
|
|||
}
|
||||
|
||||
/// Macro to fetch an 8bit value, to have some looking 8/16/32 bit funcs.
|
||||
#define Fetch8(p) (*((unsigned char*)(p))++)
|
||||
#define Fetch8(p) (*((unsigned char*)(p))); ++p
|
||||
|
||||
/**
|
||||
** Parse UDTA area from puds.
|
||||
|
@ -311,7 +311,7 @@ void ParsePudUDTA(const char* udta, int length __attribute__((unused)))
|
|||
// unittype = UnitTypeByWcNum(i);
|
||||
// v = Fetch8(udta);
|
||||
// unittype->Magic = v;
|
||||
Fetch8(udta);
|
||||
++udta;
|
||||
}
|
||||
for (i = 0; i < 110; ++i) { // Build time * 6 = one second FRAMES
|
||||
unittype = UnitTypeByWcNum(i);
|
||||
|
@ -406,10 +406,12 @@ void ParsePudUDTA(const char* udta, int length __attribute__((unused)))
|
|||
}
|
||||
#else
|
||||
for (i = 0; i < 110; ++i) { // Skip weapons upgradable
|
||||
Fetch8(udta);
|
||||
//Fetch8(udta);
|
||||
++udta;
|
||||
}
|
||||
for (i = 0; i < 110; ++i) { // Skip armor upgradable
|
||||
Fetch8(udta);
|
||||
//Fetch8(udta);
|
||||
++udta;
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < 110; ++i) { // Missile Weapon
|
||||
|
|
Loading…
Add table
Reference in a new issue