-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I have tried to compile Wander in an arm device with gcc version 4.9.2 and when running Wander, first descriptions appears and exits with message:
Non-existent loc/state 1/0
compiling with -Wall shows:
$ gcc wand1.c wand2.c wandglb.c wandsys.c -o wander -Wall
wand1.c: In function ‘carry_out’:
wand1.c:281:7: warning: implicit declaration of function ‘wseek’ [-Wimplicit-function-declaration]
wseek(ap->a_msgfp, ap->a_msgaddr, 0);
^
wand1.c: In function ‘setup’:
wand1.c:632:2: warning: implicit declaration of function ‘signal’ [-Wimplicit-function-declaration]
signal(1, quit);
^
wand1.c: In function ‘get_files’:
wand1.c:912:3: warning: implicit declaration of function ‘wclose’ [-Wimplicit-function-declaration]
wclose(mfp);
^
wand1.c: At top level:
wand1.c:12:17: warning: ‘whatwand’ defined but not used [-Wunused-variable]
static char *whatwand = "@(#)wand1.c 1.6 2/23/85 -- (c) psl 1978";
^
wand1.c:14:17: warning: ‘wand_h’ defined but not used [-Wunused-variable]
static char *wand_h = H_SCCS;
^
wand2.c: In function ‘movchars’:
wand2.c:143:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = *from++) {
^
wand2.c: In function ‘msglin’:
wand2.c:360:2: warning: implicit declaration of function ‘wseek’ [-Wimplicit-function-declaration]
wseek(fp, addr, 0);
^
wand2.c: In function ‘save’:
wand2.c:399:2: warning: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
if ((fh = open(file, 1)) < 0 && (fh = creat(file, 0600)) < 0) {
^
wand2.c:399:2: warning: implicit declaration of function ‘creat’ [-Wimplicit-function-declaration]
wand2.c:415:2: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
param.p_time = time(0);
^
wand2.c:418:2: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
write(fh, ¶m, sizeof (struct paramstr));
^
wand2.c:429:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
close(fh);
^
wand2.c:390:10: warning: unused variable ‘sbufsize’ [-Wunused-variable]
int fh, sbufsize;
^
wand2.c: In function ‘restore’:
wand2.c:453:2: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
i = read(fh, ¶m, sizeof (struct paramstr));
^
wand2.c:438:6: warning: unused variable ‘then’ [-Wunused-variable]
int then, diff, i, fh;
^
wand2.c: In function ‘monsav’:
wand2.c:534:2: warning: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
unlink(tmonfil);
^
wand2.c:540:2: warning: implicit declaration of function ‘lseek’ [-Wimplicit-function-declaration]
lseek(pmfh, (long) 0, 2);
^
wand2.c: In function ‘msgfmt’:
wand2.c:583:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = *sp++) {
^
wand2.c:575:11: warning: unused variable ‘xp’ [-Wunused-variable]
/****/int xp;
^
wand2.c: In function ‘getlin’:
wand2.c:720:2: warning: implicit declaration of function ‘wgetc’ [-Wimplicit-function-declaration]
for (cp = cbp; (c = wgetc(ifp)) != EOF; ) {
^
wand2.c: In function ‘cpy’:
wand2.c:832:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (*tp++ = *fp++);
^
wand2.c: At top level:
wand2.c:10:14: warning: ‘whatwand’ defined but not used [-Wunused-variable]
static char *whatwand = "@(#)wand2.c 1.4 2/23/85 -- (c) psl 1978";
^
wand2.c:12:14: warning: ‘wand_h’ defined but not used [-Wunused-variable]
static char *wand_h = H_SCCS;
^
wandglb.c:31:2: warning: missing braces around initializer [-Wmissing-braces]
listunused, 0, 0, MAXWRDS, /* hopefully nothing matches this */
^
wandglb.c:31:2: warning: (near initialization for ‘wrds[0]’) [-Wmissing-braces]
wandglb.c:74:2: warning: missing braces around initializer [-Wmissing-braces]
"CUR_LOC", 0, 0, CUR_LOC,
^
wandglb.c:74:2: warning: (near initialization for ‘spvars[0]’) [-Wmissing-braces]
wandsys.c:10:20: warning: "/*" within comment [-Wcomment]
/*#define NOFTELL /* uncomment this for systems without tell() */
^
wandsys.c:48:1: warning: return type defaults to ‘int’ [-Wreturn-type]
wseek(fp, addr, mode) /* interface to fseek() */
^
wandsys.c:68:1: warning: return type defaults to ‘int’ [-Wreturn-type]
wgetc(fp) /* interface to getc() */
^
wandsys.c:100:1: warning: return type defaults to ‘int’ [-Wreturn-type]
wclose(fp) /* interface to fclose() */
^
wandsys.c:15:17: warning: ‘whatwand’ defined but not used [-Wunused-variable]
static char *whatwand = "@(#)wandsys.c 1.1 with ftell() 2/22/84 -- (c) psl";
^
wandsys.c:17:17: warning: ‘wand_h’ defined but not used [-Wunused-variable]
static char *wand_h = H_SCCS;
^
Any idea how to solve this?
Metadata
Metadata
Assignees
Labels
No labels