more lint (trunk only)
The one `anything any' that was triggering a warning was shadowing another `anything any' in the same function; no need to rename it, just remove the unnecessary declaration. Also, mark the couple of arrays with initializers that I'd noticed as static instead of letting them default to auto. The abil_to_spfx()::abil2spfx[] one might need to be redone in code as a switch if some compilers/linkers have trouble initializing it.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)artifact.c 3.5 2008/01/19 */
|
||||
/* SCCS Id: @(#)artifact.c 3.5 2008/02/19 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1584,7 +1584,7 @@ STATIC_OVL unsigned long
|
||||
abil_to_spfx(abil)
|
||||
long *abil;
|
||||
{
|
||||
struct abil2spfx_tag {
|
||||
static const struct abil2spfx_tag {
|
||||
long *abil;
|
||||
unsigned long spfx;
|
||||
} abil2spfx[] = {
|
||||
|
||||
Reference in New Issue
Block a user