From 07b5f119c929a55dd4efae41adb6d05df1b728a0 Mon Sep 17 00:00:00 2001 From: Martin Schaffner Date: Thu, 8 Jan 2004 16:48:35 +0000 Subject: [PATCH] get rid of warnings (now compiles with -Werror on SunOS) --- ChangeLog | 5 +++++ arch/linux/ipx_udp.c | 5 ++++- configure.ac | 2 +- maths/fixc.c | 6 +++--- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c14b233..92bb8dcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-08 Martin Schaffner + + * 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 * include/pstypes.h: sun OS typedef fixes diff --git a/arch/linux/ipx_udp.c b/arch/linux/ipx_udp.c index 10619d4b..04073bc2 100644 --- a/arch/linux/ipx_udp.c +++ b/arch/linux/ipx_udp.c @@ -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 #include #include +#ifdef __sun +# include +#endif #include #include #ifdef __sun__ diff --git a/configure.ac b/configure.ac index c8d6e6b7..f555e976 100644 --- a/configure.ac +++ b/configure.ac @@ -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, diff --git a/maths/fixc.c b/maths/fixc.c index c121fcf6..ea6e7d57 100644 --- a/maths/fixc.c +++ b/maths/fixc.c @@ -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 @@ -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 -- 2.39.2