=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for mg2a-1.11nb2 --- ttydef.h --- --- sysdef.h --- --- chrdef.h --- --- cinfo.c --- --- spawn.c --- --- ttyio.c --- --- tty.c --- --- ttykbd.c --- --- fileio.c --- --- basic.o --- --- dir.o --- --- file.o --- --- dir.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c dir.c --- line.o --- --- file.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c file.c --- basic.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c basic.c --- line.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c line.c --- dir.o --- dir.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] dirinit() ^~~~~~~ dir.c: In function 'dirinit': dir.c:25:3: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration] panic("Can't get current directory!"); ^~~~~ dir.c: At top level: dir.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] changedir(f, n) ^~~~~~~~~ dir.c: In function 'changedir': dir.c:32:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] dir.c:32:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] dir.c:37:9: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] if ((s=ereply("Change default directory: ", bufc, NPAT)) != TRUE) ^~~~~~ dir.c:41:6: warning: implicit declaration of function 'chdir'; did you mean 'changedir'? [-Wimplicit-function-declaration] if (chdir(bufc) == -1) { ^~~~~ changedir dir.c: At top level: dir.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] showcwdir(f, n) ^~~~~~~~~ dir.c: In function 'showcwdir': dir.c:57:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] dir.c:57:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- basic.o --- basic.c:18:1: warning: return type defaults to 'int' [-Wimplicit-int] gotobol(f, n) ^~~~~~~ basic.c: In function 'gotobol': basic.c:18:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:18:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int] backchar(f, n) ^~~~~~~~ basic.c: In function 'backchar': basic.c:31:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:36:20: warning: implicit declaration of function 'forwchar'; did you mean 'backchar'? [-Wimplicit-function-declaration] if (n < 0) return forwchar(f, -n); ^~~~~~~~ backchar basic.c: At top level: basic.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] gotoeol(f, n) ^~~~~~~ basic.c: In function 'gotoeol': basic.c:57:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:57:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int] forwchar(f, n) ^~~~~~~~ basic.c: In function 'forwchar': basic.c:70:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:96:1: warning: return type defaults to 'int' [-Wimplicit-int] gotobob(f, n) ^~~~~~~ basic.c: In function 'gotobob': basic.c:96:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:96:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c:98:9: warning: implicit declaration of function 'setmark' [-Wimplicit-function-declaration] (VOID) setmark(f, n) ; ^~~~~~~ basic.c: At top level: basic.c:110:1: warning: return type defaults to 'int' [-Wimplicit-int] gotoeob(f, n) ^~~~~~~ basic.c: In function 'gotoeob': basic.c:110:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:110:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:127:1: warning: return type defaults to 'int' [-Wimplicit-int] forwline(f, n) ^~~~~~~~ basic.c: In function 'forwline': basic.c:127:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:127:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c:132:10: warning: implicit declaration of function 'backline'; did you mean 'forwline'? [-Wimplicit-function-declaration] return backline(f|FFRAND, -n); ^~~~~~~~ forwline basic.c:156:20: warning: implicit declaration of function 'getgoal'; did you mean 'setgoal'? [-Wimplicit-function-declaration] curwp->w_doto = getgoal(dlp); ^~~~~~~ setgoal basic.c: At top level: basic.c:169:1: warning: return type defaults to 'int' [-Wimplicit-int] backline(f, n) ^~~~~~~~ basic.c: In function 'backline': basic.c:169:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:169:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: In function 'setgoal': basic.c:196:12: warning: implicit declaration of function 'getcolpos'; did you mean 'fgetpos'? [-Wimplicit-function-declaration] curgoal = getcolpos() - 1; /* Get the position. */ ^~~~~~~~~ fgetpos basic.c: At top level: basic.c:207:1: warning: return type defaults to 'int' [-Wimplicit-int] getgoal(dlp) register LINE *dlp; { ^~~~~~~ basic.c:244:1: warning: return type defaults to 'int' [-Wimplicit-int] forwpage(f, n) ^~~~~~~~ basic.c: In function 'forwpage': basic.c:244:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:254:10: warning: implicit declaration of function 'backpage'; did you mean 'backline'? [-Wimplicit-function-declaration] return backpage(f|FFRAND, -n); ^~~~~~~~ backline --- line.o --- line.c: In function 'lalloc': line.c:60:19: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if((lp = (LINE *)malloc((unsigned)size)) == NULL) { ^~~~~~ line.c:60:19: warning: incompatible implicit declaration of built-in function 'malloc' line.c:60:19: note: include '' or provide a declaration of 'malloc' --- basic.o --- basic.c: At top level: basic.c:281:1: warning: return type defaults to 'int' [-Wimplicit-int] backpage(f, n) ^~~~~~~~ basic.c: In function 'backpage': basic.c:281:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:339:1: warning: return type defaults to 'int' [-Wimplicit-int] pagenext(f, n) ^~~~~~~~ basic.c: In function 'pagenext': basic.c:339:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:339:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c:348:9: warning: implicit declaration of function 'nextwind'; did you mean 'rewind'? [-Wimplicit-function-declaration] (VOID) nextwind(f, n); ^~~~~~~~ rewind --- line.o --- line.c: In function 'lfree': line.c:127:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *) lp); ^~~~ line.c:127:2: warning: incompatible implicit declaration of built-in function 'free' line.c:127:2: note: include '' or provide a declaration of 'free' line.c: At top level: --- basic.o --- basic.c: At top level: basic.c:371:1: warning: return type defaults to 'int' [-Wimplicit-int] setmark(f, n) ^~~~~~~ basic.c: In function 'setmark': basic.c:371:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:371:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] swapmark(f, n) ^~~~~~~~ basic.c: In function 'swapmark': basic.c:386:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] basic.c:386:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] basic.c: At top level: basic.c:413:1: warning: return type defaults to 'int' [-Wimplicit-int] gotoline(f, n) ^~~~~~~~ basic.c: In function 'gotoline': basic.c:413:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] --- line.o --- line.c:168:1: warning: return type defaults to 'int' [-Wimplicit-int] linsert(n, c) ^~~~~~~ line.c: In function 'linsert': line.c:168:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] --- basic.o --- basic.c:421:10: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] if ((s=ereply("Goto line: ", buf, sizeof(buf))) != TRUE) ^~~~~~ basic.c:423:7: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] n = atoi(buf); ^~~~ --- line.o --- line.c:226:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) lp1); ^~~~ line.c:226:3: note: include '' or provide a declaration of 'free' line.c: At top level: line.c:264:1: warning: return type defaults to 'int' [-Wimplicit-int] lnewline() ^~~~~~~~ line.c:317:1: warning: return type defaults to 'int' [-Wimplicit-int] ldelete(n, kflag) RSIZE n; { ^~~~~~~ line.c: In function 'ldelete': line.c:317:1: warning: type of 'kflag' defaults to 'int' [-Wimplicit-int] line.c:343:8: warning: implicit declaration of function 'ldelnewline'; did you mean 'lnewline'? [-Wimplicit-function-declaration] if (ldelnewline() == FALSE ^~~~~~~~~~~ lnewline --- file.o --- file.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] fileinsert(f, n) ^~~~~~~~~~ file.c: In function 'fileinsert': file.c:20:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] file.c:20:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- line.o --- line.c:344:24: warning: implicit declaration of function 'kinsert'; did you mean 'linsert'? [-Wimplicit-function-declaration] || (kflag!=KNONE && kinsert('\n', kflag)==FALSE)) ^~~~~~~ linsert --- file.o --- file.c:25:9: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] if ((s=ereply("Insert file: ", fname, NFILEN)) != TRUE) ^~~~~~ --- line.o --- line.c:354:9: warning: implicit declaration of function 'kgrow' [-Wimplicit-function-declaration] if (kgrow(FALSE) == FALSE) return FALSE; ^~~~~ --- file.o --- file.c:27:9: warning: implicit declaration of function 'insertfile'; did you mean '__noprofile'? [-Wimplicit-function-declaration] return insertfile(adjustname(fname), (char *) NULL); ^~~~~~~~~~ __noprofile file.c: At top level: file.c:40:1: warning: return type defaults to 'int' [-Wimplicit-int] filevisit(f, n) ^~~~~~~~~ file.c: In function 'filevisit': file.c:40:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] file.c:40:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- line.o --- line.c:362:30: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration] } else if (kflag != KNONE) panic("broken ldelete call"); ^~~~~ --- file.o --- file.c:52:6: warning: implicit declaration of function 'showbuffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] if (showbuffer(bp, curwp, WFHARD) != TRUE) return FALSE; ^~~~~~~~~~ setbuffer --- line.o --- line.c: At top level: line.c:396:1: warning: return type defaults to 'int' [-Wimplicit-int] ldelnewline() { ^~~~~~~~~~~ --- file.o --- file.c:54:10: warning: implicit declaration of function 'readin'; did you mean 'rewind'? [-Wimplicit-function-declaration] return readin(adjf); /* Read it in. */ ^~~~~~ rewind --- line.o --- line.c: In function 'ldelnewline': line.c:423:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) lp2); ^~~~ line.c:423:3: note: include '' or provide a declaration of 'free' --- file.o --- file.c: At top level: file.c:63:1: warning: return type defaults to 'int' [-Wimplicit-int] poptofile(f, n) ^~~~~~~~~ file.c: In function 'poptofile': file.c:63:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] file.c:63:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] file.c: At top level: file.c:130:1: warning: return type defaults to 'int' [-Wimplicit-int] readin(fname) char *fname; { ^~~~~~ --- line.o --- line.c:450:2: warning: incompatible implicit declaration of built-in function 'free' free((char *) lp1); ^~~~ line.c:450:2: note: include '' or provide a declaration of 'free' line.c: At top level: line.c:461:1: warning: return type defaults to 'int' [-Wimplicit-int] lreplace(plen, st, f) ^~~~~~~~ --- file.o --- file.c: In function 'readin': file.c:134:6: warning: implicit declaration of function 'bclear' [-Wimplicit-function-declaration] if (bclear(curbp) != TRUE) /* Might be old. */ ^~~~~~ file.c: At top level: file.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] insertfile(fname, newname) char fname[], newname[]; { ^~~~~~~~~~ --- line.o --- line.c: In function 'lreplace': line.c:477:9: warning: implicit declaration of function 'backchar'; did you mean 'putchar'? [-Wimplicit-function-declaration] (VOID) backchar(FFARG | FFRAND, (int) plen); ^~~~~~~~ putchar --- file.o --- file.c: In function 'insertfile': file.c:173:9: warning: implicit declaration of function 'ffropen'; did you mean 'fropen'? [-Wimplicit-function-declaration] if ((s=ffropen(fname)) == FIOERR) /* Hard file open. */ ^~~~~~~ fropen --- line.o --- line.c:517:12: warning: implicit declaration of function 'forwchar'; did you mean 'strrchr'? [-Wimplicit-function-declaration] (VOID) forwchar(FFRAND, 1); ^~~~~~~~ strrchr --- file.o --- file.c:183:9: warning: implicit declaration of function 'lnewline'; did you mean 'getline'? [-Wimplicit-function-declaration] (VOID) lnewline(); ^~~~~~~~ getline --- line.o --- line.c: In function 'kdelete': line.c:544:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) kbufp); ^~~~ line.c:544:3: note: include '' or provide a declaration of 'free' line.c: At top level: --- file.o --- file.c:191:12: warning: implicit declaration of function 'ffgetline'; did you mean 'getline'? [-Wimplicit-function-declaration] while ((s=ffgetline(line, NLINE, &nbytes)) != FIOERR) { ^~~~~~~~~ getline --- line.o --- line.c:559:1: warning: return type defaults to 'int' [-Wimplicit-int] kinsert(c, dir) { ^~~~~~~ line.c: In function 'kinsert': line.c:559:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] line.c:559:1: warning: type of 'dir' defaults to 'int' [-Wimplicit-int] line.c: At top level: line.c:575:1: warning: return type defaults to 'int' [-Wimplicit-int] kgrow(back) { ^~~~~ line.c: In function 'kgrow': line.c:575:1: warning: type of 'back' defaults to 'int' [-Wimplicit-int] --- file.o --- file.c:216:13: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if((cp = malloc((unsigned)(nbytes + NLINE))) == NULL) { ^~~~~~ file.c:216:13: warning: incompatible implicit declaration of built-in function 'malloc' file.c:216:13: note: include '' or provide a declaration of 'malloc' file.c:220:19: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] if(nbytes) free(cp2); ^~~~ file.c:220:19: warning: incompatible implicit declaration of built-in function 'free' file.c:220:19: note: include '' or provide a declaration of 'free' file.c:225:8: warning: incompatible implicit declaration of built-in function 'free' free(cp2); ^~~~ file.c:225:8: note: include '' or provide a declaration of 'free' file.c:231:5: warning: incompatible implicit declaration of built-in function 'free' free(cp); ^~~~ --- line.o --- line.c:584:13: warning: incompatible implicit declaration of built-in function 'malloc' if ((nbufp=malloc((unsigned)(ksize+KBLOCK))) == NULL) { ^~~~~~ line.c:584:13: note: include '' or provide a declaration of 'malloc' line.c:591:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) kbufp); ^~~~ line.c:591:3: note: include '' or provide a declaration of 'free' line.c: At top level: line.c:605:1: warning: return type defaults to 'int' [-Wimplicit-int] kremove(n) { ^~~~~~~ line.c: In function 'kremove': line.c:605:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- file.o --- file.c:231:5: note: include '' or provide a declaration of 'free' file.c:256:9: warning: implicit declaration of function 'ffclose'; did you mean 'fclose'? [-Wimplicit-function-declaration] (VOID) ffclose(); /* Ignore errors. */ ^~~~~~~ fclose file.c:264:9: warning: implicit declaration of function 'ldelnewline' [-Wimplicit-function-declaration] (VOID) ldelnewline(); ^~~~~~~~~~~ file.c: At top level: file.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int] filewrite(f, n) ^~~~~~~~~ file.c: In function 'filewrite': file.c:346:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] file.c:346:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] file.c:355:9: warning: implicit declaration of function 'writeout'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if ((s=writeout(curbp, adjfname)) == TRUE) { ^~~~~~~~ fwrite file.c: At top level: file.c:379:1: warning: return type defaults to 'int' [-Wimplicit-int] filesave(f, n) ^~~~~~~~ file.c: In function 'filesave': file.c:379:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] file.c:379:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] file.c:381:9: warning: implicit declaration of function 'buffsave'; did you mean 'filesave'? [-Wimplicit-function-declaration] return buffsave(curbp); ^~~~~~~~ filesave file.c: At top level: file.c:393:1: warning: return type defaults to 'int' [-Wimplicit-int] buffsave(bp) BUFFER *bp; { ^~~~~~~~ file.c:451:1: warning: return type defaults to 'int' [-Wimplicit-int] writeout(bp, fn) register BUFFER *bp; char *fn; { ^~~~~~~~ file.c: In function 'writeout': file.c:548:19: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration] if (0 != system(cmd)) printf(".orig backup failed: '%s'\n", cmd); ^~~~~~ file.c:582:9: warning: implicit declaration of function 'ffwopen'; did you mean 'fwopen'? [-Wimplicit-function-declaration] if ((s=ffwopen(fn)) != FIOSUC) /* Open writes message. */ ^~~~~~~ fwopen file.c:584:6: warning: implicit declaration of function 'ffputbuf'; did you mean 'popbuf'? [-Wimplicit-function-declaration] s = ffputbuf(bp); ^~~~~~~~ popbuf --- match.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c match.c match.c:42:1: warning: return type defaults to 'int' [-Wimplicit-int] showmatch(f, n) ^~~~~~~~~ match.c: In function 'showmatch': match.c:42:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] match.c:42:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] match.c:48:12: warning: implicit declaration of function 'selfinsert' [-Wimplicit-function-declaration] if ((s = selfinsert(FFRAND, 1)) != TRUE) ^~~~~~~~~~ match.c:51:4: warning: implicit declaration of function 'ttbeep'; did you mean 'stresep'? [-Wimplicit-function-declaration] ttbeep(); ^~~~~~ stresep match.c: At top level: match.c:64:8: warning: return type defaults to 'int' [-Wimplicit-int] static balance() ^~~~~~~ match.c: In function 'displaymatch': match.c:162:3: warning: implicit declaration of function 'sleep'; did you mean 'stresep'? [-Wimplicit-function-declaration] sleep(1); /* wait a bit */ ^~~~~ stresep --- paragraph.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c paragraph.c --- random.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c random.c --- paragraph.o --- paragraph.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] gotobop(f, n) ^~~~~~~ paragraph.c: In function 'gotobop': paragraph.c:16:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:16:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] paragraph.c:19:10: warning: implicit declaration of function 'gotoeop'; did you mean 'gotobop'? [-Wimplicit-function-declaration] return gotoeop(f, -n); ^~~~~~~ gotobop paragraph.c:25:10: warning: implicit declaration of function 'backchar'; did you mean 'putchar'? [-Wimplicit-function-declaration] while (backchar(FFRAND, 1) && !inword()) {} ^~~~~~~~ putchar paragraph.c:25:34: warning: implicit declaration of function 'inword' [-Wimplicit-function-declaration] while (backchar(FFRAND, 1) && !inword()) {} ^~~~~~ paragraph.c: At top level: paragraph.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] gotoeop(f, n) ^~~~~~~ paragraph.c: In function 'gotoeop': paragraph.c:47:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:47:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] paragraph.c:56:9: warning: implicit declaration of function 'forwchar'; did you mean 'strrchr'? [-Wimplicit-function-declaration] while(forwchar(FFRAND, 1) && !inword()) {} ^~~~~~~~ strrchr paragraph.c: At top level: paragraph.c:84:1: warning: return type defaults to 'int' [-Wimplicit-int] fillpara(f, n) ^~~~~~~~ paragraph.c: In function 'fillpara': paragraph.c:84:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:84:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] paragraph.c:101:10: warning: implicit declaration of function 'lnewline'; did you mean 'getline'? [-Wimplicit-function-declaration] (VOID) lnewline(); ^~~~~~~~ getline paragraph.c:126:7: warning: implicit declaration of function 'ldelete'; did you mean 'kdelete'? [-Wimplicit-function-declaration] if (ldelete((RSIZE) 1, KNONE) == FALSE && !eopflag) ^~~~~~~ kdelete paragraph.c:157:13: warning: implicit declaration of function 'linsert'; did you mean 'l_next'? [-Wimplicit-function-declaration] (VOID) linsert(1, ' '); ^~~~~~~ l_next paragraph.c: At top level: paragraph.c:191:1: warning: return type defaults to 'int' [-Wimplicit-int] killpara(f, n) ^~~~~~~~ paragraph.c: In function 'killpara': paragraph.c:191:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:191:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] paragraph.c:209:17: warning: implicit declaration of function 'killregion' [-Wimplicit-function-declaration] if ((status = killregion(FFRAND, 1)) != TRUE) ^~~~~~~~~~ paragraph.c: At top level: paragraph.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int] fillword(f, n) ^~~~~~~~ paragraph.c: In function 'fillword': paragraph.c:223:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:223:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] paragraph.c:229:34: warning: implicit declaration of function 'selfinsert' [-Wimplicit-function-declaration] if (i == curwp->w_doto) return selfinsert(f, n) ; ^~~~~~~~~~ paragraph.c:256:9: warning: implicit declaration of function 'delwhite'; did you mean 'kdelete'? [-Wimplicit-function-declaration] (VOID) delwhite(FFRAND, 1); ^~~~~~~~ kdelete paragraph.c: At top level: paragraph.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int] setfillcol(f, n) { ^~~~~~~~~~ paragraph.c: In function 'setfillcol': paragraph.c:266:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] paragraph.c:266:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- random.o --- random.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] showcpos(f, n) ^~~~~~~~ random.c: In function 'showcpos': random.c:20:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:20:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:56:43: warning: implicit declaration of function 'getcolpos'; did you mean 'fgetpos'? [-Wimplicit-function-declaration] cbyte, cbyte, cchar, ratio, cline, row, getcolpos()); ^~~~~~~~~ fgetpos random.c: At top level: random.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] getcolpos() { ^~~~~~~~~ random.c:90:1: warning: return type defaults to 'int' [-Wimplicit-int] twiddle(f, n) ^~~~~~~ random.c: In function 'twiddle': random.c:90:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:90:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c: At top level: random.c:120:1: warning: return type defaults to 'int' [-Wimplicit-int] openline(f, n) ^~~~~~~~ random.c: In function 'openline': random.c:120:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:120:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:131:7: warning: implicit declaration of function 'lnewline'; did you mean 'openline'? [-Wimplicit-function-declaration] s = lnewline(); ^~~~~~~~ openline random.c:134:7: warning: implicit declaration of function 'backchar'; did you mean 'putchar'? [-Wimplicit-function-declaration] s = backchar(f | FFRAND, n); /* of them all. */ ^~~~~~~~ putchar random.c: At top level: random.c:149:1: warning: return type defaults to 'int' [-Wimplicit-int] newline(f, n) ^~~~~~~ random.c: In function 'newline': random.c:149:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:149:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:160:11: warning: implicit declaration of function 'forwchar'; did you mean 'strrchr'? [-Wimplicit-function-declaration] if ((s=forwchar(FFRAND, 1)) != TRUE) ^~~~~~~~ strrchr random.c: At top level: random.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int] deblank(f, n) ^~~~~~~ random.c: In function 'deblank': random.c:179:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:179:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:196:9: warning: implicit declaration of function 'ldelete'; did you mean 'kdelete'? [-Wimplicit-function-declaration] return ldelete((RSIZE)nld, KNONE); ^~~~~~~ kdelete random.c: At top level: random.c:202:1: warning: return type defaults to 'int' [-Wimplicit-int] justone(f, n) { ^~~~~~~ random.c: In function 'justone': random.c:202:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:202:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:203:9: warning: implicit declaration of function 'delwhite'; did you mean 'newline'? [-Wimplicit-function-declaration] (VOID) delwhite(f, n); ^~~~~~~~ newline random.c:204:9: warning: implicit declaration of function 'linsert'; did you mean 'l_next'? [-Wimplicit-function-declaration] return linsert(1, ' '); ^~~~~~~ l_next random.c: At top level: random.c:210:1: warning: return type defaults to 'int' [-Wimplicit-int] delwhite(f, n) ^~~~~~~~ random.c: In function 'delwhite': random.c:210:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:210:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c: At top level: random.c:243:1: warning: return type defaults to 'int' [-Wimplicit-int] indent(f, n) ^~~~~~ random.c: In function 'indent': random.c:243:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:243:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c: At top level: random.c:282:1: warning: return type defaults to 'int' [-Wimplicit-int] forwdel(f, n) ^~~~~~~ random.c: In function 'forwdel': random.c:282:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:282:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:285:10: warning: implicit declaration of function 'backdel' [-Wimplicit-function-declaration] return backdel(f | FFRAND, -n); ^~~~~~~ random.c: At top level: random.c:302:1: warning: return type defaults to 'int' [-Wimplicit-int] backdel(f, n) ^~~~~~~ random.c: In function 'backdel': random.c:302:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:302:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c: At top level: random.c:330:1: warning: return type defaults to 'int' [-Wimplicit-int] killline(f, n) { ^~~~~~~~ random.c: In function 'killline': random.c:330:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:330:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c: At top level: random.c:395:1: warning: return type defaults to 'int' [-Wimplicit-int] yank(f, n) ^~~~ random.c: In function 'yank': random.c:395:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] random.c:395:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] random.c:408:13: warning: implicit declaration of function 'kremove'; did you mean 'remove'? [-Wimplicit-function-declaration] while ((c=kremove(i)) >= 0) { ^~~~~~~ remove --- region.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c region.c --- version.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c version.c version.c:15:1: warning: return type defaults to 'int' [-Wimplicit-int] showversion(f, n) ^~~~~~~~~~~ version.c: In function 'showversion': version.c:18:2: warning: implicit declaration of function 'ewprintf' [-Wimplicit-function-declaration] ewprintf(version); ^~~~~~~~ --- region.o --- region.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] killregion(f, n) ^~~~~~~~~~ region.c: In function 'killregion': region.c:17:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:17:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c:22:9: warning: implicit declaration of function 'getregion'; did you mean 'killregion'? [-Wimplicit-function-declaration] if ((s=getregion(®ion)) != TRUE) ^~~~~~~~~ killregion region.c:29:10: warning: implicit declaration of function 'ldelete'; did you mean 'kdelete'? [-Wimplicit-function-declaration] return (ldelete(region.r_size, KFORW)); ^~~~~~~ kdelete region.c: At top level: region.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] copyregion(f, n) ^~~~~~~~~~ region.c: In function 'copyregion': region.c:39:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:39:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c:56:11: warning: implicit declaration of function 'kinsert' [-Wimplicit-function-declaration] if ((s=kinsert('\n', KFORW)) != TRUE) ^~~~~~~ region.c: At top level: region.c:77:1: warning: return type defaults to 'int' [-Wimplicit-int] lowerregion(f, n) ^~~~~~~~~~~ region.c: In function 'lowerregion': region.c:77:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:77:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c: At top level: region.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] upperregion(f, n) ^~~~~~~~~~~ region.c: In function 'upperregion': region.c:112:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:112:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c: At top level: region.c:153:1: warning: return type defaults to 'int' [-Wimplicit-int] getregion(rp) register REGION *rp; { ^~~~~~~~~ region.c: In function 'getregion': region.c:183:13: warning: implicit declaration of function 'setsize'; did you mean 'getline'? [-Wimplicit-function-declaration] return (setsize(rp, ^~~~~~~ getline region.c: At top level: region.c:206:1: warning: return type defaults to 'int' [-Wimplicit-int] setsize(rp, size) register REGION *rp; register RSIZE size; { ^~~~~~~ region.c:236:1: warning: return type defaults to 'int' [-Wimplicit-int] prefixregion(f, n) ^~~~~~~~~~~~ region.c: In function 'prefixregion': region.c:236:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:236:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c:244:27: warning: implicit declaration of function 'setprefix' [-Wimplicit-function-declaration] if ((f == TRUE) && ((s = setprefix(FFRAND, 1)) != TRUE)) ^~~~~~~~~ region.c:261:10: warning: implicit declaration of function 'gotobol' [-Wimplicit-function-declaration] (VOID) gotobol(FFRAND, 1); ^~~~~~~ region.c:263:11: warning: implicit declaration of function 'linsert'; did you mean 'l_next'? [-Wimplicit-function-declaration] (VOID) linsert(1, *prefix); ^~~~~~~ l_next region.c:264:10: warning: implicit declaration of function 'forwline'; did you mean 'getline'? [-Wimplicit-function-declaration] (VOID) forwline(FFRAND, 1); ^~~~~~~~ getline region.c: At top level: region.c:275:1: warning: return type defaults to 'int' [-Wimplicit-int] setprefix(f, n) ^~~~~~~~~ region.c: In function 'setprefix': region.c:275:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] region.c:275:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] region.c:281:7: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] s = ereply("Prefix string: ",buf,sizeof buf); ^~~~~~ --- window.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c window.c --- word.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c word.c --- window.o --- window.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] reposition(f, n) ^~~~~~~~~~ window.c: In function 'reposition': window.c:17:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:17:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c: At top level: window.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] refresh(f, n) ^~~~~~~ window.c: In function 'refresh': window.c:45:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:45:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c:53:2: warning: implicit declaration of function 'ttresize'; did you mean 'stresep'? [-Wimplicit-function-declaration] ttresize(); ^~~~~~~~ stresep window.c: At top level: window.c:80:1: warning: return type defaults to 'int' [-Wimplicit-int] nextwind(f, n) ^~~~~~~~ window.c: In function 'nextwind': window.c:80:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:80:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c: At top level: window.c:130:1: warning: return type defaults to 'int' [-Wimplicit-int] onlywind(f, n) ^~~~~~~~ window.c: In function 'onlywind': window.c:130:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:130:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c:145:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *) wp); ^~~~ window.c:145:3: warning: incompatible implicit declaration of built-in function 'free' window.c:145:3: note: include '' or provide a declaration of 'free' window.c:156:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) wp); ^~~~ window.c:156:3: note: include '' or provide a declaration of 'free' window.c: At top level: window.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int] splitwind(f, n) ^~~~~~~~~ window.c: In function 'splitwind': window.c:179:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:179:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c:192:22: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((wp = (WINDOW *)malloc(sizeof(WINDOW))) == NULL) { ^~~~~~ window.c:192:22: warning: incompatible implicit declaration of built-in function 'malloc' window.c:192:22: note: include '' or provide a declaration of 'malloc' window.c: At top level: window.c:257:1: warning: return type defaults to 'int' [-Wimplicit-int] enlargewind(f, n) ^~~~~~~~~~~ window.c: In function 'enlargewind': window.c:257:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:257:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c:264:10: warning: implicit declaration of function 'shrinkwind'; did you mean 'splitwind'? [-Wimplicit-function-declaration] return shrinkwind(f, -n); ^~~~~~~~~~ splitwind window.c: At top level: window.c:304:1: warning: return type defaults to 'int' [-Wimplicit-int] shrinkwind(f, n) ^~~~~~~~~~ window.c: In function 'shrinkwind': window.c:304:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:304:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c: At top level: window.c:354:1: warning: return type defaults to 'int' [-Wimplicit-int] delwind(f, n) ^~~~~~~ window.c: In function 'delwind': window.c:354:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] window.c:354:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] window.c:377:2: warning: incompatible implicit declaration of built-in function 'free' free((char *) wp); ^~~~ window.c:377:2: note: include '' or provide a declaration of 'free' --- word.o --- word.c:17:1: warning: return type defaults to 'int' [-Wimplicit-int] backword(f, n) ^~~~~~~~ word.c: In function 'backword': word.c:17:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:17:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c:19:20: warning: implicit declaration of function 'forwword'; did you mean 'backword'? [-Wimplicit-function-declaration] if (n < 0) return forwword(f | FFRAND, -n); ^~~~~~~~ backword word.c:20:6: warning: implicit declaration of function 'backchar'; did you mean 'backword'? [-Wimplicit-function-declaration] if (backchar(FFRAND, 1) == FALSE) ^~~~~~~~ backword word.c:23:10: warning: implicit declaration of function 'inword'; did you mean 'backword'? [-Wimplicit-function-declaration] while (inword() == FALSE) { ^~~~~~ backword word.c:32:9: warning: implicit declaration of function 'forwchar'; did you mean 'strrchr'? [-Wimplicit-function-declaration] return forwchar(FFRAND, 1); ^~~~~~~~ strrchr word.c: At top level: word.c:41:1: warning: return type defaults to 'int' [-Wimplicit-int] forwword(f, n) ^~~~~~~~ word.c: In function 'forwword': word.c:41:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:41:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c: At top level: word.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int] upperword(f, n) ^~~~~~~~~ word.c: In function 'upperword': word.c:64:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:64:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c: At top level: word.c:94:1: warning: return type defaults to 'int' [-Wimplicit-int] lowerword(f, n) ^~~~~~~~~ word.c: In function 'lowerword': word.c:94:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:94:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- search.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c search.c --- word.o --- word.c: At top level: word.c:126:1: warning: return type defaults to 'int' [-Wimplicit-int] capword(f, n) ^~~~~~~ word.c: In function 'capword': word.c:126:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:126:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c: At top level: word.c:165:1: warning: return type defaults to 'int' [-Wimplicit-int] delfword(f, n) ^~~~~~~~ word.c: In function 'delfword': word.c:165:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:165:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c:194:10: warning: implicit declaration of function 'ldelete'; did you mean 'kdelete'? [-Wimplicit-function-declaration] return (ldelete(size, KFORW)); ^~~~~~~ kdelete word.c: At top level: word.c:210:1: warning: return type defaults to 'int' [-Wimplicit-int] delbword(f, n) ^~~~~~~~ word.c: In function 'delbword': word.c:210:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] word.c:210:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] word.c: At top level: word.c:247:1: warning: return type defaults to 'int' [-Wimplicit-int] inword() { ^~~~~~ --- regex.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c regex.c --- search.o --- search.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] forwsearch(f, n) ^~~~~~~~~~ search.c: In function 'forwsearch': search.c:52:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:52:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c:56:9: warning: implicit declaration of function 'readpattern' [-Wimplicit-function-declaration] if ((s=readpattern("Search")) != TRUE) ^~~~~~~~~~~ search.c:58:6: warning: implicit declaration of function 'forwsrch'; did you mean 'forwsearch'? [-Wimplicit-function-declaration] if (forwsrch() == FALSE) { ^~~~~~~~ forwsearch search.c: At top level: search.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int] backsearch(f, n) ^~~~~~~~~~ search.c: In function 'backsearch': search.c:74:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:74:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c:80:6: warning: implicit declaration of function 'backsrch'; did you mean 'backsearch'? [-Wimplicit-function-declaration] if (backsrch() == FALSE) { ^~~~~~~~ backsearch search.c: At top level: search.c:95:1: warning: return type defaults to 'int' [-Wimplicit-int] searchagain(f, n) ^~~~~~~~~~~ search.c: In function 'searchagain': search.c:95:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:95:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c: At top level: search.c:120:1: warning: return type defaults to 'int' [-Wimplicit-int] forwisearch(f, n) ^~~~~~~~~~~ search.c: In function 'forwisearch': search.c:120:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:120:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c:122:9: warning: implicit declaration of function 'isearch'; did you mean 'forwisearch'? [-Wimplicit-function-declaration] return isearch(SRCH_FORW); ^~~~~~~ forwisearch search.c: At top level: search.c:130:1: warning: return type defaults to 'int' [-Wimplicit-int] backisearch(f, n) ^~~~~~~~~~~ search.c: In function 'backisearch': search.c:130:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:130:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c: At top level: search.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] isearch(dir) { ^~~~~~~ search.c: In function 'isearch': search.c:146:1: warning: type of 'dir' defaults to 'int' [-Wimplicit-int] search.c:174:15: warning: implicit declaration of function 'getkey'; did you mean 'ungetkey'? [-Wimplicit-function-declaration] switch (c = getkey(FALSE)) { ^~~~~~ ungetkey search.c:194:11: warning: implicit declaration of function 'ctrlg'; did you mean 'strlen'? [-Wimplicit-function-declaration] (VOID) ctrlg(FFRAND, 0); ^~~~~ strlen search.c:210:11: warning: implicit declaration of function 'forwchar'; did you mean 'forwsearch'? [-Wimplicit-function-declaration] (VOID) forwchar(FFRAND, 1); ^~~~~~~~ forwsearch search.c:213:12: warning: implicit declaration of function 'backchar'; did you mean 'backsearch'? [-Wimplicit-function-declaration] (VOID) backchar(FFRAND, 1); ^~~~~~~~ backsearch search.c:214:5: warning: implicit declaration of function 'ttbeep'; did you mean 'stresep'? [-Wimplicit-function-declaration] ttbeep(); ^~~~~~ stresep search.c: In function 'is_prompt': search.c:406:1: warning: type of 'dir' defaults to 'int' [-Wimplicit-int] is_prompt(dir, flag, success) { ^~~~~~~~~ search.c:406:1: warning: type of 'flag' defaults to 'int' [-Wimplicit-int] search.c:406:1: warning: type of 'success' defaults to 'int' [-Wimplicit-int] search.c: In function 'is_dspl': search.c:426:1: warning: type of 'flag' defaults to 'int' [-Wimplicit-int] is_dspl(prompt, flag) char *prompt; { ^~~~~~~ search.c: At top level: search.c:439:1: warning: return type defaults to 'int' [-Wimplicit-int] queryrepl(f, n) ^~~~~~~~~ search.c: In function 'queryrepl': search.c:439:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] search.c:439:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] search.c:454:9: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] if ((s=ereply("Query replace %s with: ",news, NPAT, pat)) == ABORT) ^~~~~~ search.c:472:8: warning: implicit declaration of function 'lreplace'; did you mean 'rename'? [-Wimplicit-function-declaration] if (lreplace((RSIZE) plen, news, f) == FALSE) ^~~~~~~~ rename search.c: At top level: search.c:524:1: warning: return type defaults to 'int' [-Wimplicit-int] forwsrch() { ^~~~~~~~ search.c:574:1: warning: return type defaults to 'int' [-Wimplicit-int] backsrch() { ^~~~~~~~ search.c:652:1: warning: return type defaults to 'int' [-Wimplicit-int] readpattern(prompt) char *prompt; { ^~~~~~~~~~~ --- re_search.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c re_search.c --- kbd.o --- --- macro.o --- --- kbd.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c kbd.c --- macro.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c macro.c --- main.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c main.c --- kbd.o --- kbd.c:24:1: warning: return type defaults to 'int' [-Wimplicit-int] do_meta(f, n) ^~~~~~~ kbd.c: In function 'do_meta': kbd.c:24:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] kbd.c:24:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] kbd.c: In function 'getkey': kbd.c:74:25: warning: implicit declaration of function 'ttwait' [-Wimplicit-function-declaration] if(prompt[0]!='\0' && ttwait()) { ^~~~~~ In file included from def.h:11:0, from kbd.c:4: ttydef.h:15:19: warning: implicit declaration of function 'ttgetc'; did you mean 'ungetc'? [-Wimplicit-function-declaration] #define getkbd() (ttgetc()) ^ kbd.c:85:13: note: in expansion of macro 'getkbd' } else c = getkbd(); ^~~~~~ kbd.c: At top level: kbd.c:130:1: warning: return type defaults to 'int' [-Wimplicit-int] doin() ^~~~ kbd.c:150:1: warning: return type defaults to 'int' [-Wimplicit-int] rescan(f, n) ^~~~~~ kbd.c:204:1: warning: return type defaults to 'int' [-Wimplicit-int] universal_argument(f, n) ^~~~~~~~~~~~~~~~~~ kbd.c: In function 'universal_argument': kbd.c:215:22: warning: implicit declaration of function 'negative_argument'; did you mean 'universal_argument'? [-Wimplicit-function-declaration] if(c == '-') return negative_argument(f, nn); ^~~~~~~~~~~~~~~~~ universal_argument kbd.c:216:34: warning: implicit declaration of function 'digit_argument'; did you mean 'universal_argument'? [-Wimplicit-function-declaration] if(c >= '0' && c <= '9') return digit_argument(f, nn); ^~~~~~~~~~~~~~ universal_argument kbd.c: At top level: kbd.c:237:1: warning: return type defaults to 'int' [-Wimplicit-int] digit_argument(f, n) ^~~~~~~~~~~~~~ kbd.c:269:1: warning: return type defaults to 'int' [-Wimplicit-int] negative_argument(f, n) ^~~~~~~~~~~~~~~~~ --- macro.o --- macro.c:11:1: warning: return type defaults to 'int' [-Wimplicit-int] definemacro(f, n) ^~~~~~~~~~~ macro.c: In function 'definemacro': macro.c:26:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *)lp1); ^~~~ macro.c:26:3: warning: incompatible implicit declaration of built-in function 'free' macro.c:26:3: note: include '' or provide a declaration of 'free' macro.c:28:6: warning: incompatible implicit declaration of built-in function 'free' free((char *)lp1); ^~~~ macro.c:28:6: note: include '' or provide a declaration of 'free' --- kbd.o --- kbd.c:307:1: warning: return type defaults to 'int' [-Wimplicit-int] selfinsert(f, n) ^~~~~~~~~~ --- macro.o --- macro.c: At top level: macro.c:37:1: warning: return type defaults to 'int' [-Wimplicit-int] finishmacro(f, n) ^~~~~~~~~~~ macro.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] executemacro(f, n) ^~~~~~~~~~~~ --- kbd.o --- kbd.c: In function 'selfinsert': kbd.c:335:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *)maclcur); ^~~~ kbd.c:335:3: warning: incompatible implicit declaration of built-in function 'free' kbd.c:335:3: note: include '' or provide a declaration of 'free' kbd.c:357:14: warning: implicit declaration of function 'lnewline'; did you mean 'getline'? [-Wimplicit-function-declaration] count = lnewline(); ^~~~~~~~ getline kbd.c:367:12: warning: implicit declaration of function 'linsert'; did you mean 'insert'? [-Wimplicit-function-declaration] return linsert(n, c); ^~~~~~~ insert kbd.c: At top level: kbd.c:374:1: warning: return type defaults to 'int' [-Wimplicit-int] quote(f, n) ^~~~~ kbd.c: In function 'quote': kbd.c:374:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] kbd.c:374:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- main.o --- main.c: In function 'main': main.c:80:2: warning: implicit declaration of function 'dirinit'; did you mean 'vtinit'? [-Wimplicit-function-declaration] dirinit(); /* Get current directory */ ^~~~~~~ vtinit main.c:93:10: warning: implicit declaration of function 'load' [-Wimplicit-function-declaration] (VOID) load(cp); ^~~~ main.c:98:10: warning: implicit declaration of function 'showbuffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] (VOID) showbuffer(curbp, curwp, 0); ^~~~~~~~~~ setbuffer main.c:99:10: warning: implicit declaration of function 'readin'; did you mean 'main'? [-Wimplicit-function-declaration] (VOID) readin(cp); ^~~~~~ main main.c:110:13: warning: implicit declaration of function 'doin'; did you mean 'main'? [-Wimplicit-function-declaration] switch(doin()) { ^~~~ main main.c:116:7: warning: implicit declaration of function 'ttbeep'; did you mean 'stresep'? [-Wimplicit-function-declaration] ttbeep(); ^~~~~~ stresep main.c: In function 'edinit': main.c:135:28: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration] if (bp==NULL || wp==NULL) panic("edinit"); ^~~~~ main.c: At top level: main.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] quit(f, n) ^~~~ main.c: In function 'quit': main.c:159:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] main.c:159:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] main.c:164:11: warning: implicit declaration of function 'anycb' [-Wimplicit-function-declaration] if ((s = anycb(FALSE)) == ABORT) return ABORT; ^~~~~ main.c:166:5: warning: implicit declaration of function 'eyesno' [-Wimplicit-function-declaration] || eyesno("Some modified buffers exist, really exit") == TRUE) { ^~~~~~ main.c: At top level: main.c:182:1: warning: return type defaults to 'int' [-Wimplicit-int] ctrlg(f, n) ^~~~~ main.c: In function 'ctrlg': main.c:182:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] main.c:182:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] --- buffer.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c buffer.c buffer.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int] usebuffer(f, n) ^~~~~~~~~ buffer.c: In function 'usebuffer': buffer.c:16:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:16:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c:25:5: warning: implicit declaration of function 'eread'; did you mean 'fread'? [-Wimplicit-function-declaration] s=eread("Switch to buffer: ", bufn, NBUFN, EFNEW|EFBUF); ^~~~~ fread buffer.c:36:9: warning: implicit declaration of function 'showbuffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] return showbuffer(bp, curwp, WFFORCE|WFHARD); ^~~~~~~~~~ setbuffer buffer.c: At top level: buffer.c:43:1: warning: return type defaults to 'int' [-Wimplicit-int] poptobuffer(f, n) ^~~~~~~~~~~ buffer.c: In function 'poptobuffer': buffer.c:43:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:43:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c: At top level: buffer.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int] killbuffer(f, n) ^~~~~~~~~~ buffer.c: In function 'killbuffer': buffer.c:78:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:78:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c:108:6: warning: implicit declaration of function 'bclear' [-Wimplicit-function-declaration] if (bclear(bp) != TRUE) return TRUE; ^~~~~~ buffer.c:112:49: warning: comparison between pointer and integer if(showbuffer(bp1, wp, WFMODE|WFFORCE|WFHARD) != NULL) ^~ buffer.c:118:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *) bp->b_linep); /* Release header line. */ ^~~~ buffer.c:118:2: warning: incompatible implicit declaration of built-in function 'free' buffer.c:118:2: note: include '' or provide a declaration of 'free' buffer.c: At top level: buffer.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int] savebuffers(f, n) ^~~~~~~~~~~ buffer.c: In function 'savebuffers': buffer.c:146:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:146:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c:148:6: warning: implicit declaration of function 'anycb' [-Wimplicit-function-declaration] if (anycb(f) == ABORT) return ABORT; ^~~~~ buffer.c: At top level: buffer.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int] listbuffers(f, n) ^~~~~~~~~~~ buffer.c: In function 'listbuffers': buffer.c:160:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:160:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c: In function 'makelist': buffer.c:200:6: warning: implicit declaration of function 'addline'; did you mean 'getline'? [-Wimplicit-function-declaration] if (addline(blp, line) == FALSE) return NULL; ^~~~~~~ getline buffer.c: At top level: buffer.c:277:1: warning: return type defaults to 'int' [-Wimplicit-int] addline(bp, text) register BUFFER *bp; char *text; { ^~~~~~~ buffer.c:307:1: warning: return type defaults to 'int' [-Wimplicit-int] anycb(f) { ^~~~~ buffer.c: In function 'anycb': buffer.c:307:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:318:30: warning: implicit declaration of function 'eyorn' [-Wimplicit-function-declaration] if ((f == TRUE || (save = eyorn(prompt)) == TRUE) ^~~~~ buffer.c:319:8: warning: implicit declaration of function 'buffsave' [-Wimplicit-function-declaration] && buffsave(bp) == TRUE) { ^~~~~~~~ buffer.c: In function 'bfind': buffer.c:340:1: warning: type of 'cflag' defaults to 'int' [-Wimplicit-int] bfind(bname, cflag) register char *bname; { ^~~~~ buffer.c:342:9: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] char *malloc(); ^~~~~~ buffer.c:363:3: warning: incompatible implicit declaration of built-in function 'free' free((char *) bp); ^~~~ buffer.c:363:3: note: include '' or provide a declaration of 'free' buffer.c:367:3: warning: incompatible implicit declaration of built-in function 'free' free(bp->b_bname); ^~~~ buffer.c:367:3: note: include '' or provide a declaration of 'free' buffer.c: At top level: buffer.c:403:1: warning: return type defaults to 'int' [-Wimplicit-int] bclear(bp) register BUFFER *bp; { ^~~~~~ buffer.c: In function 'bclear': buffer.c:409:8: warning: implicit declaration of function 'eyesno' [-Wimplicit-function-declaration] && (s=eyesno("Buffer modified; kill anyway")) != TRUE) ^~~~~~ buffer.c: At top level: buffer.c:425:1: warning: return type defaults to 'int' [-Wimplicit-int] showbuffer(bp, wp, flags) register BUFFER *bp; register WINDOW *wp; { ^~~~~~~~~~ buffer.c: In function 'showbuffer': buffer.c:425:1: warning: type of 'flags' defaults to 'int' [-Wimplicit-int] buffer.c: At top level: buffer.c:490:1: warning: return type defaults to 'int' [-Wimplicit-int] bufferinsert(f, n) ^~~~~~~~~~~~ buffer.c: In function 'bufferinsert': buffer.c:490:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:490:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c:521:8: warning: implicit declaration of function 'linsert'; did you mean 'l_next'? [-Wimplicit-function-declaration] if (linsert(1, lgetc(clp, clo)) == FALSE) ^~~~~~~ l_next buffer.c:524:7: warning: implicit declaration of function 'newline'; did you mean 'getline'? [-Wimplicit-function-declaration] if (newline(FFRAND, 1) == FALSE) /* fake newline */ ^~~~~~~ getline buffer.c: At top level: buffer.c:545:1: warning: return type defaults to 'int' [-Wimplicit-int] notmodified(f, n) ^~~~~~~~~~~ buffer.c: In function 'notmodified': buffer.c:545:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] buffer.c:545:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] buffer.c: At top level: buffer.c:566:1: warning: return type defaults to 'int' [-Wimplicit-int] popbuftop(bp) ^~~~~~~~~ --- display.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c display.c --- keymap.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c keymap.c --- display.o --- display.c: In function 'vtinit': display.c:127:2: warning: implicit declaration of function 'ttopen'; did you mean 'popen'? [-Wimplicit-function-declaration] ttopen(); ^~~~~~ popen display.c:128:2: warning: implicit declaration of function 'ttinit'; did you mean 'vtinit'? [-Wimplicit-function-declaration] ttinit(); ^~~~~~ vtinit display.c: In function 'vttidy': display.c:150:2: warning: implicit declaration of function 'ttcolor' [-Wimplicit-function-declaration] ttcolor(CTEXT); ^~~~~~~ display.c:151:2: warning: implicit declaration of function 'ttnowindow' [-Wimplicit-function-declaration] ttnowindow(); /* No scroll window. */ ^~~~~~~~~~ display.c:152:2: warning: implicit declaration of function 'ttmove'; did you mean 'vtmove'? [-Wimplicit-function-declaration] ttmove(nrow-1, 0); /* Echo line. */ ^~~~~~ vtmove display.c:153:2: warning: implicit declaration of function 'tteeol'; did you mean 'vteeol'? [-Wimplicit-function-declaration] tteeol(); ^~~~~~ vteeol display.c:154:2: warning: implicit declaration of function 'tttidy'; did you mean 'vttidy'? [-Wimplicit-function-declaration] tttidy(); ^~~~~~ vttidy display.c:155:2: warning: implicit declaration of function 'ttflush'; did you mean 'fflush'? [-Wimplicit-function-declaration] ttflush(); ^~~~~~~ fflush display.c:156:2: warning: implicit declaration of function 'ttclose'; did you mean 'pclose'? [-Wimplicit-function-declaration] ttclose(); ^~~~~~~ pclose display.c: In function 'vtmove': display.c:167:1: warning: type of 'row' defaults to 'int' [-Wimplicit-int] vtmove(row, col) { ^~~~~~ display.c:167:1: warning: type of 'col' defaults to 'int' [-Wimplicit-int] display.c: In function 'update': display.c:279:6: warning: implicit declaration of function 'typeahead' [-Wimplicit-function-declaration] if (typeahead()) return; ^~~~~~~~~ display.c:418:3: warning: implicit declaration of function 'tteeop'; did you mean 'vteeol'? [-Wimplicit-function-declaration] tteeop(); ^~~~~~ vteeol display.c:461:4: warning: implicit declaration of function 'panic' [-Wimplicit-function-declaration] panic("Illegal screen size in update"); ^~~~~ display.c: In function 'uline': display.c:536:6: warning: type of 'row' defaults to 'int' [-Wimplicit-int] VOID uline(row, vvp, pvp) VIDEO *vvp; VIDEO *pvp; { ^~~~~ display.c:565:4: warning: implicit declaration of function 'ttputc'; did you mean 'vtputc'? [-Wimplicit-function-declaration] ttputc(*cp1++); ^~~~~~ vtputc display.c: In function 'modeline': display.c:646:7: warning: implicit declaration of function 'vtputs'; did you mean 'vtpute'? [-Wimplicit-function-declaration] n += vtputs("Mg: "); ^~~~~~ vtpute display.c: At top level: display.c:671:1: warning: return type defaults to 'int' [-Wimplicit-int] vtputs(s) register char *s; { ^~~~~~ display.c: In function 'setscores': display.c:740:1: warning: type of 'offs' defaults to 'int' [-Wimplicit-int] setscores(offs, size) { ^~~~~~~~~ display.c:740:1: warning: type of 'size' defaults to 'int' [-Wimplicit-int] display.c: In function 'traceback': display.c:826:6: warning: type of 'offs' defaults to 'int' [-Wimplicit-int] VOID traceback(offs, size, i, j) { ^~~~~~~~~ display.c:826:6: warning: type of 'size' defaults to 'int' [-Wimplicit-int] display.c:826:6: warning: type of 'i' defaults to 'int' [-Wimplicit-int] display.c:826:6: warning: type of 'j' defaults to 'int' [-Wimplicit-int] --- keymap.o --- keymap.c:1072:8: warning: return type defaults to 'int' [-Wimplicit-int] static name_fent(fname, flag) ^~~~~~~~~ keymap.c:1107:1: warning: return type defaults to 'int' [-Wimplicit-int] complete_function(fname, c) ^~~~~~~~~~~~~~~~~ keymap.c: In function 'complete_function': keymap.c:1107:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int] --- modes.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c modes.c --- dired.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c dired.c --- modes.o --- modes.c:52:1: warning: return type defaults to 'int' [-Wimplicit-int] indentmode(f, n) ^~~~~~~~~~ modes.c: In function 'indentmode': modes.c:52:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] modes.c:52:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] modes.c: At top level: modes.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] fillmode(f, n) ^~~~~~~~ modes.c: In function 'fillmode': modes.c:57:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] modes.c:57:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] modes.c: At top level: modes.c:65:1: warning: return type defaults to 'int' [-Wimplicit-int] blinkparen(f, n) ^~~~~~~~~~ modes.c: In function 'blinkparen': modes.c:65:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] modes.c:65:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] modes.c: At top level: modes.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int] overwrite(f, n) ^~~~~~~~~ modes.c:93:1: warning: return type defaults to 'int' [-Wimplicit-int] set_default_mode(f, n) ^~~~~~~~~~~~~~~~ modes.c: In function 'set_default_mode': modes.c:100:8: warning: implicit declaration of function 'eread'; did you mean 'fread'? [-Wimplicit-function-declaration] if(eread("Set Default Mode: ", mode, 32, EFNEW) != TRUE) ^~~~~ fread --- dired.o --- dired.c:11:1: warning: return type defaults to 'int' [-Wimplicit-int] dired(f, n) ^~~~~ dired.c: In function 'dired': dired.c:18:8: warning: implicit declaration of function 'eread'; did you mean 'fread'? [-Wimplicit-function-declaration] if(eread("Dired: ", dirname, NFILEN, EFNEW | EFCR) == ABORT) ^~~~~ fread dired.c:22:12: warning: implicit declaration of function 'showbuffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] return showbuffer(bp, curwp, WFHARD | WFMODE); ^~~~~~~~~~ setbuffer dired.c: At top level: dired.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] d_otherwindow(f, n) ^~~~~~~~~~~~~ dired.c:44:1: warning: return type defaults to 'int' [-Wimplicit-int] d_del(f, n) ^~~~~ dired.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] d_undel(f, n) ^~~~~~~ dired.c: In function 'd_undel': dired.c:63:22: warning: implicit declaration of function 'd_undelbak'; did you mean 'd_undel'? [-Wimplicit-function-declaration] if(n < 0) return d_undelbak(f, -n); ^~~~~~~~~~ d_undel dired.c: At top level: dired.c:76:1: warning: return type defaults to 'int' [-Wimplicit-int] d_undelbak(f, n) ^~~~~~~~~~ dired.c:92:1: warning: return type defaults to 'int' [-Wimplicit-int] d_findfile(f, n) ^~~~~~~~~~ dired.c: In function 'd_findfile': dired.c:100:13: warning: implicit declaration of function 'd_makename'; did you mean 'keyname'? [-Wimplicit-function-declaration] if((s = d_makename(curwp->w_dotp, fname)) == ABORT) return FALSE; ^~~~~~~~~~ keyname dired.c:105:12: warning: implicit declaration of function 'readin'; did you mean 'rewind'? [-Wimplicit-function-declaration] return readin(fname); ^~~~~~ rewind dired.c: At top level: dired.c:109:1: warning: return type defaults to 'int' [-Wimplicit-int] d_ffotherwindow(f, n) ^~~~~~~~~~~~~~~ dired.c:128:1: warning: return type defaults to 'int' [-Wimplicit-int] d_expunge(f, n) ^~~~~~~~~ dired.c: In function 'd_expunge': dired.c:143:10: warning: implicit declaration of function 'unlink'; did you mean 'unlinkdir'? [-Wimplicit-function-declaration] if(unlink(fname) < 0) { ^~~~~~ unlinkdir In file included from def.h:10:0, from dired.c:4: sysdef.h:27:23: warning: implicit declaration of function 'rmdir' [-Wimplicit-function-declaration] #define unlinkdir(fn) rmdir(fn) /* unlink directory */ ^ dired.c:149:10: note: in expansion of macro 'unlinkdir' if(unlinkdir(fname) < 0) { ^~~~~~~~~ dired.c: At top level: dired.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int] d_copy(f, n) ^~~~~~ dired.c: In function 'd_copy': dired.c:175:12: warning: implicit declaration of function 'copy'; did you mean 'bcopy'? [-Wimplicit-function-declaration] return copy(frname, toname) >= 0; ^~~~ bcopy dired.c: At top level: dired.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int] d_rename(f, n) ^~~~~~~~ --- extend.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c extend.c extend.c:28:1: warning: return type defaults to 'int' [-Wimplicit-int] insert(f, n) ^~~~~~ extend.c: In function 'insert': extend.c:40:46: warning: implicit declaration of function 'lnewline'; did you mean 'getline'? [-Wimplicit-function-declaration] if((((c=maclcur->l_text[count]) == '\n') ? lnewline() ^~~~~~~~ getline extend.c:41:9: warning: implicit declaration of function 'linsert'; did you mean 'insert'? [-Wimplicit-function-declaration] : linsert(1, c)) != TRUE) return FALSE; ^~~~~~~ insert extend.c:49:8: warning: implicit declaration of function 'eread'; did you mean 'fread'? [-Wimplicit-function-declaration] if(eread("Insert: ", buf, sizeof(buf), EFNEW) == FALSE) return FALSE; ^~~~~ fread extend.c: In function 'dobind': extend.c:324:26: warning: implicit declaration of function 'getkey'; did you mean 'setkey'? [-Wimplicit-function-declaration] pep = keyname(pep, c = getkey(FALSE)); ^~~~~~ setkey extend.c: At top level: extend.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int] bindtokey(f, n) ^~~~~~~~~ extend.c: In function 'bindtokey': extend.c:386:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:386:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c: At top level: extend.c:395:1: warning: return type defaults to 'int' [-Wimplicit-int] localbind(f, n) ^~~~~~~~~ extend.c: In function 'localbind': extend.c:395:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:395:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c: At top level: extend.c:405:1: warning: return type defaults to 'int' [-Wimplicit-int] define_key(f, n) ^~~~~~~~~~ extend.c: In function 'define_key': extend.c:405:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:405:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c:409:19: error: macro "strncat" requires 3 arguments, but only 1 given char *strncat(); ^ extend.c: At top level: extend.c:421:1: warning: return type defaults to 'int' [-Wimplicit-int] unbindtokey(f, n) ^~~~~~~~~~~ extend.c:427:1: warning: return type defaults to 'int' [-Wimplicit-int] localunbind(f, n) ^~~~~~~~~~~ extend.c:441:1: warning: return type defaults to 'int' [-Wimplicit-int] extend(f, n) ^~~~~~ extend.c: In function 'extend': extend.c:441:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:441:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c: At top level: extend.c:486:1: warning: return type defaults to 'int' [-Wimplicit-int] evalexpr(f, n) ^~~~~~~~ extend.c: In function 'evalexpr': extend.c:486:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:486:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c:491:11: warning: implicit declaration of function 'ereply' [-Wimplicit-function-declaration] if ((s = ereply("Eval: ", exbuf, 128)) != TRUE) ^~~~~~ extend.c:493:9: warning: implicit declaration of function 'excline'; did you mean 'getline'? [-Wimplicit-function-declaration] return excline(exbuf); ^~~~~~~ getline extend.c: At top level: extend.c:500:1: warning: return type defaults to 'int' [-Wimplicit-int] evalbuffer(f, n) ^~~~~~~~~~ extend.c: In function 'evalbuffer': extend.c:500:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:500:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c: At top level: extend.c:520:1: warning: return type defaults to 'int' [-Wimplicit-int] evalfile(f, n) ^~~~~~~~ extend.c: In function 'evalfile': extend.c:520:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] extend.c:520:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] extend.c:527:9: warning: implicit declaration of function 'load' [-Wimplicit-function-declaration] return load(fname); ^~~~ extend.c: At top level: extend.c:533:1: warning: return type defaults to 'int' [-Wimplicit-int] load(fname) char *fname; { ^~~~ extend.c: In function 'load': extend.c:541:6: warning: implicit declaration of function 'ffropen'; did you mean 'fropen'? [-Wimplicit-function-declaration] if (ffropen(fname) != FIOSUC) return FALSE; ^~~~~~~ fropen extend.c:542:14: warning: implicit declaration of function 'ffgetline'; did you mean 'getline'? [-Wimplicit-function-declaration] while ((s = ffgetline(excbuf, sizeof(excbuf)-1, &nbytes)) == FIOSUC) { ^~~~~~~~~ getline extend.c:550:9: warning: implicit declaration of function 'ffclose'; did you mean 'fclose'? [-Wimplicit-function-declaration] (VOID) ffclose(); ^~~~~~~ fclose extend.c: At top level: extend.c:564:1: warning: return type defaults to 'int' [-Wimplicit-int] excline(line) ^~~~~~~ --- help.o --- gcc -O2 -D_FORTIFY_SOURCE=2 -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK -c help.c --- extend.o --- *** [extend.o] Error code 1 make: stopped in /tmp/editors/mg2a/work/mg2a --- help.o --- help.c:21:1: warning: return type defaults to 'int' [-Wimplicit-int] desckey(f, n) ^~~~~~~ help.c: In function 'desckey': help.c:21:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] help.c:21:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] help.c:43:58: warning: implicit declaration of function 'getkey'; did you mean 'getkbd'? [-Wimplicit-function-declaration] pep = keyname(pep, key.k_chars[key.k_count++] = c = getkey(FALSE)); ^~~~~~ getkbd help.c: At top level: help.c:95:1: warning: return type defaults to 'int' [-Wimplicit-int] wallchart(f, n) ^~~~~~~~~ help.c: In function 'wallchart': help.c:95:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] help.c:95:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int] help.c:101:6: warning: implicit declaration of function 'bclear' [-Wimplicit-function-declaration] if (bclear(bp) != TRUE) return FALSE; /* Clear it out. */ ^~~~~~ help.c:105:10: warning: implicit declaration of function 'addline'; did you mean 'getline'? [-Wimplicit-function-declaration] if((addline(bp, locbind) == FALSE) || ^~~~~~~ getline help.c:111:9: warning: implicit declaration of function 'popbuftop'; did you mean 'popbuf'? [-Wimplicit-function-declaration] return popbuftop(bp); ^~~~~~~~~ popbuf help.c: At top level: help.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int] help_help(f, n) ^~~~~~~~~ help.c:190:1: warning: return type defaults to 'int' [-Wimplicit-int] apropos_command(f, n) ^~~~~~~~~~~~~~~ help.c: In function 'apropos_command': help.c:198:8: warning: implicit declaration of function 'eread'; did you mean 'fread'? [-Wimplicit-function-declaration] if(eread("apropos: ", string, sizeof(string), EFNEW) == ABORT) return ABORT; ^~~~~ fread 1 error make: stopped in /tmp/editors/mg2a/work/mg2a *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/editors/mg2a *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/editors/mg2a