From 5401983d76a83e8c9a71f86b4b37bea6412bc913 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 27 Jan 2023 09:57:54 -0500 Subject: [PATCH] suppress "set but not used" warning if no soundlib --- src/sounds.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sounds.c b/src/sounds.c index f12726367..e51218c31 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -464,6 +464,9 @@ yelp(register struct monst* mtmp) nomul(0); wake_nearto(mtmp->mx, mtmp->my, mtmp->data->mlevel * 12); } +#ifndef SND_LIB_INTEGRATED + nhUse(se); +#endif } /* the sounds of distressed pets */ @@ -501,6 +504,9 @@ whimper(register struct monst* mtmp) nomul(0); wake_nearto(mtmp->mx, mtmp->my, mtmp->data->mlevel * 6); } +#ifndef SND_LIB_INTEGRATED + nhUse(se); +#endif } /* pet makes "I'm hungry" noises */