fix github issue #346 - duplicate 'head_engr' defs

Post-3.6.x issue.  head_engr has been defined in engrave.c for ages
but the definition was relatively recently duplicated in decl.c.
gcc 10 defaults to more rigorous checking (-fno-common) and complained
about the duplicate.  Remove the original definition from engrave.c.

Fixes #346
This commit is contained in:
PatR
2020-05-18 11:46:23 -07:00
parent ce4658abd6
commit 82ccfaa3ac
2 changed files with 5 additions and 4 deletions

View File

@@ -1,11 +1,10 @@
/* NetHack 3.6 engrave.c $NHDT-Date: 1570318925 2019/10/05 23:42:05 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.75 $ */
/* NetHack 3.6 engrave.c $NHDT-Date: 1589827569 2020/05/18 18:46:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.97 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
struct engr *head_engr;
static const char *NDECL(blengr);
char *