From: Pasi Kallinen Date: Thu, 10 Dec 2020 20:08:32 +0000 (+0200) Subject: Mark unused parameters X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb1fb93d0608cafc96b39efaf24b46e0faa35778;p=nethack Mark unused parameters --- diff --git a/src/trap.c b/src/trap.c index 9ac995c4b..746699d65 100644 --- a/src/trap.c +++ b/src/trap.c @@ -928,7 +928,7 @@ static int trapeffect_arrow_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { struct obj *otmp; @@ -984,7 +984,7 @@ static int trapeffect_dart_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { struct obj *otmp; @@ -1052,7 +1052,7 @@ static int trapeffect_rocktrap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { struct obj *otmp; @@ -1245,7 +1245,7 @@ static int trapeffect_slp_gas_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { seetrap(trap); @@ -1274,7 +1274,7 @@ static int trapeffect_rust_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { struct obj *otmp; @@ -1403,7 +1403,7 @@ static int trapeffect_fire_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { seetrap(trap); @@ -1714,7 +1714,7 @@ static int trapeffect_telep_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { seetrap(trap); @@ -1918,7 +1918,7 @@ static int trapeffect_statue_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { (void) activate_statue_trap(trap, u.ux, u.uy, FALSE); @@ -1960,7 +1960,7 @@ static int trapeffect_anti_magic(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { seetrap(trap); @@ -2216,7 +2216,7 @@ static int trapeffect_rolling_boulder_trap(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { int style = ROLL | (trap->tseen ? LAUNCH_KNOWN : 0); @@ -2276,7 +2276,7 @@ static int trapeffect_vibrating_square(mtmp, trap, trflags) struct monst *mtmp; struct trap *trap; -unsigned trflags; +unsigned trflags UNUSED; { if (mtmp == &g.youmonst) { feeltrap(trap); diff --git a/sys/unix/hints/linux b/sys/unix/hints/linux index 48ab631c1..7b1ae9136 100644 --- a/sys/unix/hints/linux +++ b/sys/unix/hints/linux @@ -34,6 +34,8 @@ CFLAGS+=-DCURSES_GRAPHICS #CFLAGS+=-DSCORE_ON_BOTL #CFLAGS+=-DMSGHANDLER #CFLAGS+=-DTTY_TILES_ESCCODES +CFLAGS+=-Wunused +CFLAGS+=-Wunused-parameter # when building liblua.a, avoid warning that use of tmpnam() should be # replaced by mkstemp(); the lua code doesn't use nethack's config.h so