From: nethack.allison Date: Thu, 16 Dec 2004 00:08:41 +0000 (+0000) Subject: static placement warning X-Git-Tag: MOVE2GIT~1393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bc23ab484b81fa987e4d89bc9e48998dd4d0bd4;p=nethack static placement warning complained that his compiler was giving these two warnings: weapon.c:835: warning: `static' is not at beginning of declaration version.c:132: warning: `static' is not at beginning of declaration --- diff --git a/src/version.c b/src/version.c index 1e9a3a5fc..4fdc9c851 100644 --- a/src/version.c +++ b/src/version.c @@ -130,7 +130,7 @@ void store_version(fd) int fd; { - const static struct version_info version_data = { + static const struct version_info version_data = { VERSION_NUMBER, VERSION_FEATURES, VERSION_SANITY1, VERSION_SANITY2, VERSION_SANITY3 }; diff --git a/src/weapon.c b/src/weapon.c index a9c3985cc..d9202a11b 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -850,7 +850,7 @@ int skill; P_NAME(skill)); } -const static struct skill_range { +static const struct skill_range { short first, last; const char *name; } skill_ranges[] = {