]> granicus.if.org Git - nethack/commitdiff
suppress "set but not used" warning if no soundlib
authornhmall <nhmall@nethack.org>
Fri, 27 Jan 2023 14:57:54 +0000 (09:57 -0500)
committernhmall <nhmall@nethack.org>
Fri, 27 Jan 2023 14:57:54 +0000 (09:57 -0500)
src/sounds.c

index f127263674228fdf1fa5c8368f160ad606c85c75..e51218c31063253215d066e02e437806eb7737c5 100644 (file)
@@ -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 */