- Fixed all the warnings from GCC 4.2, including a handful that were
present in older GCCs. SVN r430 (trunk)
This commit is contained in:
parent
ff65f75a8c
commit
851bf89442
33 changed files with 106 additions and 87 deletions
|
|
@ -418,7 +418,7 @@ CCMD (useflechette)
|
|||
for (j = 0; j < 3; ++j)
|
||||
{
|
||||
AInventory *item;
|
||||
if (item = who->FindInventory (bagnames[(i+j)%3]))
|
||||
if ( (item = who->FindInventory (bagnames[(i+j)%3])) )
|
||||
{
|
||||
SendItemUse = item;
|
||||
break;
|
||||
|
|
@ -843,9 +843,10 @@ void G_Ticker ()
|
|||
}
|
||||
|
||||
if (ToggleFullscreen)
|
||||
{
|
||||
{
|
||||
static char toggle_fullscreen[] = "toggle fullscreen";
|
||||
ToggleFullscreen = false;
|
||||
AddCommandString ("toggle fullscreen");
|
||||
AddCommandString (toggle_fullscreen);
|
||||
}
|
||||
|
||||
// do things to change the game state
|
||||
|
|
@ -1805,7 +1806,7 @@ void G_DoAutoSave ()
|
|||
{
|
||||
// Keep up to four autosaves at a time
|
||||
UCVarValue num;
|
||||
char *readableTime;
|
||||
const char *readableTime;
|
||||
int count = autosavecount != 0 ? autosavecount : 1;
|
||||
|
||||
num.Int = (autosavenum + 1) % count;
|
||||
|
|
@ -1841,7 +1842,7 @@ static void PutSaveWads (FILE *file)
|
|||
static void PutSaveComment (FILE *file)
|
||||
{
|
||||
char comment[256];
|
||||
char *readableTime;
|
||||
const char *readableTime;
|
||||
WORD len;
|
||||
int levelTime;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue