shithub: choc

Download patch

ref: 6e9294e05572d46d3897744d78f4604b412ceb65
parent: 1fd0ad08ed4840e681e902bc1b9420a1d41619b4
author: Simon Howard <[email protected]>
date: Sat May 7 20:31:01 EDT 2011

Shut up compiler warnings.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2333

--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -181,7 +181,7 @@
 
 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
--- 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)
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -700,7 +700,7 @@
     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).