]> granicus.if.org Git - nethack/commitdiff
initoptions warning following its split (trunk only)
authornethack.allison <nethack.allison>
Sat, 26 Jan 2008 17:00:18 +0000 (17:00 +0000)
committernethack.allison <nethack.allison>
Sat, 26 Jan 2008 17:00:18 +0000 (17:00 +0000)
..\src\options.c(565) : warning C4101: 'opts' : unreferenced local variable
The code in initoptions_init() that uses opts seems to now be isolated to
UNIX and VMS.

src/options.c

index f77e5503da362b198c4e5dec9f6ad63abe9d402b..f204f864a4866cf67053ebcefca82005c132cb94 100644 (file)
@@ -561,7 +561,7 @@ initoptions(){
 void
 initoptions_init()
 {
-#ifndef MAC
+#if defined(UNIX) || defined(VMS)
        char *opts;
 #endif
        int i;