]> granicus.if.org Git - nethack/commitdiff
static placement warning
authornethack.allison <nethack.allison>
Thu, 16 Dec 2004 00:08:41 +0000 (00:08 +0000)
committernethack.allison <nethack.allison>
Thu, 16 Dec 2004 00:08:41 +0000 (00:08 +0000)
<Someone> 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

src/version.c
src/weapon.c

index 1e9a3a5fca6725d6f991416d09a40773aae366da..4fdc9c851bb3e6f33a10ac5a36aaae2d3d863210 100644 (file)
@@ -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
        };
index a9c3985ccf40acccf20422cac6e7f75aa46a90e7..d9202a11b711f0f304896d02753cd3de0f89fa3c 100644 (file)
@@ -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[] = {