get rid of warnings (now compiles with -Werror on SunOS)

This commit is contained in:
Martin Schaffner 2004-01-08 16:48:35 +00:00
parent 6c80f535ea
commit 07b5f119c9
4 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2004-01-08 Martin Schaffner <maschaffner@gmx.ch>
* configure.ac, arch/linux/ipx_udp.c, maths/fixc.c:
get rid of warnings (now compiles with -Werror on SunOS)
2004-01-06 Martin Schaffner <maschaffner@gmx.ch>
* include/pstypes.h: sun OS typedef fixes

View file

@ -1,4 +1,4 @@
/* $Id: ipx_udp.c,v 1.9 2003-12-08 22:55:27 btb Exp $ */
/* $Id: ipx_udp.c,v 1.10 2004-01-08 16:48:34 schaffner Exp $ */
/*
*
* IPX driver for native Linux TCP/IP networking (UDP implementation)
@ -79,6 +79,9 @@
#include <stdarg.h>
#include <netdb.h>
#include <stdlib.h>
#ifdef __sun
# include <alloca.h>
#endif
#include <sys/ioctl.h>
#include <sys/socket.h>
#ifdef __sun__

View file

@ -96,7 +96,7 @@ test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
dnl Set default locations to find data files.
default_sharepath="$datadir/games/$PACKAGE"
CFLAGS="-Wall $CFLAGS"
CFLAGS="-Wall -Wno-char-subscripts $CFLAGS"
dnl Enable editor build?
AC_ARG_ENABLE(editor,

View file

@ -1,4 +1,4 @@
/* $Id: fixc.c,v 1.5 2002-10-28 20:12:48 btb Exp $ */
/* $Id: fixc.c,v 1.6 2004-01-08 16:48:35 schaffner Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
@ -51,7 +51,7 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#endif
#ifdef RCS
static char rcsid[] = "$Id: fixc.c,v 1.5 2002-10-28 20:12:48 btb Exp $";
static char rcsid[] = "$Id: fixc.c,v 1.6 2004-01-08 16:48:35 schaffner Exp $";
#endif
#include <stdlib.h>
@ -64,7 +64,7 @@ static char rcsid[] = "$Id: fixc.c,v 1.5 2002-10-28 20:12:48 btb Exp $";
#ifdef _MSC_VER
#pragma message ("warning: FIX NOT INLINED")
#else
#warning "FIX NOT INLINED"
// #warning "FIX NOT INLINED" fixc is now stable
#endif
#endif