warning fixes for gcc 4.0
This commit is contained in:
parent
21ec5934ce
commit
d698e87960
|
@ -11,8 +11,9 @@ arch/carbon/conf.h: allow universal binaries to be built using Xcode 2.1 or late
|
|||
arch/sdl/digi.c: add MIDI stubs for Mac, it doesn't have the 'real' functions yet
|
||||
arch/sdl/joy.c: use d_strdup instead of strdup to avoid errors when compiling on Mac OS 9, free the joystick button texts when closing
|
||||
main/inferno.c: use strncpy instead of snprintf, MPW on Mac OS 9 doesn't have snprintf
|
||||
main/automap.c, main/gamefont.c, main/newmenu.c, main/state.c, main/titles.c: warning fixes for gcc 4.0
|
||||
|
||||
20061219
|
||||
20061223
|
||||
--------
|
||||
main/game.c, main/gamerend.c: small brace tidy up to allow a source code editor to list all the functions (from D2X CVS)
|
||||
|
||||
|
|
|
@ -401,6 +401,8 @@ void draw_player( object * obj )
|
|||
automap_draw_line(&sphere_point, &arrow_point);
|
||||
}
|
||||
|
||||
void create_name_canv(void);
|
||||
|
||||
void draw_automap()
|
||||
{
|
||||
int i;
|
||||
|
@ -625,7 +627,9 @@ void do_automap( int key_code ) {
|
|||
int pause_game=1; // Set to 1 if everything is paused during automap...No pause during net.
|
||||
fix t1, t2;
|
||||
control_info saved_control_info;
|
||||
#ifdef OGL
|
||||
grs_bitmap Automap_background;
|
||||
#endif
|
||||
int Max_segments_away = 0;
|
||||
int SegmentLimit = 1;
|
||||
ubyte pal[256*3];
|
||||
|
|
|
@ -31,6 +31,7 @@ static char rcsid[] = "$Id: gamefont.c,v 1.1.1.1 2006/03/17 19:56:39 zicodxx Exp
|
|||
#include "inferno.h"
|
||||
#include "gr.h"
|
||||
#include "gamefont.h"
|
||||
#include "args.h"
|
||||
|
||||
// if 1, use high-res versions of fonts
|
||||
int FontHires = 0;
|
||||
|
|
|
@ -37,6 +37,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#include "error.h"
|
||||
#include "pstypes.h"
|
||||
#include "gr.h"
|
||||
#include "grdef.h"
|
||||
#include "mono.h"
|
||||
#include "songs.h"
|
||||
#include "key.h"
|
||||
|
|
|
@ -49,6 +49,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#else
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
#include "ogl_init.h"
|
||||
#endif
|
||||
|
||||
#include "pstypes.h"
|
||||
|
|
|
@ -30,6 +30,10 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef OGL
|
||||
#include "ogl_init.h"
|
||||
#endif
|
||||
|
||||
#ifdef MACINTOSH
|
||||
#include <Events.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue