mirror of
https://github.com/openbsd/src.git
synced 2026-06-19 07:43:34 +02:00
lint is dead (long live the lint!)
This commit is contained in:
+1
-5
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: hack.c,v 1.8 2009/10/27 23:59:25 deraadt Exp $ */
|
||||
/* $OpenBSD: hack.c,v 1.9 2014/03/11 07:41:10 guenther Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
|
||||
@@ -540,10 +540,6 @@ lookaround()
|
||||
int corrct = 0, noturn = 0;
|
||||
struct monst *mtmp;
|
||||
|
||||
#ifdef lint
|
||||
/* suppress "used before set" message */
|
||||
x0 = y0 = 0;
|
||||
#endif /* lint */
|
||||
if (Blind || flags.run == 0) return;
|
||||
if (flags.run == 1 && levl[(int)u.ux][(int)u.uy].typ == ROOM)
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: hack.mon.c,v 1.8 2009/10/27 23:59:25 deraadt Exp $ */
|
||||
/* $OpenBSD: hack.mon.c,v 1.9 2014/03/11 07:41:10 guenther Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
|
||||
@@ -726,9 +726,6 @@ unstuck(struct monst *mtmp)
|
||||
void
|
||||
killed(struct monst *mtmp)
|
||||
{
|
||||
#ifdef lint
|
||||
#define NEW_SCORING
|
||||
#endif /* lint */
|
||||
int tmp, nk, x, y;
|
||||
struct permonst *mdat;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: hack.pri.c,v 1.10 2009/10/27 23:59:25 deraadt Exp $ */
|
||||
/* $OpenBSD: hack.pri.c,v 1.11 2014/03/11 07:41:10 guenther Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
|
||||
@@ -231,13 +231,10 @@ setclipped()
|
||||
void
|
||||
at(xchar x, xchar y, char ch)
|
||||
{
|
||||
#ifndef lint
|
||||
/* if xchar is unsigned, lint will complain about if(x < 0) */
|
||||
if(x < 0 || x > COLNO-1 || y < 0 || y > ROWNO-1) {
|
||||
impossible("At gets 0%o at %d %d.", ch, x, y);
|
||||
return;
|
||||
}
|
||||
#endif /* lint */
|
||||
if(!ch) {
|
||||
impossible("At gets null at %d %d.", x, y);
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: hack.save.c,v 1.9 2009/10/27 23:59:25 deraadt Exp $ */
|
||||
/* $OpenBSD: hack.save.c,v 1.10 2014/03/11 07:41:10 guenther Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
|
||||
@@ -239,10 +239,6 @@ restobjchn(int fd)
|
||||
struct obj *otmp, *otmp2;
|
||||
struct obj *first = 0;
|
||||
int xl;
|
||||
#ifdef lint
|
||||
/* suppress "used before set" warning from lint */
|
||||
otmp2 = 0;
|
||||
#endif /* lint */
|
||||
while(1) {
|
||||
mread(fd, (char *) &xl, sizeof(xl));
|
||||
if(xl == -1) break;
|
||||
@@ -273,10 +269,6 @@ restmonchn(int fd)
|
||||
mread(fd, (char *)&monbegin, sizeof(monbegin));
|
||||
differ = (char *)(&mons[0]) - (char *)(monbegin);
|
||||
|
||||
#ifdef lint
|
||||
/* suppress "used before set" warning from lint */
|
||||
mtmp2 = 0;
|
||||
#endif /* lint */
|
||||
while(1) {
|
||||
mread(fd, (char *) &xl, sizeof(xl));
|
||||
if(xl == -1) break;
|
||||
|
||||
Reference in New Issue
Block a user