Build with WARNS=4.

This commit is contained in:
dholland 2008-01-28 01:15:55 +00:00
parent 68bfa787b0
commit 80def703dc
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 1997/10/12 21:24:24 christos Exp $
# $NetBSD: Makefile,v 1.11 2008/01/28 01:15:55 dholland Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= trek
@ -14,6 +14,7 @@ MAN= trek.6
DPADD= ${LIBM}
LDADD= -lm
HIDEGAME=hidegame
WARNS= 4
.if make(install)
SUBDIR+=USD.doc

View File

@ -1,4 +1,4 @@
/* $NetBSD: events.c,v 1.7 2003/08/07 09:37:51 agc Exp $ */
/* $NetBSD: events.c,v 1.8 2008/01/28 01:15:55 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)events.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: events.c,v 1.7 2003/08/07 09:37:51 agc Exp $");
__RCSID("$NetBSD: events.c,v 1.8 2008/01/28 01:15:55 dholland Exp $");
#endif
#endif /* not lint */
@ -50,12 +50,12 @@ __RCSID("$NetBSD: events.c,v 1.7 2003/08/07 09:37:51 agc Exp $");
** This routine does a hell of a lot. It elapses time, eats up
** energy, regenerates energy, processes any events that occur,
** and so on.
**
** 'timewarp' is set if called in a time warp.
*/
int
events(warp)
int warp; /* set if called in a time warp */
events(int timewarp)
{
int i;
char *p;
@ -455,7 +455,7 @@ int warp; /* set if called in a time warp */
if ((e = Now.eventptr[E_ATTACK]) != NULL)
unschedule(e);
if (!warp)
if (!timewarp)
{
/* eat up energy if cloaked */
if (Ship.cloaked)