summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-05-08 00:31:01 +0000
committerSimon Howard2011-05-08 00:31:01 +0000
commit6e9294e05572d46d3897744d78f4604b412ceb65 (patch)
treedd2c94648ae262169d60eb2a4a87bb6144b1d59b
parent1fd0ad08ed4840e681e902bc1b9420a1d41619b4 (diff)
downloadchocolate-doom-6e9294e05572d46d3897744d78f4604b412ceb65.tar.gz
chocolate-doom-6e9294e05572d46d3897744d78f4604b412ceb65.tar.bz2
chocolate-doom-6e9294e05572d46d3897744d78f4604b412ceb65.zip
Shut up compiler warnings.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2333
-rw-r--r--src/deh_io.c2
-rw-r--r--src/i_scale.c1
-rw-r--r--src/p_setup.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/deh_io.c b/src/deh_io.c
index 92c81632..83609068 100644
--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -181,7 +181,7 @@ int DEH_GetCharLump(deh_context_t *context)
int DEH_GetChar(deh_context_t *context)
{
- int result;
+ int result = 0;
// Read characters, but ignore carriage returns
// Essentially this is a DOS->Unix conversion
diff --git a/src/i_scale.c b/src/i_scale.c
index 0b702311..8cecb1f8 100644
--- a/src/i_scale.c
+++ b/src/i_scale.c
@@ -30,6 +30,7 @@
#include "doomtype.h"
#include "i_video.h"
+#include "m_argv.h"
#include "z_zone.h"
#if defined(_MSC_VER) && !defined(__cplusplus)
diff --git a/src/p_setup.c b/src/p_setup.c
index e18ec81e..58d5f462 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -700,7 +700,7 @@ static void PadRejectArray(byte *array, unsigned int len)
if (len > sizeof(rejectpad))
{
fprintf(stderr, "PadRejectArray: REJECT lump too short to pad! (%i > %i)\n",
- len, sizeof(rejectpad));
+ len, (int) sizeof(rejectpad));
// Pad remaining space with 0 (or 0xff, if specified on command line).