quiet new warningis following change to UNDEFINED_ROLE macro

Commit 75104c69 modified the UNDEFINED_ROLE macro and caused a
new pair of warnings to appear.

decl.c:831:5: warning: missing field 'f' initializer [-Wmissing-field-initializers]
    UNDEFINED_ROLE, /* urole */
    ^
../include/hack.h:1018:14: note: expanded from macro 'UNDEFINED_ROLE'
      { NULL }, { { NULL } },                   \
             ^
decl.c:831:5: warning: missing field 'f' initializer [-Wmissing-field-initializers]
../include/hack.h:1018:26: note: expanded from macro 'UNDEFINED_ROLE'
      { NULL }, { { NULL } },                   \
                         ^
2 warnings generated.
This commit is contained in:
nhmall
2023-11-28 09:00:40 -05:00
parent c8f4ad907f
commit 2cf5f725e8

View File

@@ -1015,7 +1015,7 @@ typedef struct {
#define UNDEFINED_ROLE \
{ \
/* role name, set of rank names */ \
{ NULL }, { { NULL } }, \
{ NULL, NULL }, { { NULL, NULL } }, \
/* strings: pantheon deity names */ \
NULL, NULL, NULL, \
/* file code, quest home+goal names */ \