]> granicus.if.org Git - nethack/commitdiff
suppress one more warning
authornhmall <nhmall@nethack.org>
Wed, 8 Feb 2023 18:07:37 +0000 (13:07 -0500)
committernhmall <nhmall@nethack.org>
Wed, 8 Feb 2023 18:07:37 +0000 (13:07 -0500)
src/music.c

index 93ef8179ce2c1ca1456c6768a242adc0e367dc8b..b6c6179b15e5e24911b2c1d33412e51bb20d50fb 100644 (file)
@@ -496,7 +496,8 @@ do_improvisation(struct obj* instr)
     int damage, mode, do_spec = !(Stunned || Confusion);
     struct obj itmp;
     boolean mundane = FALSE, same_old_song = FALSE;
-    static char my_goto_song[] = {'C', '\0'}, *improvisation = my_goto_song;
+    static char my_goto_song[] = {'C', '\0'},
+                *improvisation SOUNDLIBONLY = my_goto_song;
 
     itmp = *instr;
     itmp.oextra = (struct oextra *) 0; /* ok on this copy as instr maintains