diff --git a/src/cmd.c b/src/cmd.c index 655f15794..067dfd811 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -4059,14 +4059,14 @@ RESTORE_WARNING_FORMAT_NONLITERAL static int wiz_display_macros(void) { + static const char display_issues[] = "Display macro issues:"; char buf[BUFSZ]; winid win; - int test, trouble = 0, no_glyph = NO_GLYPH, max_glyph = MAX_GLYPH; - static const char *const display_issues = "Display macro issues:"; + int glyph, test, trouble = 0, no_glyph = NO_GLYPH, max_glyph = MAX_GLYPH; win = create_nhwindow(NHW_TEXT); - for (int glyph = 0; glyph < MAX_GLYPH; ++glyph) { + for (glyph = 0; glyph < MAX_GLYPH; ++glyph) { /* glyph_is_cmap / glyph_to_cmap() */ if (glyph_is_cmap(glyph)) { test = glyph_to_cmap(glyph);