get rid of a couple of warnings if -Wassign-enum is used

symbols.c:429:7: warning: integer constant not in range of enumerated type 'enum symparse_range' [-Wassign-enum]
  429 |     { 0, 0, (const char *) 0 } /* fence post */
      |       ^
windows.c:1765:32: warning: integer constant not in range of enumerated type 'enum from_core_requests' [-Wassign-enum]
 1765 |                              { 0, 0, { NO_COLOR, ATR_NONE }}};
      |                                ^
This commit is contained in:
nhmall
2024-03-15 16:24:49 -04:00
parent 79648c6ce2
commit 3b75501937
3 changed files with 3 additions and 1 deletions

View File

@@ -426,7 +426,7 @@ const struct symparse loadsyms[] = {
{ SYM_OTH, SYM_INVISIBLE + SYM_OFF_X, "S_invisible" },
{ SYM_OTH, SYM_PET_OVERRIDE + SYM_OFF_X, "S_pet_override" },
{ SYM_OTH, SYM_HERO_OVERRIDE + SYM_OFF_X, "S_hero_override" },
{ 0, 0, (const char *) 0 } /* fence post */
{ SYM_INVALID, 0, (const char *) 0 } /* fence post */
};
boolean