]> granicus.if.org Git - nethack/commitdiff
Mark unused parameters
authorPasi Kallinen <paxed@alt.org>
Thu, 10 Dec 2020 20:08:32 +0000 (22:08 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 10 Dec 2020 20:08:32 +0000 (22:08 +0200)
src/trap.c
sys/unix/hints/linux

index 9ac995c4b43025ba0a16bcb3b47a49cf387826d3..746699d65636b94f0d80a8901caac10a6eed6891 100644 (file)
@@ -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);
index 48ab631c17b026dd4b2123821953f1d1ecd7990b..7b1ae91361b19d4030e63b35d8dbb48c53d7734e 100644 (file)
@@ -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