- Fixed some warnings flagged by GCC 4.1.1, which brings up an interesting
observation. The following code works with VC++ 2005. It aborts with GCC:
FString str = "This is a string.";
Printf ("%s\n", str);
SVN r408 (trunk)
This commit is contained in:
parent
6f3a28e355
commit
41de448add
12 changed files with 77 additions and 48 deletions
|
|
@ -574,6 +574,12 @@ bool M_ReadIDAT (FileReader *file, BYTE *buffer, int width, int height, int pitc
|
|||
initpass = true;
|
||||
pass = interlace ? 0 : 7;
|
||||
|
||||
// Silence GCC warnings. Due to initpass being true, these will be set
|
||||
// before they're used, but it doesn't know that.
|
||||
curr = prev = 0;
|
||||
passwidth = passpitch = bytesPerRowIn = 0;
|
||||
passbuff = 0;
|
||||
|
||||
while (err != Z_STREAM_END && pass < 8 - interlace)
|
||||
{
|
||||
if (initpass)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue