address a static analyzer complaint

mthrowu.c: In function ‘hit_bars’:
  mthrowu.c:1419:25: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  1419 |            static enum sound_effect_entries se[] SOUNDLIBONLY = {
  mthrowu.c:1419:46: warning: unused variable ‘se’ [-Wunused-variable]
  1419 |            static enum sound_effect_entries se[] SOUNDLIBONLY = {
This commit is contained in:
nhmall
2025-08-31 10:30:23 -04:00
parent 6f5aba00cd
commit 7e44aad627

View File

@@ -1416,7 +1416,7 @@ hit_bars(
}
} else {
if (!Deaf) {
static enum sound_effect_entries se[] SOUNDLIBONLY = {
static enum sound_effect_entries se[] = {
se_zero_invalid,
se_bars_whang, se_bars_whap, se_bars_flapp,
se_bars_clink, se_bars_clonk
@@ -1436,6 +1436,7 @@ hit_bars(
Soundeffect(se[bsindx], 100);
pline("%s!", barsounds[bsindx]);
nhUse(se[bsindx]);
}
if (!(harmless_missile(otmp) || is_flimsy(otmp)))
noise = 4 * 4;