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:
@@ -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 */ \
|
||||
|
||||
Reference in New Issue
Block a user