]> granicus.if.org Git - nethack/commitdiff
Fix a few compiler (clang) warnings.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Mon, 16 Feb 2015 05:23:48 +0000 (00:23 -0500)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Mon, 16 Feb 2015 05:23:48 +0000 (00:23 -0500)
include/decl.h
src/botl.c
sys/share/unixtty.c

index 2e58cc8b2f6edb1037dac45c9bfb4384068bc65e..e31d76bdb2c31bb49b675571f020322d00b0ef36 100644 (file)
@@ -341,7 +341,7 @@ E nhwchar toplines[];
 #define verbalize1(cstr) verbalize("%s", cstr)
 #define You_hear1(cstr) You_hear("%s", cstr)
 #define Sprintf1(buf, cstr) Sprintf(buf, "%s", cstr)
-#define panic1(cstr) panic(cstr)
+#define panic1(cstr) panic("%s", cstr)
 
 #ifndef TCAP_H
 E struct tc_gbl_data { /* also declared in tcap.h */
index d67a8a98b71d22b4081659de4fb9bd4d3d071efc..7ad7224b17a0b40ed3db4d32ce3928f1106e4730 100644 (file)
@@ -1353,7 +1353,7 @@ genl_status_init()
                vals[i] = (char *)alloc(MAXCO);
                *vals[i] = '\0';
                activefields[i] = FALSE;
-               fieldfmt[i] = FALSE;
+               fieldfmt[i] = (const char *)0;
        }
        /* Use a window for the genl version; backward port compatibility */
        WIN_STATUS = create_nhwindow(NHW_STATUS);
index c277890ee95a13e82b4474acb16ffc80d886740e..f691d5a6fc5c5bbb6bc300aef4da0a261a04c385 100644 (file)
@@ -380,6 +380,7 @@ init_sco_cons()
 
 #ifdef __linux__               /* via Jesse Thilo and Ben Gertzfield */
 # include <sys/vt.h>
+# include <sys/ioctl.h>
 
 int linux_flag_console = 0;