From 694fea1076f01af3e64e7bd2bc9f3e479ba9f2de Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 31 Oct 2022 13:29:08 -0400 Subject: [PATCH] omdump declaration ..\src\allmain.c(1061): warning C4221: nonstandard extension used: 'ed': cannot be initialized using address of automatic variable 'omdump' ..\src\allmain.c(1056): note: see declaration of 'omdump' Resolves #916 --- src/allmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmain.c b/src/allmain.c index bf771cd17..1bef0d7c6 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -1053,7 +1053,7 @@ dump_enums(void) static const char *const titles[NUM_ENUM_DUMPS] = { "monnums", "objects_nums" , "misc_object_nums" }; - struct enum_dump omdump[] = { + static struct enum_dump omdump[] = { { LAST_GEM, "LAST_GEM" }, { NUM_GLASS_GEMS, "NUM_GLASS_GEMS" }, { MAXSPELL, "MAXSPELL" },