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:
@@ -1481,7 +1481,11 @@ const glyph_info nul_glyphinfo = {
|
|||||||
extern glyph_map glyphmap[MAX_GLYPH]; /* from tile.c */
|
extern glyph_map glyphmap[MAX_GLYPH]; /* from tile.c */
|
||||||
#else
|
#else
|
||||||
glyph_map glyphmap[MAX_GLYPH] = {
|
glyph_map glyphmap[MAX_GLYPH] = {
|
||||||
{ 0U, { 0, 0}, 0, 0 }
|
{ 0U, { 0, 0}, 0, 0
|
||||||
|
#ifdef ENHANCED_SYMBOLS
|
||||||
|
, 0
|
||||||
|
#endif
|
||||||
|
}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user