From: nhmall Date: Thu, 10 Mar 2022 14:15:04 +0000 (-0500) Subject: warning fix artifact.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=274984480c06c40eeb12e949d9bfcfd351ccbd45;p=nethack warning fix artifact.c src/artifact.c(65): warning C4132: 'zero_artiexist': const object should be initialized --- diff --git a/src/artifact.c b/src/artifact.c index 3aab1b5b7..7ef079dab 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -62,7 +62,7 @@ static xchar artidisco[NROFARTIFACTS]; * bulk re-init if game restart ever gets implemented. They are saved * and restored but that is done through this file so they can be local. */ -static const struct arti_info zero_artiexist; /* all bits zero */ +static const struct arti_info zero_artiexist = {0}; /* all bits zero */ static void hack_artifacts(void); static boolean attacks(int, struct obj *);