Mark unused parameters
This commit is contained in:
+11
-11
@@ -928,7 +928,7 @@ static int
|
|||||||
trapeffect_arrow_trap(mtmp, trap, trflags)
|
trapeffect_arrow_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
|
|
||||||
@@ -984,7 +984,7 @@ static int
|
|||||||
trapeffect_dart_trap(mtmp, trap, trflags)
|
trapeffect_dart_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
|
|
||||||
@@ -1052,7 +1052,7 @@ static int
|
|||||||
trapeffect_rocktrap(mtmp, trap, trflags)
|
trapeffect_rocktrap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
|
|
||||||
@@ -1245,7 +1245,7 @@ static int
|
|||||||
trapeffect_slp_gas_trap(mtmp, trap, trflags)
|
trapeffect_slp_gas_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
seetrap(trap);
|
seetrap(trap);
|
||||||
@@ -1274,7 +1274,7 @@ static int
|
|||||||
trapeffect_rust_trap(mtmp, trap, trflags)
|
trapeffect_rust_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
struct obj *otmp;
|
struct obj *otmp;
|
||||||
|
|
||||||
@@ -1403,7 +1403,7 @@ static int
|
|||||||
trapeffect_fire_trap(mtmp, trap, trflags)
|
trapeffect_fire_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
seetrap(trap);
|
seetrap(trap);
|
||||||
@@ -1714,7 +1714,7 @@ static int
|
|||||||
trapeffect_telep_trap(mtmp, trap, trflags)
|
trapeffect_telep_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
seetrap(trap);
|
seetrap(trap);
|
||||||
@@ -1918,7 +1918,7 @@ static int
|
|||||||
trapeffect_statue_trap(mtmp, trap, trflags)
|
trapeffect_statue_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
(void) activate_statue_trap(trap, u.ux, u.uy, FALSE);
|
(void) activate_statue_trap(trap, u.ux, u.uy, FALSE);
|
||||||
@@ -1960,7 +1960,7 @@ static int
|
|||||||
trapeffect_anti_magic(mtmp, trap, trflags)
|
trapeffect_anti_magic(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
seetrap(trap);
|
seetrap(trap);
|
||||||
@@ -2216,7 +2216,7 @@ static int
|
|||||||
trapeffect_rolling_boulder_trap(mtmp, trap, trflags)
|
trapeffect_rolling_boulder_trap(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
int style = ROLL | (trap->tseen ? LAUNCH_KNOWN : 0);
|
int style = ROLL | (trap->tseen ? LAUNCH_KNOWN : 0);
|
||||||
@@ -2276,7 +2276,7 @@ static int
|
|||||||
trapeffect_vibrating_square(mtmp, trap, trflags)
|
trapeffect_vibrating_square(mtmp, trap, trflags)
|
||||||
struct monst *mtmp;
|
struct monst *mtmp;
|
||||||
struct trap *trap;
|
struct trap *trap;
|
||||||
unsigned trflags;
|
unsigned trflags UNUSED;
|
||||||
{
|
{
|
||||||
if (mtmp == &g.youmonst) {
|
if (mtmp == &g.youmonst) {
|
||||||
feeltrap(trap);
|
feeltrap(trap);
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ CFLAGS+=-DCURSES_GRAPHICS
|
|||||||
#CFLAGS+=-DSCORE_ON_BOTL
|
#CFLAGS+=-DSCORE_ON_BOTL
|
||||||
#CFLAGS+=-DMSGHANDLER
|
#CFLAGS+=-DMSGHANDLER
|
||||||
#CFLAGS+=-DTTY_TILES_ESCCODES
|
#CFLAGS+=-DTTY_TILES_ESCCODES
|
||||||
|
CFLAGS+=-Wunused
|
||||||
|
CFLAGS+=-Wunused-parameter
|
||||||
|
|
||||||
# when building liblua.a, avoid warning that use of tmpnam() should be
|
# 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
|
# replaced by mkstemp(); the lua code doesn't use nethack's config.h so
|
||||||
|
|||||||
Reference in New Issue
Block a user