Fix a few compiler (clang) warnings.

This commit is contained in:
Sean Hunt
2015-02-16 00:23:48 -05:00
committed by Pasi Kallinen
parent e1e55c31c7
commit 01756b33fa
3 changed files with 3 additions and 2 deletions

View 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 */

View 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);

View 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;