=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for mg2a-1.11nb1 cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c basic.c In file included from basic.c:10: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ basic.c:18:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotobol(f, n) ^~~~~~~ basic.c:31:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backchar(f, n) ^~~~~~~~ basic.c:36:20: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] if (n < 0) return forwchar(f, -n); ^ basic.c:57:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotoeol(f, n) ^~~~~~~ basic.c:70:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwchar(f, n) ^~~~~~~~ basic.c:96:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotobob(f, n) ^~~~~~~ basic.c:98:9: warning: implicit declaration of function 'setmark' is invalid in C99 [-Wimplicit-function-declaration] (VOID) setmark(f, n) ; ^ basic.c:110:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotoeob(f, n) ^~~~~~~ basic.c:127:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwline(f, n) ^~~~~~~~ basic.c:132:10: warning: implicit declaration of function 'backline' is invalid in C99 [-Wimplicit-function-declaration] return backline(f|FFRAND, -n); ^ basic.c:156:20: warning: implicit declaration of function 'getgoal' is invalid in C99 [-Wimplicit-function-declaration] curwp->w_doto = getgoal(dlp); ^ basic.c:169:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backline(f, n) ^~~~~~~~ basic.c:196:12: warning: implicit declaration of function 'getcolpos' is invalid in C99 [-Wimplicit-function-declaration] curgoal = getcolpos() - 1; /* Get the position. */ ^ basic.c:207:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getgoal(dlp) register LINE *dlp; { ^~~~~~~ basic.c:244:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwpage(f, n) ^~~~~~~~ basic.c:254:10: warning: implicit declaration of function 'backpage' is invalid in C99 [-Wimplicit-function-declaration] return backpage(f|FFRAND, -n); ^ basic.c:281:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backpage(f, n) ^~~~~~~~ basic.c:339:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] pagenext(f, n) ^~~~~~~~ basic.c:348:9: warning: implicit declaration of function 'nextwind' is invalid in C99 [-Wimplicit-function-declaration] (VOID) nextwind(f, n); ^ basic.c:371:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setmark(f, n) ^~~~~~~ basic.c:386:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] swapmark(f, n) ^~~~~~~~ basic.c:413:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotoline(f, n) ^~~~~~~~ basic.c:421:10: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ereply("Goto line: ", buf, sizeof(buf))) != TRUE) ^ basic.c:423:7: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] n = atoi(buf); ^ 25 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c dir.c In file included from dir.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ dir.c:21:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dirinit() ^~~~~~~ dir.c:25:3: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] panic("Can't get current directory!"); ^ dir.c:26:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ dir.c:32:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] changedir(f, n) ^~~~~~~~~ dir.c:37:9: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ereply("Change default directory: ", bufc, NPAT)) != TRUE) ^ dir.c:41:6: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] if (chdir(bufc) == -1) { ^ dir.c:57:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] showcwdir(f, n) ^~~~~~~~~ 8 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c dired.c In file included from dired.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ dired.c:11:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] dired(f, n) ^~~~~ dired.c:18:8: warning: implicit declaration of function 'eread' is invalid in C99 [-Wimplicit-function-declaration] if(eread("Dired: ", dirname, NFILEN, EFNEW | EFCR) == ABORT) ^ dired.c:22:12: warning: implicit declaration of function 'showbuffer' is invalid in C99 [-Wimplicit-function-declaration] return showbuffer(bp, curwp, WFHARD | WFMODE); ^ dired.c:26:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_otherwindow(f, n) ^~~~~~~~~~~~~ dired.c:44:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_del(f, n) ^~~~~ dired.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_undel(f, n) ^~~~~~~ dired.c:63:22: warning: implicit declaration of function 'd_undelbak' is invalid in C99 [-Wimplicit-function-declaration] if(n < 0) return d_undelbak(f, -n); ^ dired.c:76:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_undelbak(f, n) ^~~~~~~~~~ dired.c:92:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_findfile(f, n) ^~~~~~~~~~ dired.c:100:13: warning: implicit declaration of function 'd_makename' is invalid in C99 [-Wimplicit-function-declaration] if((s = d_makename(curwp->w_dotp, fname)) == ABORT) return FALSE; ^ dired.c:105:12: warning: implicit declaration of function 'readin' is invalid in C99 [-Wimplicit-function-declaration] return readin(fname); ^ dired.c:109:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_ffotherwindow(f, n) ^~~~~~~~~~~~~~~ dired.c:128:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_expunge(f, n) ^~~~~~~~~ dired.c:143:10: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] if(unlink(fname) < 0) { ^ dired.c:149:10: warning: implicit declaration of function 'rmdir' is invalid in C99 [-Wimplicit-function-declaration] if(unlinkdir(fname) < 0) { ^ ./sysdef.h:27:23: note: expanded from macro 'unlinkdir' #define unlinkdir(fn) rmdir(fn) /* unlink directory */ ^ dired.c:163:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_copy(f, n) ^~~~~~ dired.c:175:12: warning: implicit declaration of function 'copy' is invalid in C99 [-Wimplicit-function-declaration] return copy(frname, toname) >= 0; ^ dired.c:179:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] d_rename(f, n) ^~~~~~~~ 19 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c file.c In file included from file.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ file.c:20:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fileinsert(f, n) ^~~~~~~~~~ file.c:25:9: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ereply("Insert file: ", fname, NFILEN)) != TRUE) ^ file.c:27:9: warning: implicit declaration of function 'insertfile' is invalid in C99 [-Wimplicit-function-declaration] return insertfile(adjustname(fname), (char *) NULL); ^ file.c:40:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] filevisit(f, n) ^~~~~~~~~ file.c:52:6: warning: implicit declaration of function 'showbuffer' is invalid in C99 [-Wimplicit-function-declaration] if (showbuffer(bp, curwp, WFHARD) != TRUE) return FALSE; ^ file.c:54:10: warning: implicit declaration of function 'readin' is invalid in C99 [-Wimplicit-function-declaration] return readin(adjf); /* Read it in. */ ^ file.c:63:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] poptofile(f, n) ^~~~~~~~~ file.c:130:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] readin(fname) char *fname; { ^~~~~~ file.c:134:6: warning: implicit declaration of function 'bclear' is invalid in C99 [-Wimplicit-function-declaration] if (bclear(curbp) != TRUE) /* Might be old. */ ^ file.c:159:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] insertfile(fname, newname) char fname[], newname[]; { ^~~~~~~~~~ file.c:173:9: warning: implicit declaration of function 'ffropen' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ffropen(fname)) == FIOERR) /* Hard file open. */ ^ file.c:183:9: warning: implicit declaration of function 'lnewline' is invalid in C99 [-Wimplicit-function-declaration] (VOID) lnewline(); ^ file.c:191:12: warning: implicit declaration of function 'ffgetline' is invalid in C99 [-Wimplicit-function-declaration] while ((s=ffgetline(line, NLINE, &nbytes)) != FIOERR) { ^ file.c:216:13: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' if((cp = malloc((unsigned)(nbytes + NLINE))) == NULL) { ^ file.c:216:13: note: please include the header or explicitly provide a declaration for 'malloc' file.c:220:19: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] if(nbytes) free(cp2); ^ file.c:256:9: warning: implicit declaration of function 'ffclose' is invalid in C99 [-Wimplicit-function-declaration] (VOID) ffclose(); /* Ignore errors. */ ^ file.c:264:9: warning: implicit declaration of function 'ldelnewline' is invalid in C99 [-Wimplicit-function-declaration] (VOID) ldelnewline(); ^ file.c:346:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] filewrite(f, n) ^~~~~~~~~ file.c:355:9: warning: implicit declaration of function 'writeout' is invalid in C99 [-Wimplicit-function-declaration] if ((s=writeout(curbp, adjfname)) == TRUE) { ^ file.c:379:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] filesave(f, n) ^~~~~~~~ file.c:381:9: warning: implicit declaration of function 'buffsave' is invalid in C99 [-Wimplicit-function-declaration] return buffsave(curbp); ^ file.c:393:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] buffsave(bp) BUFFER *bp; { ^~~~~~~~ file.c:451:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] writeout(bp, fn) register BUFFER *bp; char *fn; { ^~~~~~~~ file.c:548:19: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] if (0 != system(cmd)) printf(".orig backup failed: '%s'\n", cmd); ^ file.c:572:72: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat] sprintf(cmd, "/bin/cp %s %s%s-@%ld", fn, dir_name, file_name_no_dir, time(NULL)); ~~~ ^~~~~~~~~~ %lld file.c:577:72: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat] sprintf(cmd, "/usr/bin/touch %s%s-@%ld", dir_name, file_name_no_dir, time(NULL)); ~~~ ^~~~~~~~~~ %lld file.c:582:9: warning: implicit declaration of function 'ffwopen' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ffwopen(fn)) != FIOSUC) /* Open writes message. */ ^ file.c:584:6: warning: implicit declaration of function 'ffputbuf' is invalid in C99 [-Wimplicit-function-declaration] s = ffputbuf(bp); ^ 29 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c line.c In file included from line.c:20: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ line.c:60:19: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' if((lp = (LINE *)malloc((unsigned)size)) == NULL) { ^ line.c:60:19: note: please include the header or explicitly provide a declaration for 'malloc' line.c:127:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *) lp); ^ line.c:168:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] linsert(n, c) ^~~~~~~ line.c:264:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] lnewline() ^~~~~~~~ line.c:317:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ldelete(n, kflag) RSIZE n; { ^~~~~~~ line.c:343:8: warning: implicit declaration of function 'ldelnewline' is invalid in C99 [-Wimplicit-function-declaration] if (ldelnewline() == FALSE ^ line.c:344:24: warning: implicit declaration of function 'kinsert' is invalid in C99 [-Wimplicit-function-declaration] || (kflag!=KNONE && kinsert('\n', kflag)==FALSE)) ^ line.c:354:9: warning: implicit declaration of function 'kgrow' is invalid in C99 [-Wimplicit-function-declaration] if (kgrow(FALSE) == FALSE) return FALSE; ^ line.c:362:30: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] } else if (kflag != KNONE) panic("broken ldelete call"); ^ line.c:396:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ldelnewline() { ^~~~~~~~~~~ line.c:461:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] lreplace(plen, st, f) ^~~~~~~~ line.c:477:9: warning: implicit declaration of function 'backchar' is invalid in C99 [-Wimplicit-function-declaration] (VOID) backchar(FFARG | FFRAND, (int) plen); ^ line.c:517:12: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] (VOID) forwchar(FFRAND, 1); ^ line.c:559:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] kinsert(c, dir) { ^~~~~~~ line.c:575:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] kgrow(back) { ^~~~~ line.c:605:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] kremove(n) { ^~~~~~~ 17 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c match.c In file included from match.c:14: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ match.c:42:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] showmatch(f, n) ^~~~~~~~~ match.c:48:12: warning: implicit declaration of function 'selfinsert' is invalid in C99 [-Wimplicit-function-declaration] if ((s = selfinsert(FFRAND, 1)) != TRUE) ^ match.c:51:4: warning: implicit declaration of function 'ttbeep' is invalid in C99 [-Wimplicit-function-declaration] ttbeep(); ^ match.c:64:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static balance() ~~~~~~ ^ match.c:162:3: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(1); /* wait a bit */ ^ 6 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c paragraph.c In file included from paragraph.c:5: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ paragraph.c:16:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotobop(f, n) ^~~~~~~ paragraph.c:19:10: warning: implicit declaration of function 'gotoeop' is invalid in C99 [-Wimplicit-function-declaration] return gotoeop(f, -n); ^ paragraph.c:25:10: warning: implicit declaration of function 'backchar' is invalid in C99 [-Wimplicit-function-declaration] while (backchar(FFRAND, 1) && !inword()) {} ^ paragraph.c:25:34: warning: implicit declaration of function 'inword' is invalid in C99 [-Wimplicit-function-declaration] while (backchar(FFRAND, 1) && !inword()) {} ^ paragraph.c:47:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gotoeop(f, n) ^~~~~~~ paragraph.c:56:9: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] while(forwchar(FFRAND, 1) && !inword()) {} ^ paragraph.c:84:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fillpara(f, n) ^~~~~~~~ paragraph.c:101:10: warning: implicit declaration of function 'lnewline' is invalid in C99 [-Wimplicit-function-declaration] (VOID) lnewline(); ^ paragraph.c:118:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (eolflag=(curwp->w_doto == llength(curwp->w_dotp))) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ paragraph.c:118:14: note: place parentheses around the assignment to silence this warning if (eolflag=(curwp->w_doto == llength(curwp->w_dotp))) { ^ ( ) paragraph.c:118:14: note: use '==' to turn this assignment into an equality comparison if (eolflag=(curwp->w_doto == llength(curwp->w_dotp))) { ^ == paragraph.c:126:7: warning: implicit declaration of function 'ldelete' is invalid in C99 [-Wimplicit-function-declaration] if (ldelete((RSIZE) 1, KNONE) == FALSE && !eopflag) ^ paragraph.c:157:13: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] (VOID) linsert(1, ' '); ^ paragraph.c:191:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] killpara(f, n) ^~~~~~~~ paragraph.c:209:17: warning: implicit declaration of function 'killregion' is invalid in C99 [-Wimplicit-function-declaration] if ((status = killregion(FFRAND, 1)) != TRUE) ^ paragraph.c:223:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fillword(f, n) ^~~~~~~~ paragraph.c:229:34: warning: implicit declaration of function 'selfinsert' is invalid in C99 [-Wimplicit-function-declaration] if (i == curwp->w_doto) return selfinsert(f, n) ; ^ paragraph.c:256:9: warning: implicit declaration of function 'delwhite' is invalid in C99 [-Wimplicit-function-declaration] (VOID) delwhite(FFRAND, 1); ^ paragraph.c:266:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setfillcol(f, n) { ^~~~~~~~~~ 18 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c random.c In file included from random.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ random.c:20:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] showcpos(f, n) ^~~~~~~~ random.c:56:43: warning: implicit declaration of function 'getcolpos' is invalid in C99 [-Wimplicit-function-declaration] cbyte, cbyte, cchar, ratio, cline, row, getcolpos()); ^ random.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getcolpos() { ^~~~~~~~~ random.c:90:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] twiddle(f, n) ^~~~~~~ random.c:120:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] openline(f, n) ^~~~~~~~ random.c:131:7: warning: implicit declaration of function 'lnewline' is invalid in C99 [-Wimplicit-function-declaration] s = lnewline(); ^ random.c:134:7: warning: implicit declaration of function 'backchar' is invalid in C99 [-Wimplicit-function-declaration] s = backchar(f | FFRAND, n); /* of them all. */ ^ random.c:149:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] newline(f, n) ^~~~~~~ random.c:160:11: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] if ((s=forwchar(FFRAND, 1)) != TRUE) ^ random.c:179:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] deblank(f, n) ^~~~~~~ random.c:196:9: warning: implicit declaration of function 'ldelete' is invalid in C99 [-Wimplicit-function-declaration] return ldelete((RSIZE)nld, KNONE); ^ random.c:202:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] justone(f, n) { ^~~~~~~ random.c:203:9: warning: implicit declaration of function 'delwhite' is invalid in C99 [-Wimplicit-function-declaration] (VOID) delwhite(f, n); ^ random.c:204:9: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] return linsert(1, ' '); ^ random.c:210:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] delwhite(f, n) ^~~~~~~~ random.c:243:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] indent(f, n) ^~~~~~ random.c:282:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwdel(f, n) ^~~~~~~ random.c:285:10: warning: implicit declaration of function 'backdel' is invalid in C99 [-Wimplicit-function-declaration] return backdel(f | FFRAND, -n); ^ random.c:302:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backdel(f, n) ^~~~~~~ random.c:330:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] killline(f, n) { ^~~~~~~~ random.c:395:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] yank(f, n) ^~~~ random.c:408:13: warning: implicit declaration of function 'kremove' is invalid in C99 [-Wimplicit-function-declaration] while ((c=kremove(i)) >= 0) { ^ 23 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c region.c In file included from region.c:9: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ region.c:17:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] killregion(f, n) ^~~~~~~~~~ region.c:22:9: warning: implicit declaration of function 'getregion' is invalid in C99 [-Wimplicit-function-declaration] if ((s=getregion(®ion)) != TRUE) ^ region.c:29:10: warning: implicit declaration of function 'ldelete' is invalid in C99 [-Wimplicit-function-declaration] return (ldelete(region.r_size, KFORW)); ^ region.c:39:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] copyregion(f, n) ^~~~~~~~~~ region.c:56:11: warning: implicit declaration of function 'kinsert' is invalid in C99 [-Wimplicit-function-declaration] if ((s=kinsert('\n', KFORW)) != TRUE) ^ region.c:77:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] lowerregion(f, n) ^~~~~~~~~~~ region.c:112:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] upperregion(f, n) ^~~~~~~~~~~ region.c:153:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getregion(rp) register REGION *rp; { ^~~~~~~~~ region.c:183:13: warning: implicit declaration of function 'setsize' is invalid in C99 [-Wimplicit-function-declaration] return (setsize(rp, ^ region.c:206:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setsize(rp, size) register REGION *rp; register RSIZE size; { ^~~~~~~ region.c:236:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] prefixregion(f, n) ^~~~~~~~~~~~ region.c:244:27: warning: implicit declaration of function 'setprefix' is invalid in C99 [-Wimplicit-function-declaration] if ((f == TRUE) && ((s = setprefix(FFRAND, 1)) != TRUE)) ^ region.c:261:10: warning: implicit declaration of function 'gotobol' is invalid in C99 [-Wimplicit-function-declaration] (VOID) gotobol(FFRAND, 1); ^ region.c:263:11: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] (VOID) linsert(1, *prefix); ^ region.c:264:10: warning: implicit declaration of function 'forwline' is invalid in C99 [-Wimplicit-function-declaration] (VOID) forwline(FFRAND, 1); ^ region.c:275:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] setprefix(f, n) ^~~~~~~~~ region.c:281:7: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] s = ereply("Prefix string: ",buf,sizeof buf); ^ 18 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c search.c In file included from search.c:11: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ search.c:52:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwsearch(f, n) ^~~~~~~~~~ search.c:56:9: warning: implicit declaration of function 'readpattern' is invalid in C99 [-Wimplicit-function-declaration] if ((s=readpattern("Search")) != TRUE) ^ search.c:58:6: warning: implicit declaration of function 'forwsrch' is invalid in C99 [-Wimplicit-function-declaration] if (forwsrch() == FALSE) { ^ search.c:74:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backsearch(f, n) ^~~~~~~~~~ search.c:80:6: warning: implicit declaration of function 'backsrch' is invalid in C99 [-Wimplicit-function-declaration] if (backsrch() == FALSE) { ^ search.c:95:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] searchagain(f, n) ^~~~~~~~~~~ search.c:120:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwisearch(f, n) ^~~~~~~~~~~ search.c:122:9: warning: implicit declaration of function 'isearch' is invalid in C99 [-Wimplicit-function-declaration] return isearch(SRCH_FORW); ^ search.c:130:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backisearch(f, n) ^~~~~~~~~~~ search.c:146:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] isearch(dir) { ^~~~~~~ search.c:174:15: warning: implicit declaration of function 'getkey' is invalid in C99 [-Wimplicit-function-declaration] switch (c = getkey(FALSE)) { ^ search.c:194:11: warning: implicit declaration of function 'ctrlg' is invalid in C99 [-Wimplicit-function-declaration] (VOID) ctrlg(FFRAND, 0); ^ search.c:210:11: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] (VOID) forwchar(FFRAND, 1); ^ search.c:213:12: warning: implicit declaration of function 'backchar' is invalid in C99 [-Wimplicit-function-declaration] (VOID) backchar(FFRAND, 1); ^ search.c:214:5: warning: implicit declaration of function 'ttbeep' is invalid in C99 [-Wimplicit-function-declaration] ttbeep(); ^ search.c:439:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] queryrepl(f, n) ^~~~~~~~~ search.c:454:9: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] if ((s=ereply("Query replace %s with: ",news, NPAT, pat)) == ABORT) ^ search.c:472:8: warning: implicit declaration of function 'lreplace' is invalid in C99 [-Wimplicit-function-declaration] if (lreplace((RSIZE) plen, news, f) == FALSE) ^ search.c:524:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwsrch() { ^~~~~~~~ search.c:574:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backsrch() { ^~~~~~~~ search.c:652:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] readpattern(prompt) char *prompt; { ^~~~~~~~~~~ 22 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c version.c version.c:15:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] showversion(f, n) ^~~~~~~~~~~ version.c:18:2: warning: implicit declaration of function 'ewprintf' is invalid in C99 [-Wimplicit-function-declaration] ewprintf(version); ^ 2 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c window.c In file included from window.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ window.c:17:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] reposition(f, n) ^~~~~~~~~~ window.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] refresh(f, n) ^~~~~~~ window.c:53:2: warning: implicit declaration of function 'ttresize' is invalid in C99 [-Wimplicit-function-declaration] ttresize(); ^ window.c:80:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] nextwind(f, n) ^~~~~~~~ window.c:130:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] onlywind(f, n) ^~~~~~~~ window.c:145:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *) wp); ^ window.c:179:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] splitwind(f, n) ^~~~~~~~~ window.c:192:22: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' if ((wp = (WINDOW *)malloc(sizeof(WINDOW))) == NULL) { ^ window.c:192:22: note: please include the header or explicitly provide a declaration for 'malloc' window.c:257:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] enlargewind(f, n) ^~~~~~~~~~~ window.c:264:10: warning: implicit declaration of function 'shrinkwind' is invalid in C99 [-Wimplicit-function-declaration] return shrinkwind(f, -n); ^ window.c:304:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] shrinkwind(f, n) ^~~~~~~~~~ window.c:354:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] delwind(f, n) ^~~~~~~ 13 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c word.c In file included from word.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ word.c:17:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] backword(f, n) ^~~~~~~~ word.c:19:20: warning: implicit declaration of function 'forwword' is invalid in C99 [-Wimplicit-function-declaration] if (n < 0) return forwword(f | FFRAND, -n); ^ word.c:20:6: warning: implicit declaration of function 'backchar' is invalid in C99 [-Wimplicit-function-declaration] if (backchar(FFRAND, 1) == FALSE) ^ word.c:23:10: warning: implicit declaration of function 'inword' is invalid in C99 [-Wimplicit-function-declaration] while (inword() == FALSE) { ^ word.c:32:9: warning: implicit declaration of function 'forwchar' is invalid in C99 [-Wimplicit-function-declaration] return forwchar(FFRAND, 1); ^ word.c:41:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] forwword(f, n) ^~~~~~~~ word.c:64:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] upperword(f, n) ^~~~~~~~~ word.c:94:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] lowerword(f, n) ^~~~~~~~~ word.c:126:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] capword(f, n) ^~~~~~~ word.c:165:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] delfword(f, n) ^~~~~~~~ word.c:194:10: warning: implicit declaration of function 'ldelete' is invalid in C99 [-Wimplicit-function-declaration] return (ldelete(size, KFORW)); ^ word.c:210:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] delbword(f, n) ^~~~~~~~ word.c:247:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] inword() { ^~~~~~ 14 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c buffer.c In file included from buffer.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ buffer.c:16:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] usebuffer(f, n) ^~~~~~~~~ buffer.c:25:5: warning: implicit declaration of function 'eread' is invalid in C99 [-Wimplicit-function-declaration] s=eread("Switch to buffer: ", bufn, NBUFN, EFNEW|EFBUF); ^ buffer.c:36:9: warning: implicit declaration of function 'showbuffer' is invalid in C99 [-Wimplicit-function-declaration] return showbuffer(bp, curwp, WFFORCE|WFHARD); ^ buffer.c:43:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] poptobuffer(f, n) ^~~~~~~~~~~ buffer.c:78:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] killbuffer(f, n) ^~~~~~~~~~ buffer.c:108:6: warning: implicit declaration of function 'bclear' is invalid in C99 [-Wimplicit-function-declaration] if (bclear(bp) != TRUE) return TRUE; ^ buffer.c:112:49: warning: comparison between pointer and integer ('int' and 'void *') if(showbuffer(bp1, wp, WFMODE|WFFORCE|WFHARD) != NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ buffer.c:118:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *) bp->b_linep); /* Release header line. */ ^ buffer.c:146:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] savebuffers(f, n) ^~~~~~~~~~~ buffer.c:148:6: warning: implicit declaration of function 'anycb' is invalid in C99 [-Wimplicit-function-declaration] if (anycb(f) == ABORT) return ABORT; ^ buffer.c:160:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] listbuffers(f, n) ^~~~~~~~~~~ buffer.c:200:6: warning: implicit declaration of function 'addline' is invalid in C99 [-Wimplicit-function-declaration] if (addline(blp, line) == FALSE) return NULL; ^ buffer.c:277:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] addline(bp, text) register BUFFER *bp; char *text; { ^~~~~~~ buffer.c:307:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] anycb(f) { ^~~~~ buffer.c:318:30: warning: implicit declaration of function 'eyorn' is invalid in C99 [-Wimplicit-function-declaration] if ((f == TRUE || (save = eyorn(prompt)) == TRUE) ^ buffer.c:319:8: warning: implicit declaration of function 'buffsave' is invalid in C99 [-Wimplicit-function-declaration] && buffsave(bp) == TRUE) { ^ buffer.c:342:9: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc(); ^ buffer.c:342:9: note: 'malloc' is a builtin with type 'void *(unsigned int)' buffer.c:403:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] bclear(bp) register BUFFER *bp; { ^~~~~~ buffer.c:409:8: warning: implicit declaration of function 'eyesno' is invalid in C99 [-Wimplicit-function-declaration] && (s=eyesno("Buffer modified; kill anyway")) != TRUE) ^ buffer.c:425:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] showbuffer(bp, wp, flags) register BUFFER *bp; register WINDOW *wp; { ^~~~~~~~~~ buffer.c:490:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] bufferinsert(f, n) ^~~~~~~~~~~~ buffer.c:521:8: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] if (linsert(1, lgetc(clp, clo)) == FALSE) ^ buffer.c:524:7: warning: implicit declaration of function 'newline' is invalid in C99 [-Wimplicit-function-declaration] if (newline(FFRAND, 1) == FALSE) /* fake newline */ ^ buffer.c:545:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] notmodified(f, n) ^~~~~~~~~~~ buffer.c:566:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] popbuftop(bp) ^~~~~~~~~ 26 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c display.c In file included from display.c:13: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ display.c:127:2: warning: implicit declaration of function 'ttopen' is invalid in C99 [-Wimplicit-function-declaration] ttopen(); ^ display.c:128:2: warning: implicit declaration of function 'ttinit' is invalid in C99 [-Wimplicit-function-declaration] ttinit(); ^ display.c:150:2: warning: implicit declaration of function 'ttcolor' is invalid in C99 [-Wimplicit-function-declaration] ttcolor(CTEXT); ^ display.c:151:2: warning: implicit declaration of function 'ttnowindow' is invalid in C99 [-Wimplicit-function-declaration] ttnowindow(); /* No scroll window. */ ^ display.c:152:2: warning: implicit declaration of function 'ttmove' is invalid in C99 [-Wimplicit-function-declaration] ttmove(nrow-1, 0); /* Echo line. */ ^ display.c:153:2: warning: implicit declaration of function 'tteeol' is invalid in C99 [-Wimplicit-function-declaration] tteeol(); ^ display.c:154:2: warning: implicit declaration of function 'tttidy' is invalid in C99 [-Wimplicit-function-declaration] tttidy(); ^ display.c:155:2: warning: implicit declaration of function 'ttflush' is invalid in C99 [-Wimplicit-function-declaration] ttflush(); ^ display.c:156:2: warning: implicit declaration of function 'ttclose' is invalid in C99 [-Wimplicit-function-declaration] ttclose(); ^ display.c:279:6: warning: implicit declaration of function 'typeahead' is invalid in C99 [-Wimplicit-function-declaration] if (typeahead()) return; ^ display.c:418:3: warning: implicit declaration of function 'tteeop' is invalid in C99 [-Wimplicit-function-declaration] tteeop(); ^ display.c:461:4: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] panic("Illegal screen size in update"); ^ display.c:565:4: warning: implicit declaration of function 'ttputc' is invalid in C99 [-Wimplicit-function-declaration] ttputc(*cp1++); ^ display.c:646:7: warning: implicit declaration of function 'vtputs' is invalid in C99 [-Wimplicit-function-declaration] n += vtputs("Mg: "); ^ display.c:671:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] vtputs(s) register char *s; { ^~~~~~ 16 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c echo.c In file included from echo.c:9: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ echo.c:34:2: warning: implicit declaration of function 'ttcolor' is invalid in C99 [-Wimplicit-function-declaration] ttcolor(CTEXT); ^ echo.c:35:2: warning: implicit declaration of function 'ttmove' is invalid in C99 [-Wimplicit-function-declaration] ttmove(nrow-1, 0); ^ echo.c:36:2: warning: implicit declaration of function 'tteeol' is invalid in C99 [-Wimplicit-function-declaration] tteeol(); ^ echo.c:37:2: warning: implicit declaration of function 'ttflush' is invalid in C99 [-Wimplicit-function-declaration] ttflush(); ^ echo.c:48:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] eyorn(sp) char *sp; { ^~~~~ echo.c:56:7: warning: implicit declaration of function 'getkey' is invalid in C99 [-Wimplicit-function-declaration] s = getkey(FALSE); ^ echo.c:59:30: warning: implicit declaration of function 'ctrlg' is invalid in C99 [-Wimplicit-function-declaration] if (s == CCHR('G')) return ctrlg(FFRAND, 1); ^ echo.c:69:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] eyesno(sp) char *sp; { ^~~~~~ echo.c:86:8: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)lp); ^ echo.c:109:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ereply(char *fp, char *buf, int nbuf, ...) ^~~~~~ echo.c:129:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] eread(char *fp, char *buf, int nbuf, int flag, ...) ^~~~~ echo.c:140:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static veread(fp, buf, nbuf, flag, ap) char *fp; char *buf; va_list ap; { ~~~~~~ ^ echo.c:180:5: warning: implicit declaration of function 'ttputc' is invalid in C99 [-Wimplicit-function-declaration] ttputc(CCHR('M')); ^ echo.c:297:10: warning: implicit declaration of function 'complete_function' is invalid in C99 [-Wimplicit-function-declaration] i = complete_function(buf, c); ^ echo.c:320:11: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] else panic("broken complt call: flags"); ^ echo.c:339:13: warning: implicit declaration of function 'getxtra' is invalid in C99 [-Wimplicit-function-declaration] bxtra = getxtra(lh, lh2, cpos, wflag); ^ echo.c:390:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] getxtra(lp1, lp2, cpos, wflag) register LIST *lp1, *lp2; register int wflag; { ^~~~~~~ 18 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c extend.c In file included from extend.c:5: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ extend.c:28:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] insert(f, n) ^~~~~~ extend.c:40:46: warning: implicit declaration of function 'lnewline' is invalid in C99 [-Wimplicit-function-declaration] if((((c=maclcur->l_text[count]) == '\n') ? lnewline() ^ extend.c:41:9: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] : linsert(1, c)) != TRUE) return FALSE; ^ extend.c:49:8: warning: implicit declaration of function 'eread' is invalid in C99 [-Wimplicit-function-declaration] if(eread("Insert: ", buf, sizeof(buf), EFNEW) == FALSE) return FALSE; ^ extend.c:324:26: warning: implicit declaration of function 'getkey' is invalid in C99 [-Wimplicit-function-declaration] pep = keyname(pep, c = getkey(FALSE)); ^ extend.c:386:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] bindtokey(f, n) ^~~~~~~~~ extend.c:395:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] localbind(f, n) ^~~~~~~~~ extend.c:405:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] define_key(f, n) ^~~~~~~~~~ extend.c:421:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] unbindtokey(f, n) ^~~~~~~~~~~ extend.c:427:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] localunbind(f, n) ^~~~~~~~~~~ extend.c:441:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extend(f, n) ^~~~~~ extend.c:486:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] evalexpr(f, n) ^~~~~~~~ extend.c:491:11: warning: implicit declaration of function 'ereply' is invalid in C99 [-Wimplicit-function-declaration] if ((s = ereply("Eval: ", exbuf, 128)) != TRUE) ^ extend.c:493:9: warning: implicit declaration of function 'excline' is invalid in C99 [-Wimplicit-function-declaration] return excline(exbuf); ^ extend.c:500:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] evalbuffer(f, n) ^~~~~~~~~~ extend.c:520:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] evalfile(f, n) ^~~~~~~~ extend.c:527:9: warning: implicit declaration of function 'load' is invalid in C99 [-Wimplicit-function-declaration] return load(fname); ^ extend.c:533:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] load(fname) char *fname; { ^~~~ extend.c:541:6: warning: implicit declaration of function 'ffropen' is invalid in C99 [-Wimplicit-function-declaration] if (ffropen(fname) != FIOSUC) return FALSE; ^ extend.c:542:14: warning: implicit declaration of function 'ffgetline' is invalid in C99 [-Wimplicit-function-declaration] while ((s = ffgetline(excbuf, sizeof(excbuf)-1, &nbytes)) == FIOSUC) { ^ extend.c:550:9: warning: implicit declaration of function 'ffclose' is invalid in C99 [-Wimplicit-function-declaration] (VOID) ffclose(); ^ extend.c:564:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] excline(line) ^~~~~~~ 23 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c help.c In file included from help.c:3: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ help.c:21:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] desckey(f, n) ^~~~~~~ help.c:43:58: warning: implicit declaration of function 'getkey' is invalid in C99 [-Wimplicit-function-declaration] pep = keyname(pep, key.k_chars[key.k_count++] = c = getkey(FALSE)); ^ help.c:95:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] wallchart(f, n) ^~~~~~~~~ help.c:101:6: warning: implicit declaration of function 'bclear' is invalid in C99 [-Wimplicit-function-declaration] if (bclear(bp) != TRUE) return FALSE; /* Clear it out. */ ^ help.c:105:10: warning: implicit declaration of function 'addline' is invalid in C99 [-Wimplicit-function-declaration] if((addline(bp, locbind) == FALSE) || ^ help.c:111:9: warning: implicit declaration of function 'popbuftop' is invalid in C99 [-Wimplicit-function-declaration] return popbuftop(bp); ^ help.c:167:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] help_help(f, n) ^~~~~~~~~ help.c:190:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] apropos_command(f, n) ^~~~~~~~~~~~~~~ help.c:198:8: warning: implicit declaration of function 'eread' is invalid in C99 [-Wimplicit-function-declaration] if(eread("apropos: ", string, sizeof(string), EFNEW) == ABORT) return ABORT; ^ 10 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c kbd.c In file included from kbd.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ kbd.c:24:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] do_meta(f, n) ^~~~~~~ kbd.c:74:25: warning: implicit declaration of function 'ttwait' is invalid in C99 [-Wimplicit-function-declaration] if(prompt[0]!='\0' && ttwait()) { ^ kbd.c:85:13: warning: implicit declaration of function 'ttgetc' is invalid in C99 [-Wimplicit-function-declaration] } else c = getkbd(); ^ ./ttydef.h:15:19: note: expanded from macro 'getkbd' #define getkbd() (ttgetc()) ^ kbd.c:130:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] doin() ^~~~ kbd.c:150:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] rescan(f, n) ^~~~~~ kbd.c:204:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] universal_argument(f, n) ^~~~~~~~~~~~~~~~~~ kbd.c:215:22: warning: implicit declaration of function 'negative_argument' is invalid in C99 [-Wimplicit-function-declaration] if(c == '-') return negative_argument(f, nn); ^ kbd.c:216:34: warning: implicit declaration of function 'digit_argument' is invalid in C99 [-Wimplicit-function-declaration] if(c >= '0' && c <= '9') return digit_argument(f, nn); ^ kbd.c:237:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] digit_argument(f, n) ^~~~~~~~~~~~~~ kbd.c:269:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] negative_argument(f, n) ^~~~~~~~~~~~~~~~~ kbd.c:307:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] selfinsert(f, n) ^~~~~~~~~~ kbd.c:335:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)maclcur); ^ kbd.c:357:14: warning: implicit declaration of function 'lnewline' is invalid in C99 [-Wimplicit-function-declaration] count = lnewline(); ^ kbd.c:367:12: warning: implicit declaration of function 'linsert' is invalid in C99 [-Wimplicit-function-declaration] return linsert(n, c); ^ kbd.c:374:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] quote(f, n) ^~~~~ 16 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c keymap.c In file included from keymap.c:6: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ keymap.c:1072:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static name_fent(fname, flag) ~~~~~~ ^ keymap.c:1107:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] complete_function(fname, c) ^~~~~~~~~~~~~~~~~ keymap.c:1134:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(l = functnames[i].n_name[j]) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~ keymap.c:1134:14: note: place parentheses around the assignment to silence this warning while(l = functnames[i].n_name[j]) { ^ ( ) keymap.c:1134:14: note: use '==' to turn this assignment into an equality comparison while(l = functnames[i].n_name[j]) { ^ == 4 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c macro.c In file included from macro.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ macro.c:11:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] definemacro(f, n) ^~~~~~~~~~~ macro.c:26:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free((char *)lp1); ^ macro.c:37:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] finishmacro(f, n) ^~~~~~~~~~~ macro.c:46:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] executemacro(f, n) ^~~~~~~~~~~~ 5 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c main.c In file included from main.c:4: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ main.c:53:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] VOID ^ ./def.h:29:16: note: expanded from macro 'VOID' # define VOID void /* Just use normal void */ ^ main.c:53:1: note: change return type to 'int' VOID ^~~~ int ./def.h:29:16: note: expanded from macro 'VOID' # define VOID void /* Just use normal void */ ^ main.c:80:2: warning: implicit declaration of function 'dirinit' is invalid in C99 [-Wimplicit-function-declaration] dirinit(); /* Get current directory */ ^ main.c:93:10: warning: implicit declaration of function 'load' is invalid in C99 [-Wimplicit-function-declaration] (VOID) load(cp); ^ main.c:98:10: warning: implicit declaration of function 'showbuffer' is invalid in C99 [-Wimplicit-function-declaration] (VOID) showbuffer(curbp, curwp, 0); ^ main.c:99:10: warning: implicit declaration of function 'readin' is invalid in C99 [-Wimplicit-function-declaration] (VOID) readin(cp); ^ main.c:110:13: warning: implicit declaration of function 'doin' is invalid in C99 [-Wimplicit-function-declaration] switch(doin()) { ^ main.c:116:7: warning: implicit declaration of function 'ttbeep' is invalid in C99 [-Wimplicit-function-declaration] ttbeep(); ^ main.c:135:28: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] if (bp==NULL || wp==NULL) panic("edinit"); ^ main.c:159:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] quit(f, n) ^~~~ main.c:164:11: warning: implicit declaration of function 'anycb' is invalid in C99 [-Wimplicit-function-declaration] if ((s = anycb(FALSE)) == ABORT) return ABORT; ^ main.c:166:5: warning: implicit declaration of function 'eyesno' is invalid in C99 [-Wimplicit-function-declaration] || eyesno("Some modified buffers exist, really exit") == TRUE) { ^ main.c:182:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ctrlg(f, n) ^~~~~ 13 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c modes.c In file included from modes.c:6: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ modes.c:52:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] indentmode(f, n) ^~~~~~~~~~ modes.c:57:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] fillmode(f, n) ^~~~~~~~ modes.c:65:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] blinkparen(f, n) ^~~~~~~~~~ modes.c:82:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] overwrite(f, n) ^~~~~~~~~ modes.c:93:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] set_default_mode(f, n) ^~~~~~~~~~~~~~~~ modes.c:100:8: warning: implicit declaration of function 'eread' is invalid in C99 [-Wimplicit-function-declaration] if(eread("Set Default Mode: ", mode, 32, EFNEW) != TRUE) ^ modes.c:131:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else defb_flag |= BFOVERWRITE; ^ 8 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c regex.c cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c re_search.c cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c cinfo.c In file included from cinfo.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ 1 warning generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c spawn.c In file included from spawn.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ spawn.c:40:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] spawncli(f, n) { ^~~~~~~~ spawn.c:53:2: warning: implicit declaration of function 'ttcolor' is invalid in C99 [-Wimplicit-function-declaration] ttcolor(CTEXT); ^ spawn.c:54:2: warning: implicit declaration of function 'ttnowindow' is invalid in C99 [-Wimplicit-function-declaration] ttnowindow(); ^ spawn.c:57:4: warning: implicit declaration of function 'ttmove' is invalid in C99 [-Wimplicit-function-declaration] ttmove(nrow-1, 0); ^ spawn.c:58:4: warning: implicit declaration of function 'tteeol' is invalid in C99 [-Wimplicit-function-declaration] tteeol(); ^ spawn.c:69:6: warning: implicit declaration of function 'ttcooked' is invalid in C99 [-Wimplicit-function-declaration] if (ttcooked() == FALSE) ^ spawn.c:78:12: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] if ((pid=fork()) < 0) { ^ spawn.c:85:4: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration] execl(shellp, "sh", "-i", NULL); ^ spawn.c:86:4: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' _exit(0); /* Should do better! */ ^ spawn.c:86:4: note: please include the header or explicitly provide a declaration for '_exit' spawn.c:95:9: warning: implicit declaration of function 'ttraw' is invalid in C99 [-Wimplicit-function-declaration] return ttraw(); ^ 11 warnings generated. cc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c ttyio.c In file included from ttyio.c:8: In file included from ./def.h:11: ./ttydef.h:11:27: warning: '/*' within block comment [-Wcomment] /* #define MOVE_STANDOUT /* don't move in standout mode */ ^ ttyio.c:36:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ttopen() { ^~~~~~ ttyio.c:47:3: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration] sleep(1); ^ ttyio.c:48:3: warning: implicit declaration of function 'putenv' is invalid in C99 [-Wimplicit-function-declaration] putenv("TERM=vt102"); ^ ttyio.c:52:6: warning: implicit declaration of function 'tgetent' is invalid in C99 [-Wimplicit-function-declaration] if((tgetent(tcbuf, tv_stype)) != 1) ^ ttyio.c:56:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' exit(1); ^ ttyio.c:56:3: note: please include the header or explicitly provide a declaration for 'exit' ttyio.c:58:6: warning: implicit declaration of function 'ttraw' is invalid in C99 [-Wimplicit-function-declaration] if (ttraw() == FALSE) ^ ttyio.c:59:3: warning: implicit declaration of function 'panic' is invalid in C99 [-Wimplicit-function-declaration] panic("aborting due to terminal initialize failure"); ^ ttyio.c:60:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ ttyio.c:69:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] ttraw() { ^~~~~ ttyio.c:72:15: error: use of undeclared identifier 'TIOCGETP' if (ioctl(0, TIOCGETP, (char *) &oldtty) < 0) { ^ ttyio.c:76:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_ospeed = ospeed = oldtty.sg_ospeed; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:76:36: error: incomplete definition of type 'struct sgttyb' newtty.sg_ospeed = ospeed = oldtty.sg_ospeed; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:77:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_ispeed = oldtty.sg_ispeed; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:77:27: error: incomplete definition of type 'struct sgttyb' newtty.sg_ispeed = oldtty.sg_ispeed; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:78:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_erase = oldtty.sg_erase; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:78:27: error: incomplete definition of type 'struct sgttyb' newtty.sg_erase = oldtty.sg_erase; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:79:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_kill = oldtty.sg_kill; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:79:26: error: incomplete definition of type 'struct sgttyb' newtty.sg_kill = oldtty.sg_kill; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:80:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_flags = oldtty.sg_flags; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:80:27: error: incomplete definition of type 'struct sgttyb' newtty.sg_flags = oldtty.sg_flags; ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:81:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_flags &= ~(ECHO|CRMOD); /* Kill echo, CR=>NL. */ ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:81:28: error: use of undeclared identifier 'CRMOD' newtty.sg_flags &= ~(ECHO|CRMOD); /* Kill echo, CR=>NL. */ ^ ttyio.c:85:8: error: incomplete definition of type 'struct sgttyb' newtty.sg_flags |= RAW|ANYP; /* raw mode for 8 bit path.*/ ~~~~~~^ ttyio.c:17:8: note: forward declaration of 'struct sgttyb' struct sgttyb oldtty; /* V6/V7 stty data. */ ^ ttyio.c:85:21: error: use of undeclared identifier 'RAW' newtty.sg_flags |= RAW|ANYP; /* raw mode for 8 bit path.*/ ^ ttyio.c:85:25: error: use of undeclared identifier 'ANYP' newtty.sg_flags |= RAW|ANYP; /* raw mode for 8 bit path.*/ ^ ttyio.c:87:15: error: use of undeclared identifier 'TIOCSETP' if (ioctl(0, TIOCSETP, (char *) &newtty) < 0) { ^ ttyio.c:91:15: error: use of undeclared identifier 'TIOCGETC' if (ioctl(0, TIOCGETC, (char *) &oldtchars) < 0) { ^ ttyio.c:95:11: error: incomplete definition of type 'struct tchars' newtchars.t_intrc = 0xFF; /* Interrupt. */ ~~~~~~~~~^ ttyio.c:19:8: note: forward declaration of 'struct tchars' struct tchars oldtchars; /* V7 editing. */ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 10 warnings and 20 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/editors/mg2a/work/mg2a *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/editors/mg2a *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/editors/mg2a