ref: 75337e4ed54550f215145991517b0139fe7ce5c1
parent: ae7adeeda69cc61ed4e9409b0a4d3d13b5d40332
author: Simon Howard <[email protected]>
date: Tue Jan 10 17:14:13 EST 2006
Shut up compiler warnings Subversion-branch: /trunk/chocolate-doom Subversion-revision: 280
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_main.c 277 2006-01-09 01:50:51Z fraggle $
+// $Id: d_main.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.37 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.36 2006/01/09 01:50:51 fraggle
// Deduce a sane player name by examining environment variables. Add
// a "player_name" setting to chocolate-doom.cfg. Transmit the name
@@ -163,7 +166,7 @@
//-----------------------------------------------------------------------------
-static const char rcsid[] = "$Id: d_main.c 277 2006-01-09 01:50:51Z fraggle $";
+static const char rcsid[] = "$Id: d_main.c 280 2006-01-10 22:14:13Z fraggle $";
#define BGCOLOR 7
#define FGCOLOR 8
@@ -1172,7 +1175,6 @@
static void SetConfigDir(void)
{
char *homedir;
- int i;
homedir = getenv("HOME");
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_sound.c 271 2006-01-08 17:51:53Z fraggle $
+// $Id: i_sound.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.25 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.24 2006/01/08 17:51:53 fraggle
// Add S_MusicPlaying function to query if music is still playing.
//
@@ -119,7 +122,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_sound.c 271 2006-01-08 17:51:53Z fraggle $";
+rcsid[] = "$Id: i_sound.c 280 2006-01-10 22:14:13Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -574,8 +577,6 @@
music_initialised = false;
}
-static int looping=0;
-static int musicdies=-1;
static boolean musicpaused = false;
//
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: m_misc.c 277 2006-01-09 01:50:51Z fraggle $
+// $Id: m_misc.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -23,6 +23,9 @@
//
//
// $Log$
+// Revision 1.17 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.16 2006/01/09 01:50:51 fraggle
// Deduce a sane player name by examining environment variables. Add
// a "player_name" setting to chocolate-doom.cfg. Transmit the name
@@ -95,7 +98,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: m_misc.c 277 2006-01-09 01:50:51Z fraggle $";
+rcsid[] = "$Id: m_misc.c 280 2006-01-10 22:14:13Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -616,7 +619,6 @@
void M_LoadDefaults (void)
{
- char *homedir;
int i;
// check for a custom default file
--- a/src/mmus2mid.c
+++ b/src/mmus2mid.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: mmus2mid.c 255 2006-01-05 02:48:03Z fraggle $
+// $Id: mmus2mid.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright (C) 1999 by
@@ -27,6 +27,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.4 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.3 2006/01/05 02:48:03 fraggle
// Fixes for big endian machines (thanks locust)
//
@@ -651,30 +654,9 @@
// /* it also provides a MUS to MID file converter*/
// proff: I moved this down, because I need MIDItoMidi
-static void FreeTracks(MIDI *mididata);
static void TWriteLength(UBYTE **midiptr,ULONG length);
//
-// FreeTracks()
-//
-// Free all track allocations in the MIDI structure
-//
-// Passed a pointer to an Allegro MIDI structure
-// Returns nothing
-//
-static void FreeTracks(MIDI *mididata)
-{
- int i;
-
- for (i=0; i<MIDI_TRACKS; i++)
- {
- free(mididata->track[i].data);
- mididata->track[i].data = NULL;
- mididata->track[i].len = 0;
- }
-}
-
-//
// TWriteLength()
//
// Write the length of a MIDI chunk to a midi buffer. The length is four
@@ -760,6 +742,26 @@
#ifdef STANDALONE /* this code unused by BOOM provided for future portability */
/* it also provides a MUS to MID file converter*/
// proff: I moved this down, because I need MIDItoMidi
+
+//
+// FreeTracks()
+//
+// Free all track allocations in the MIDI structure
+//
+// Passed a pointer to an Allegro MIDI structure
+// Returns nothing
+//
+static void FreeTracks(MIDI *mididata)
+{
+ int i;
+
+ for (i=0; i<MIDI_TRACKS; i++)
+ {
+ free(mididata->track[i].data);
+ mididata->track[i].data = NULL;
+ mididata->track[i].len = 0;
+ }
+}
//
// main()
--- a/src/net_gui.c
+++ b/src/net_gui.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_gui.c 278 2006-01-09 02:03:39Z fraggle $
+// $Id: net_gui.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.7 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.6 2006/01/09 02:03:39 fraggle
// Send clients their player number, and indicate on the waiting screen
// which client we are.
@@ -82,7 +85,6 @@
{
patch_t *backdrop;
int backdrop_lumpnum;
- char buf[128];
int i, y;
// Use INTERPIC or TITLEPIC if we don't have it
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: w_wad.c 167 2005-10-08 18:22:46Z fraggle $
+// $Id: w_wad.c 280 2006-01-10 22:14:13Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.9 2006/01/10 22:14:13 fraggle
+// Shut up compiler warnings
+//
// Revision 1.8 2005/10/08 18:22:46 fraggle
// Store the cache as part of the lumpinfo_t struct. Add W_AddFile prototype
// to header.
@@ -55,7 +58,7 @@
static const char
-rcsid[] = "$Id: w_wad.c 167 2005-10-08 18:22:46Z fraggle $";
+rcsid[] = "$Id: w_wad.c 280 2006-01-10 22:14:13Z fraggle $";
#include <ctype.h>
@@ -323,8 +326,6 @@
//
void W_InitMultipleFiles (char** filenames)
{
- int size;
-
// open all the files, load headers, and count lumps
numlumps = 0;