From 2cf5f725e830a2cc561134060e73148e3286385c Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 28 Nov 2023 09:00:40 -0500 Subject: [PATCH] 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. --- include/hack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hack.h b/include/hack.h index 6912f3066..9ed519431 100644 --- a/include/hack.h +++ b/include/hack.h @@ -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 */ \