fix warning when ENHANCED_SYMBOLS is not defined

display.c:1484:23: warning: excess elements in struct initializer [-Wexcess-initializers]
    { 0U, { 0, 0}, 0, 0 }
                      ^
1 warning generated.
This commit is contained in:
nhmall
2022-10-25 13:59:19 -04:00
parent 1c24f9f143
commit 88cc5246b4

View File

@@ -1481,7 +1481,11 @@ const glyph_info nul_glyphinfo = {
extern glyph_map glyphmap[MAX_GLYPH]; /* from tile.c */
#else
glyph_map glyphmap[MAX_GLYPH] = {
{ 0U, { 0, 0}, 0, 0 }
{ 0U, { 0, 0}, 0, 0
#ifdef ENHANCED_SYMBOLS
, 0
#endif
}
};
#endif