=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/editors/ve", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for ve-1.0 --- edit.o --- --- term.o --- --- edit.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c edit.c --- term.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c term.c --- edit.o --- edit.c:49:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 49 | {"N", "J"}; | ^~~~~~~~~~~~ edit.c:49:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 49 | {"N", "J"}; | ^~~~~~~~~~~~ edit.c:59:13: warning: parameter 'i' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 59 | indigestion(i) | ^ 60 | { --- term.o --- term.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- edit.o --- edit.c:61:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- term.o --- 155 | outcf(ch) | ^ --- edit.o --- 61 | fprintf(stderr, "Y %d\n", i); --- term.o --- term.c:177:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] --- edit.o --- | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ --- term.o --- 177 | char *tgetstr(); | ^ --- edit.o --- edit.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- term.o --- /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:61:31: note: conflicting prototype is here --- edit.o --- 59 | indigestion(i) | ^ --- term.o --- 61 | extern NCURSES_EXPORT(char *) tgetstr (const char *, char **); | ^ --- edit.o --- edit.c:97:12: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 97 | register ansix = 0; --- term.o --- term.c:203:23: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] --- edit.o --- | ~~~~~~~~ ^ | int edit.c:128:33: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- term.o --- 203 | tputs(s, t_lines, outcf); | ^~~~~ /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here --- edit.o --- 128 | static char *edit_mode[2] = {"N", "J"}; | ^~~~~~~~~~~~ edit.c:128:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 128 | static char *edit_mode[2] = {"N", "J"}; --- term.o --- 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ --- edit.o --- | ^~~~~~~~~~~~ --- term.o --- term.c:211:17: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] --- edit.o --- edit.c:134:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- term.o --- 211 | tputs(s, 1, outcf); | ^~~~~ --- edit.o --- 134 | move(b_lines, 0); | ^ --- term.o --- /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here --- edit.o --- edit.c:135:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 135 | clrtoeol(); | ^ edit.c:136:3: warning: call to undeclared function 'prints'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- term.o --- 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ term.c:219:17: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] 219 | tputs(s, 1, outcf); | ^~~~~ /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here --- edit.o --- 136 | prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", | ^ edit.c:136:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- term.o --- 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ term.c:227:17: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] 227 | tputs(s, 1, outcf); | ^~~~~ /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here --- edit.o --- 136 | prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", | ^~~~ ~~~~~~~~~~~~ edit.c:136:61: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- term.o --- 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ term.c:235:17: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] --- edit.o --- 136 | prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", | ^~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ edit.c:136:99: warning: illegal character encoding in string literal [-Winvalid-source-encoding] --- term.o --- 235 | tputs(s, 1, outcf); | ^~~~~ /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ term.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | term_init(term) | ^ --- edit.o --- 136 | prints("\033[%sm s峹 \033[31;47m (Ctrl-G)\033[30m uWU \033[31m(^X,^Q)\033[30m ɮ׳Bz %sx%c%c%c%c %3d:%3d \033[m", | ^~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ edit.c:146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | back_line(pos, num) | ^ edit.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | forward_line(pos, num) | ^ edit.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | killsp(s) | ^ --- term.o --- term.c:265:42: warning: incompatible function pointer types passing 'void ()' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types] --- edit.o --- edit.c:211:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] --- term.o --- 265 | tputs(tgoto(cm, destcol, destline), 0, ochar); --- edit.o --- 211 | extern void *malloc(); --- term.o --- | ^~~~~ --- edit.o --- | ^ --- term.o --- /var/tmp/work/editors/ve/work/.buildlink/include/ncurses/termcap.h:66:60: note: passing argument to parameter here 66 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int)); | ^ --- edit.o --- edit.c:214:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 214 | if (p = (textline *) malloc(sizeof(textline))) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- term.o --- term.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | do_move(destcol, destline) | ^ --- edit.o --- edit.c:214:9: note: place parentheses around the assignment to silence this warning 214 | if (p = (textline *) malloc(sizeof(textline))) | ^ | ( ) edit.c:214:9: note: use '==' to turn this assignment into an equality comparison 214 | if (p = (textline *) malloc(sizeof(textline))) | ^ | == edit.c:221:3: warning: call to undeclared function 'abort_bbs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 221 | abort_bbs(); | ^ edit.c:222:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 222 | } | ^ edit.c:235:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 235 | if (p->next = n = line->next) | ~~~~~~~~^~~~~~~~~~~~~~~~ edit.c:235:15: note: place parentheses around the assignment to silence this warning 235 | if (p->next = n = line->next) | ^ | ( ) edit.c:235:15: note: use '==' to turn this assignment into an equality comparison 235 | if (p->next = n = line->next) | ^ | == edit.c:230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | append(p, line) | ^ edit.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | delete_line(line) | ^ edit.c:280:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 280 | undelete_line() | ^ | int edit.c:296:4: warning: call to undeclared function 'insert_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 296 | insert_string(deleted_lines->data); | ^ edit.c:307:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 307 | } | ^ edit.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | split(line, pos) | ^ edit.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | join(line) | ^ edit.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | insert_char(ch) | ^ edit.c:468:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 468 | insert_string(str) | ^ | int edit.c:473:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 473 | while (ch = *str++) | ~~~^~~~~~~~ edit.c:473:13: note: place parentheses around the assignment to silence this warning 473 | while (ch = *str++) | ^ | ( ) edit.c:473:13: note: use '==' to turn this assignment into an equality comparison 473 | while (ch = *str++) | ^ | == edit.c:477:9: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 477 | if (isprint2(ch) || ch == '') | ^ edit.c:468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | insert_string(str) | ^ edit.c:495:1: warning: non-void function does not return a value [-Wreturn-type] 495 | } | ^ edit.c:503:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 503 | if (len = currline->len) | ~~~~^~~~~~~~~~~~~~~ edit.c:503:11: note: place parentheses around the assignment to silence this warning 503 | if (len = currline->len) | ^ | ( ) edit.c:503:11: note: use '==' to turn this assignment into an equality comparison 503 | if (len = currline->len) | ^ | == edit.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | load_file(fp) | ^ edit.c:542:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 542 | static char msg[] = "пܼȦs (0-9)[0]: "; | ^~~~ ~~~~~~~~ ~~~~~~~~ edit.c:547:10: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 547 | if (!getdata(3, 0, msg, fp_buf + 4, 4, DOECHO)) | ^ edit.c:572:3: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 572 | setuserfile(fp_tmpbuf, tmpf); | ^ edit.c:577:27: warning: call to undeclared function 'more'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 577 | if (n != 0 && n != 5 && more(fp_tmpbuf, NA) != -1) | ^ edit.c:578:6: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 578 | getdata(b_lines - 1, 0, "TwŪJ(Y/N)?[Y]", ans, 4, LCECHO); | ^ edit.c:578:31: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 578 | getdata(b_lines - 1, 0, "TwŪJ(Y/N)?[Y]", ans, 4, LCECHO); | ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:601:3: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 601 | setuserfile(fp_tmpbuf, ask_tmpbuf()); | ^ edit.c:602:7: warning: call to undeclared function 'dashf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 602 | if (dashf(fp_tmpbuf)) | ^ edit.c:604:5: warning: call to undeclared function 'more'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 604 | more(fp_tmpbuf, NA); | ^ edit.c:605:5: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 605 | getdata(b_lines - 1, 0, "Ȧsɤw (A)[ (W)мg (Q)H[A] ", | ^ edit.c:605:30: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 605 | getdata(b_lines - 1, 0, "Ȧsɤw (A)[ (W)мg (Q)H[A] ", | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:628:3: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 628 | setuserfile(fp_tmpbuf, ask_tmpbuf()); | ^ edit.c:632:7: warning: call to undeclared function 'more'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 632 | if (more(fp_tmpbuf, NA) != -1) | ^ edit.c:633:6: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 633 | getdata(b_lines - 1, 0, "TwR(Y/N)?[N]", ans, 4, LCECHO); | ^ edit.c:633:31: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 633 | getdata(b_lines - 1, 0, "TwR(Y/N)?[N]", ans, 4, LCECHO); | ^~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~ edit.c:653:5: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 653 | setuserfile(bakfile, fp_bak); | ^ edit.c:654:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 654 | if (fp = fopen(bakfile, "w")) | ~~~^~~~~~~~~~~~~~~~~~~~~ edit.c:654:12: note: place parentheses around the assignment to silence this warning 654 | if (fp = fopen(bakfile, "w")) | ^ | ( ) edit.c:654:12: note: use '==' to turn this assignment into an equality comparison 654 | if (fp = fopen(bakfile, "w")) | ^ | == edit.c:674:3: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 674 | setuserfile(bakfile, fp_bak); | ^ edit.c:675:7: warning: call to undeclared function 'dashf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 675 | if (dashf(bakfile)) | ^ edit.c:677:5: warning: call to undeclared function 'stand_title'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 677 | stand_title("s边۰ʴ_"); | ^ edit.c:677:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 677 | stand_title("s边۰ʴ_"); | ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:678:5: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 678 | getdata(1, 0, "z@g峹|A(S)gJȦs (Q)FH[S] ", | ^ edit.c:678:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 678 | getdata(1, 0, "z@g峹|A(S)gJȦs (Q)FH[S] ", | ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:698:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | read_file(fpath) | ^ edit.c:721:6: warning: call to undeclared function 'stand_title'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 721 | stand_title("ɮ׳Bz"); | ^ edit.c:721:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 721 | stand_title("ɮ׳Bz"); | ^~~~ ~~~~ edit.c:722:6: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 722 | getdata(1, 0, "[S]xs (A) (E)~ (R/W/D)ŪgRȦsɡH", ans, 4, LCECHO); | ^ edit.c:722:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 722 | getdata(1, 0, "[S]xs (A) (E)~ (R/W/D)ŪgRȦsɡH", ans, 4, LCECHO); | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~ edit.c:730:5: warning: call to undeclared function 'outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 730 | outs("峹[1m S [0msJ"); | ^ edit.c:730:11: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 730 | outs("峹[1m S [0msJ"); | ^~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:761:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 761 | sprintf(buf, "gJĵi: %s wQ䥦{ʹL", FPath); | ^~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ edit.c:762:9: warning: call to undeclared function 'stand_title'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 762 | stand_title(buf); | ^ edit.c:763:9: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 763 | getdata(1, 0, "Twxs(Y/N)H[N]", ans, 4, LCECHO); | ^ edit.c:763:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 763 | getdata(1, 0, "Twxs(Y/N)H[N]", ans, 4, LCECHO); | ^~~~ ~~~~ ~~~~ ~~~~ ~~~~ edit.c:768:9: warning: call to undeclared function 'stand_title'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 768 | stand_title("gJ: gȦs"); | ^ edit.c:768:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 768 | stand_title("gJ: gȦs"); | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:782:9: warning: call to undeclared function 'trim'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 782 | trim(line); | ^ edit.c:796:6: warning: call to undeclared function 'convert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 796 | convert(FPath); | ^ edit.c:711:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | write_file(fpath, saveheader) | ^ edit.c:805:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 805 | edit_outs(text) | ^ | int edit.c:813:5: warning: call to undeclared function 'outch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 813 | outch(ch == 27 ? '*' : ch); | ^ edit.c:805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 805 | edit_outs(text) | ^ edit.c:815:1: warning: non-void function does not return a value [-Wreturn-type] 815 | } | ^ edit.c:817:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 817 | block_outs(char* text, int column) | ^ | int edit.c:823:5: warning: call to undeclared function 'outch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 823 | outch(ch == 27 ? '*' : ch); | ^ edit.c:825:1: warning: non-void function does not return a value [-Wreturn-type] 825 | } | ^ edit.c:853:5: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 853 | move(i, 0); | ^ edit.c:854:5: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 854 | clrtoeol(); | ^ edit.c:865:12: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | outs("[7m"); | ^ edit.c:874:17: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | outs("[0m"); | ^ edit.c:879:14: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | outs("[7m"); | ^ edit.c:890:14: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | outs("[0m"); | ^ edit.c:894:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | OUTS(&p->data[edit_margin]); | ^ --- term.o --- 10 warnings generated. --- edit.o --- edit.c:897:14: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | outs("[0m"); | ^ edit.c:900:7: warning: call to undeclared function 'outch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 900 | outch('~'); | ^ edit.c:908:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 908 | "\01@O", | ^~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:909:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 909 | "^X ɮ׳Bz ^L sܵe", | ^~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:910:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 910 | "^V ANSIm ^G ܥDUe", | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:911:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 911 | "\01вʫO", | ^~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ edit.c:912:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 912 | " Ჾʤ@ ^A,Home 즹}Y", | ^~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:913:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 913 | " eʤ@ ^E,End 즹浲", | ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~ edit.c:914:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 914 | ",^P Wʤ@ (ESC-,) ɮ}Y", | ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ edit.c:915:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 915 | ",^N Uʤ@ (ESC-.),^T ɮ", | ^~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ edit.c:916:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 916 | "^B,PgUp Wʤ@ ^F,PgDn Uʤ@", | ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:917:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 917 | "\01RJO", | ^~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ edit.c:918:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 918 | "^O,Ins ܼҦ J/л\\[m", | ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ edit.c:919:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 919 | "^H,BS Re@Ӧr", | ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:920:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 920 | "(ESC-l) аO϶", | ^~~~ ~~~~ ~~~~ edit.c:921:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 921 | "^D,Del Rثer ANSIx¬ŵQ", | ^~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~ edit.c:922:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 922 | "^K RФܦ ex[47;30;1m30[31m31[32m32[33m33[34m34[35m35[36m36[37m37[0m", | ^~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~ edit.c:923:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 923 | "^Y Rثeo Ix[40;33;1m40[41m41[42m42[43m43[44m44[45m45[46m46[47m47[0m", | ^~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~ edit.c:924:7: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 924 | "\01SO", | ^~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:925:13: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 925 | "^U J ESC X(H * ) ^C ٭/]w ANSI m", | ^~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~ edit.c:926:4: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 926 | "ԲӪGless -r /opt/pkg/share/ve/ve.hlp", | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:937:3: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 937 | clear(); | ^ edit.c:941:7: warning: call to undeclared function 'prints'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 941 | prints("[1mi %s j[0m\n", str + 1); | ^ edit.c:941:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 941 | prints("[1mi %s j[0m\n", str + 1); | ^~~~ ~~~~ edit.c:943:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 943 | prints("\n[36mi %s j[m\n", str + 1); | ^~~~ ~~~~ edit.c:947:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 947 | move(0, 0); | ^ edit.c:948:3: warning: call to undeclared function 'prints'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 948 | prints((rp = realpath(FPath, resolvedname)) ? resolvedname : FPath); | ^ edit.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | show_help(helptext) | ^ In file included from edit.c:11: In file included from ./bbs.h:73: ./global.h:67:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 67 | void show_help(); | ^ edit.c:959:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 959 | goto_line(int lino) | ^ | int edit.c:963:20: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 963 | if (lino > 0 || getdata(b_lines - 1, 0, "ܲĴX:", buf, 10, DOECHO) | ^ edit.c:963:45: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 963 | if (lino > 0 || getdata(b_lines - 1, 0, "ܲĴX:", buf, 10, DOECHO) | ^~~~~~~~~~~~ ~~~~~~~~ edit.c:996:1: warning: non-void function does not return a value [-Wreturn-type] 996 | } | ^ edit.c:1022:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1022 | search_str(int mode) | ^ | int --- screen.o --- --- edit.o --- edit.c:1031:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1031 | sprintf(buf, "Mr[%s]", str); | ^~~~ ~~~~~~~~~~~~ ~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ edit.c:1032:11: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1032 | if (getdata(b_lines - 1, 0, buf, buf, 40, DOECHO)) | ^ edit.c:1035:39: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1035 | if (getdata(b_lines - 1, 0, "Ϥjpg(Y/N/Q)? [N] ", ans, 4, LCECHO) | ^~~~ ~~~~~~~~ ~~~~ ~~~~ edit.c:1038:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1038 | else | ^ edit.c:1057:27: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1057 | fptr(p->data + (lino == currln ? currpnt + 1 : 0), str)) | ^ edit.c:1071:28: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1071 | if ((pos = fptr(p->data, str)) | ^ edit.c:1101:1: warning: non-void function does not return a value [-Wreturn-type] 1101 | } | ^ edit.c:1237:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1237 | block_del(int hide) | ^ | int edit.c:1252:7: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1252 | move(b_lines - 1, 0); | ^ edit.c:1253:7: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1253 | clrtoeol(); | ^ edit.c:1256:26: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1256 | else if (!hide && !getdata(b_lines - 1, 0, "϶ܼȦs (0:Cut, 5:Copy, 6-9, q: Cancel)[0] ", tmpfname + 4, 4, LCECHO)) | ^ edit.c:1256:51: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1256 | else if (!hide && !getdata(b_lines - 1, 0, "϶ܼȦs (0:Cut, 5:Copy, 6-9, q: Cancel)[0] ", tmpfname + 4, 4, LCECHO)) | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ edit.c:1261:10: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1261 | setuserfile(fp_tmpbuf, tmpfname); | ^ edit.c:1262:36: warning: call to undeclared function 'dashf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1262 | if (tmpfname[4] != '5' && dashf(fp_tmpbuf)) { | ^ edit.c:1263:13: warning: call to undeclared function 'more'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1263 | more(fp_tmpbuf, NA); | ^ edit.c:1264:38: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1264 | getdata(b_lines - 1, 0, "Ȧsɤw (A)[ (W)мg (Q)H[W] ", ans, 4, LCECHO); | ^~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ edit.c:1271:39: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1271 | getdata(b_lines - 1, 0, "R϶(Y/N)?[N] ", ans + 2, 4, LCECHO); | ^~~~ ~~~~~~~~~~~~ ~~~~ edit.c:1305:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1305 | else | ^ edit.c:1328:10: warning: call to undeclared function 'setuserfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1328 | setuserfile(fp_tmpbuf, tmpfname); | ^ edit.c:1329:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1329 | if (fp = fopen(fp_tmpbuf, ans)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ edit.c:1329:17: note: place parentheses around the assignment to silence this warning 1329 | if (fp = fopen(fp_tmpbuf, ans)) { | ^ | ( ) edit.c:1329:17: note: use '==' to turn this assignment into an equality comparison 1329 | if (fp = fopen(fp_tmpbuf, ans)) { | ^ | == edit.c:1380:1: warning: non-void function does not return a value [-Wreturn-type] 1380 | } | ^ edit.c:1382:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1382 | block_shift_left() | ^ | int edit.c:1409:1: warning: non-void function does not return a value [-Wreturn-type] 1409 | } | ^ edit.c:1411:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1411 | block_shift_right() | ^ | int edit.c:1442:1: warning: non-void function does not return a value [-Wreturn-type] 1442 | } --- screen.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c screen.c --- edit.o --- | ^ edit.c:1445:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1445 | transform_to_color(char* line) | ^ | int edit.c:1455:1: warning: non-void function does not return a value [-Wreturn-type] 1455 | } | ^ edit.c:1458:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1458 | block_color() | ^ | int edit.c:1479:1: warning: non-void function does not return a value [-Wreturn-type] 1479 | } | ^ edit.c:1532:5: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1532 | move(curr_window_line, ch); | ^ edit.c:1535:10: warning: call to undeclared function 'igetkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1535 | ch = igetkey(); | ^ edit.c:1550:46: warning: passing arguments to 'phone_char' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1550 | else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) | ^ edit.c:1550:69: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1550 | else if (phone_mode && (pstr = phone_char(ch)) || ch < 0x100 && isprint2(ch)) | ^ edit.c:1625:14: warning: call to undeclared function 'ask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1625 | ch = ask("xs (Y/N)? [N]: "); | ^ edit.c:1625:19: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1625 | ch = ask("xs (Y/N)? [N]: "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ edit.c:1627:12: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1627 | clear(); | ^ edit.c:1648:15: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1648 | outs("\033[1;33;40mB\033[41mR\033[42mG\033[43mY\033[44mL\033[45mP\033[46mC\033[47mW\033[m"); | ^ edit.c:1649:15: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1649 | if (getdata(b_lines - 1, 0, "пJ G/e/I[`զr©][0wb]G", ans, 4, LCECHO)) | ^ edit.c:1649:40: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1649 | if (getdata(b_lines - 1, 0, "пJ G/e/I[`զr©][0wb]G", ans, 4, LCECHO)) | ^~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~ edit.c:1666:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1666 | if (tmp = strchr(t, toupper(*(apos++)))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:1666:26: note: place parentheses around the assignment to silence this warning 1666 | if (tmp = strchr(t, toupper(*(apos++)))) | ^ | ( ) edit.c:1666:26: note: use '==' to turn this assignment into an equality comparison 1666 | if (tmp = strchr(t, toupper(*(apos++)))) | ^ | == edit.c:1674:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1674 | if (tmp = strchr(t, toupper(*(apos++)))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ edit.c:1674:26: note: place parentheses around the assignment to silence this warning 1674 | if (tmp = strchr(t, toupper(*(apos++)))) | ^ | ( ) edit.c:1674:26: note: use '==' to turn this assignment into an equality comparison 1674 | if (tmp = strchr(t, toupper(*(apos++)))) | ^ | == edit.c:1700:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 1700 | ch = ask("Tws (Y/N)? [Y]: "); | ^~~~ ~~~~ ~~~~ ~~~~~~~~ edit.c:1869:10: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1869 | clear(); | ^ edit.c:1892:9: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1892 | refresh(); | ^ edit.c:1893:9: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1893 | reset_tty(); | ^ edit.c:1895:9: warning: call to undeclared function 'restore_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1895 | restore_tty(); | ^ edit.c:2010:9: warning: call to undeclared function 'trim'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2010 | trim(currline->data); | ^ edit.c:2047:12: warning: call to undeclared function 'getdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2047 | getdata(b_lines - 1, 0, "϶LեkJr(w]ťզr)", ans, 4); | ^ edit.c:2047:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 2047 | getdata(b_lines - 1, 0, "϶LեkJr(w]ťզr)", ans, 4); | ^~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~ edit.c:2088:19: warning: call to undeclared function 'abort_bbs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2088 | abort_bbs(); | ^ edit.c:2113:15: warning: call to undeclared function 'abort_bbs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2113 | abort_bbs(); | ^ edit.c:2170:15: warning: call to undeclared function 'abort_bbs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2170 | abort_bbs(); | ^ edit.c:2197:11: warning: call to undeclared function 'rscroll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2197 | rscroll(); | ^ edit.c:2211:11: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2211 | clrtoeol(); | ^ edit.c:2212:11: warning: call to undeclared function 'scroll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2212 | scroll(); | ^ edit.c:2228:10: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2228 | clrtoeol(); | ^ edit.c:2230:16: warning: passing arguments to 'outs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2230 | outs(currline->data); | ^ edit.c:1492:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1492 | vedit(fpath, saveheader) | ^ --- screen.o --- screen.c:49:18: warning: incompatible redeclaration of library function 'calloc' [-Wincompatible-library-redeclaration] 49 | extern char *calloc(); | ^ screen.c:49:18: note: 'calloc' is a builtin with type 'void *(unsigned long, unsigned long)' screen.c:54:40: warning: passing arguments to 'calloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | big_picture = (screenline *) calloc(scr_lns, sizeof(screenline)); | ^ screen.c:61:9: warning: parameter 'x' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 61 | move(y, x) | ^ 62 | { screen.c:61:6: warning: parameter 'y' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 61 | move(y, x) | ^ 62 | { screen.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | move(y, x) | ^ screen.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | getyx(y, x) | ^ screen.c:78:36: warning: parameter 'new_ln' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | rel_move(was_col, was_ln, new_col, new_ln) | ^ 79 | { screen.c:78:27: warning: parameter 'new_col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | rel_move(was_col, was_ln, new_col, new_ln) | ^ 79 | { screen.c:78:19: warning: parameter 'was_ln' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | rel_move(was_col, was_ln, new_col, new_ln) | ^ 79 | { screen.c:78:10: warning: parameter 'was_col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 78 | rel_move(was_col, was_ln, new_col, new_ln) | ^ 79 | { screen.c:92:14: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | ochar('\r'); | ^ screen.c:97:12: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | ochar('\n'); | ^ screen.c:99:14: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | ochar('\r'); | ^ screen.c:112:9: warning: call to undeclared function 'tputs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | tputs(BC, 1, ochar); | ^ screen.c:114:14: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | ochar(Ctrl('H')); | ^ screen.c:118:3: warning: call to undeclared function 'do_move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | do_move(new_col, new_ln); | ^ screen.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | rel_move(was_col, was_ln, new_col, new_ln) | ^ screen.c:129:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | output(buf + ds, de - ds); | ^ screen.c:138:13: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | output(buf + ds, sso - ds); | ^ screen.c:139:5: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | o_standup(); | ^ screen.c:30:29: note: expanded from macro 'o_standup' 30 | #define o_standup() output(strtstandout,strtstandoutlen) | ^ screen.c:140:11: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | output(buf + st_start, st_end - st_start); | ^ screen.c:141:5: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | o_standdown(); | ^ screen.c:31:29: note: expanded from macro 'o_standdown' 31 | #define o_standdown() output(endstandout,endstandoutlen) | ^ screen.c:143:13: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | output(buf + eso, de - eso); | ^ screen.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | standoutput(buf, ds, de, sso, eso) | ^ screen.c:157:3: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | o_clear(); | ^ screen.c:27:29: note: expanded from macro 'o_clear' 27 | #define o_clear() output(clearbuf,clearbuflen) | ^ screen.c:163:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 163 | if (len = bp->len) | ~~~~^~~~~~~~~ screen.c:163:13: note: place parentheses around the assignment to silence this warning 163 | if (len = bp->len) | ^ | ( ) screen.c:163:13: note: use '==' to turn this assignment into an equality comparison 163 | if (len = bp->len) | ^ | == screen.c:168:21: warning: passing 'unsigned char[161]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 168 | standoutput(bp->data, 0, len, bp->sso, bp->eso); | ^~~~~~~~ screen.c:170:15: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | output(bp->data, len); | ^ screen.c:190:3: warning: call to undeclared function 'oflush'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | oflush(); | ^ screen.c:204:7: warning: call to undeclared function 'num_in_buf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | if (num_in_buf()) | ^ screen.c:207:19: warning: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 207 | if ((docls) || (abs(scrollcnt) >= (scr_lns - 3))) | ^ screen.c:207:19: note: include the header or explicitly provide a declaration for 'abs' screen.c:223:7: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | o_scrollrev(); | ^ screen.c:29:29: note: expanded from macro 'o_scrollrev' 29 | #define o_scrollrev() output(scrollrev,scrollrevlen) | ^ screen.c:231:12: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | ochar('\n'); | ^ screen.c:249:21: warning: passing 'unsigned char[161]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 249 | standoutput(bp->data, bp->smod, bp->emod + 1, bp->sso, bp->eso); | ^~~~~~~~ screen.c:251:15: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | output(&bp->data[bp->smod], bp->emod - bp->smod + 1); | ^ screen.c:269:7: warning: passing arguments to 'output' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | o_cleol(); | ^ screen.c:28:29: note: expanded from macro 'o_cleol' 28 | #define o_cleol() output(cleolbuf,cleolbuflen) | ^ screen.c:274:3: warning: call to undeclared function 'oflush'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 274 | oflush(); | ^ screen.c:406:24: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 406 | if ((c != '') && !isprint2(c)) | ^ screen.c:413:14: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | ochar('\r'); | ^ screen.c:417:10: warning: passing arguments to 'ochar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | ochar(c); | ^ screen.c:426:22: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | if ((c != '') && !isprint2(c)) | ^ screen.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | outch(c) | ^ screen.c:506:9: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 506 | if (atoi(val) < 30) | ^ screen.c:495:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | parsecolor(buf) | ^ screen.c:562:29: warning: call to undeclared function 'not_alpha'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 562 | else if ((p < 24) && (not_alpha(ch))) | ^ screen.c:573:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 573 | for (i = 0; p = buf[i]; i++) | ~~^~~~~~~~ screen.c:573:23: note: place parentheses around the assignment to silence this warning 573 | for (i = 0; p = buf[i]; i++) | ^ | ( ) screen.c:573:23: note: use '==' to turn this assignment into an equality comparison 573 | for (i = 0; p = buf[i]; i++) | ^ | == screen.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | outc(ch) | ^ screen.c:584:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 584 | outs(str) | ^ | int screen.c:584:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] screen.c:589:1: warning: non-void function does not return a value [-Wreturn-type] 589 | } | ^ screen.c:593:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | outmsg(msg) | ^ 51 warnings generated. --- stuff.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c stuff.c --- edit.o --- 182 warnings generated. --- io.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c io.c --- stuff.o --- stuff.c:89:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | setdirpath(buf, direct, fname) | ^ stuff.c:136:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 136 | if (diff = c1 - c2) | ~~~~~^~~~~~~~~ stuff.c:136:14: note: place parentheses around the assignment to silence this warning 136 | if (diff = c1 - c2) | ^ | ( ) stuff.c:136:14: note: use '==' to turn this assignment into an equality comparison 136 | if (diff = c1 - c2) | ^ | == stuff.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ci_strncmp(s1, s2, n) | ^ stuff.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | str_lower(t, s) | ^ stuff.c:165:10: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] 165 | return (int) strstr(buf, tag); | ^~~~~~~~~~~~~~~~~~~~~~ stuff.c:159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | strstr_lower(str, tag) | ^ stuff.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | trim(buf) /* remove trailing space */ | ^ stuff.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | isprint2(ch) | ^ stuff.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | not_alpha(ch) | ^ stuff.c:211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | not_alnum(ch) | ^ stuff.c:225:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 225 | while (ch = *str++) | ~~~^~~~~~~~ stuff.c:225:13: note: place parentheses around the assignment to silence this warning 225 | while (ch = *str++) | ^ | ( ) stuff.c:225:13: note: use '==' to turn this assignment into an equality comparison 225 | while (ch = *str++) | ^ | == stuff.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | invalid_fname(str) | ^ stuff.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | valid_ident(ident) | ^ stuff.c:286:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | dashf(fname) | ^ stuff.c:296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | dashd(fname) | ^ stuff.c:332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | Cdate(clock) | ^ stuff.c:363:3: warning: call to undeclared function 'outmsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 363 | outmsg("[37;45;1m Ы [33m(Space/Return)[37m ~ [0m"); | ^ stuff.c:363:45: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 363 | outmsg("[37;45;1m Ы [33m(Space/Return)[37m ~ [0m"); | ^~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~ stuff.c:366:10: warning: call to undeclared function 'igetkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 366 | ch = igetkey(); | ^ stuff.c:368:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 368 | move(b_lines, 0); | ^ stuff.c:369:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 369 | clrtoeol(); | ^ stuff.c:370:3: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 370 | refresh(); | ^ stuff.c:382:16: warning: parameter 'max' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 382 | search_num(ch, max) | ^ 383 | { stuff.c:382:12: warning: parameter 'ch' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 382 | search_num(ch, max) | ^ 383 | { stuff.c:388:3: warning: call to undeclared function 'outmsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 388 | outmsg("[7m ܲĴXG[0m"); | ^ stuff.c:388:16: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 388 | outmsg("[7m ܲĴXG[0m"); | ^~~~~~~~~~~~ ~~~~~~~~~~~~ stuff.c:389:3: warning: call to undeclared function 'outc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 389 | outc(ch); | ^ stuff.c:391:3: warning: call to undeclared function 'getyx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 391 | getyx(&y, &x); | ^ stuff.c:393:16: warning: call to undeclared function 'igetch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | while ((ch = igetch()) != '\r') | ^ stuff.c:403:9: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 403 | bell(); | ^ stuff.c:407:7: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 407 | move(y, x + clen); | ^ stuff.c:414:7: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | bell(); | ^ stuff.c:419:7: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 419 | bell(); | ^ stuff.c:426:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | move(b_lines, 0); | ^ stuff.c:427:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 427 | clrtoeol(); | ^ stuff.c:430:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 430 | clen = atoi(genbuf); | ^ stuff.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | search_num(ch, max) | ^ stuff.c:443:3: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 443 | clear(); | ^ stuff.c:444:3: warning: call to undeclared function 'prints'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 444 | prints("[1;37;46mi %s j[0m\n", title); | ^ stuff.c:444:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 444 | prints("[1;37;46mi %s j[0m\n", title); | ^~~~ ~~~~ stuff.c:440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | stand_title(title) | ^ stuff.c:454:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 454 | move(row, column); | ^ stuff.c:455:3: warning: call to undeclared function 'outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 455 | outs(STR_CURSOR); | ^ stuff.c:455:8: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 455 | outs(STR_CURSOR); | ^~~~~~~~~~ ./global.h:88:21: note: expanded from macro 'STR_CURSOR' 88 | #define STR_CURSOR "" | ^~~~~~~~ stuff.c:451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | cursor_show(row, column) | ^ stuff.c:464:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 464 | move(row, column); | ^ stuff.c:465:3: warning: call to undeclared function 'outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 465 | outs(STR_UNCUR); | ^ stuff.c:461:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | cursor_clear(row, column) | ^ stuff.c:495:5: warning: call to undeclared function 'outch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 495 | outch('-'); | ^ stuff.c:500:5: warning: call to undeclared function 'outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 500 | outs(mesg); | ^ stuff.c:484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | printdash(mesg) | ^ stuff.c:509:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 509 | more(char* fpath, int i) | ^ | int stuff.c:514:4: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 514 | clear(); | ^ stuff.c:515:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 515 | if (fp = fopen(fpath, "r")) { | ~~~^~~~~~~~~~~~~~~~~~~ stuff.c:515:11: note: place parentheses around the assignment to silence this warning 515 | if (fp = fopen(fpath, "r")) { | ^ | ( ) stuff.c:515:11: note: use '==' to turn this assignment into an equality comparison 515 | if (fp = fopen(fpath, "r")) { | ^ | == stuff.c:517:10: warning: call to undeclared function 'outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 517 | outs(buf); | ^ stuff.c:520:1: warning: non-void function does not return a value [-Wreturn-type] 520 | } | ^ stuff.c:522:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 522 | setuserfile(char* fpath, char* fname) | ^ | int stuff.c:525:22: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | char* dir = getenv("HOME"); | ^ stuff.c:529:1: warning: non-void function does not return a value [-Wreturn-type] 529 | } | ^ --- io.o --- io.c:131:11: warning: parameter 'len' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 131 | output(s, len) | ^ 132 | char *s; 133 | { io.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | output(s, len) | ^ io.c:147:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 147 | ochar(c) | ^ 148 | { io.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | ochar(c) | ^ io.c:169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | add_io(fd, timeout) | ^ io.c:186:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | add_flush(flushfunc) | ^ io.c:225:11: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | refresh(); | ^ io.c:263:5: warning: call to undeclared function 'redoscr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | redoscr(); | ^ io.c:271:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 271 | return "t"; | ^~~~ io.c:273:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 273 | return "u"; | ^~~~ io.c:275:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 275 | return "v"; | ^~~~ io.c:277:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 277 | return "w"; | ^~~~ io.c:279:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 279 | return "x"; | ^~~~ io.c:281:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 281 | return "y"; | ^~~~ io.c:283:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 283 | return "z"; | ^~~~ io.c:285:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 285 | return "{"; | ^~~~ io.c:287:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 287 | return "|"; | ^~~~ io.c:289:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 289 | return "}"; | ^~~~ io.c:291:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 291 | return "~"; | ^~~~ io.c:293:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 293 | return ""; | ^~~~~~~~ io.c:295:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 295 | return ""; | ^~~~~~~~ io.c:297:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 297 | return ""; | ^~~~~~~~ io.c:299:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 299 | return ""; | ^~~~~~~~ io.c:301:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 301 | return ""; | ^~~~~~~~ io.c:303:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 303 | return ""; | ^~~~~~~~ io.c:305:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 305 | return ""; | ^~~~~~~~ io.c:307:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 307 | return ""; | ^~~~~~~~ io.c:309:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 309 | return ""; | ^~~~~~~~ io.c:311:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 311 | return ""; | ^~~~~~~~ io.c:313:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 313 | return ""; | ^~~~~~~~ io.c:315:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 315 | return ""; | ^~~~~~~~ io.c:317:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 317 | return ""; | ^~~~~~~~ io.c:319:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 319 | return ""; | ^~~~~~~~ io.c:322:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 322 | return ""; | ^~~~~~~~ io.c:324:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 324 | return ""; | ^~~~~~~~ io.c:326:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 326 | return ""; | ^~~~~~~~ io.c:328:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 328 | return ""; | ^~~~~~~~ io.c:330:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 330 | return ""; | ^~~~~~~~ io.c:332:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 332 | return ""; | ^~~~~~~~ io.c:334:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 334 | return ""; | ^~~~~~~~ io.c:336:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 336 | return ""; | ^~~~~~~~ io.c:338:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 338 | return ""; | ^~~~~~~~ io.c:340:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 340 | return ""; | ^~~~~~~~ io.c:342:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 342 | return ""; | ^~~~~~~~ io.c:344:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 344 | return ""; | ^~~~~~~~ io.c:346:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 346 | return ""; | ^~~~~~~~ io.c:348:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 348 | return ""; | ^~~~~~~~ io.c:350:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 350 | return ""; | ^~~~~~~~ io.c:352:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] 352 | return ""; | ^~~~~~~~ io.c:374:5: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 374 | move(line, col); | ^ io.c:375:5: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | clrtoeol(); | ^ io.c:376:5: warning: call to undeclared function 'edit_outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 376 | edit_outs(prompt); | ^ io.c:379:5: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | clrtoeol(); | ^ io.c:393:11: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | bell(); | ^ io.c:407:12: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 407 | if (!isprint2(ch)) | ^ io.c:414:11: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | bell(); | ^ io.c:420:11: warning: call to undeclared function 'bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 420 | bell(); | ^ io.c:428:5: warning: call to undeclared function 'outc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 428 | outc('\n'); | ^ io.c:438:5: warning: call to undeclared function 'getyx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 438 | getyx(&y, &x); | ^ io.c:439:5: warning: call to undeclared function 'standout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 439 | standout(); | ^ io.c:441:7: warning: call to undeclared function 'outc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 441 | outc(' '); | ^ io.c:442:5: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 442 | standend(); | ^ io.c:445:12: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 445 | while (move(y, x + currchar), (ch = igetkey()) != '\r') | ^ io.c:445:41: warning: call to undeclared function 'igetkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 445 | while (move(y, x + currchar), (ch = igetkey()) != '\r') | ^ io.c:468:11: warning: call to undeclared function 'edit_outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | edit_outs(buf); | ^ io.c:500:12: warning: call to undeclared function 'edit_outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 500 | edit_outs(buf); | ^ io.c:540:12: warning: call to undeclared function 'edit_outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 540 | edit_outs(buf); | ^ io.c:564:54: warning: call to undeclared function 'isprint2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 564 | if (!(phone_mode && (pstr = phone_char(ch)) || isprint2(ch) || ch == Ctrl('U'))) | ^ io.c:595:7: warning: call to undeclared function 'edit_outs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 595 | edit_outs(buf + currchar); | ^ io.c:609:5: warning: call to undeclared function 'refresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 609 | refresh(); | ^ io.c:360:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | getdata(line, col, prompt, buf, len, echo) | ^ io.c:722:3: warning: call to undeclared function 'move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 722 | move (0, 0); | ^ io.c:723:3: warning: call to undeclared function 'clrtoeol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 723 | clrtoeol (); | ^ io.c:724:3: warning: call to undeclared function 'standout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 724 | standout (); | ^ io.c:725:3: warning: call to undeclared function 'prints'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 725 | prints ("%s", prompt); | ^ io.c:726:3: warning: call to undeclared function 'standend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 726 | standend (); | ^ io.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | ask (prompt) | ^ --- stuff.o --- 59 warnings generated. --- editor.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c editor.c --- io.o --- 77 warnings generated. --- entab.o --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -I/opt/pkg/include/ncurses -c entab.c entab.c:44:4: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | strcpy(foutname, filename); | ^ entab.c:44:4: note: include the header or explicitly provide a declaration for 'strcpy' entab.c:45:4: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | strcat(foutname, "_tmp"); | ^ entab.c:45:4: note: include the header or explicitly provide a declaration for 'strcat' 2 warnings generated. --- editor.o --- editor.c:26:9: warning: 'gtty' macro redefined [-Wmacro-redefined] 26 | #define gtty(fd,data) tcgetattr(fd,data) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sgtty.h:51:9: note: previous definition is here 51 | #define gtty(fd, buf) ioctl(fd, TIOCGETP, buf) | ^ editor.c:27:9: warning: 'stty' macro redefined [-Wmacro-redefined] 27 | #define stty(fd,data) tcsetattr(fd,TCSETS,data) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sgtty.h:52:9: note: previous definition is here 52 | #define stty(fd, buf) ioctl(fd, TIOCSETP, buf) | ^ editor.c:35:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 35 | bell() | ^ | int editor.c:38:1: warning: non-void function does not return a value [-Wreturn-type] 38 | } | ^ editor.c:40:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 40 | abort_bbs() | ^ | int editor.c:43:5: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | reset_tty() ; | ^ editor.c:44:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | exit(-1) ; | ^ editor.c:44:5: note: include the header or explicitly provide a declaration for 'exit' editor.c:47:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 47 | main(argc,argv) | ^ | int editor.c:58:5: warning: call to undeclared function 'get_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | get_tty() ; /* get tty port mode settings */ | ^ editor.c:59:5: warning: call to undeclared function 'init_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | init_tty() ; /* set up mode for NOECHO and RAW */ | ^ editor.c:62:9: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | reset_tty() ; | ^ editor.c:71:9: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | reset_tty() ; | ^ editor.c:74:5: warning: call to undeclared function 'term_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | term_init(term) ; /* Load up strings used to control terminal type 'term'*/ | ^ editor.c:77:9: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | reset_tty() ; | ^ editor.c:80:5: warning: call to undeclared function 'initscr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | initscr(); /* Initialize screen interface */ | ^ editor.c:81:5: warning: call to undeclared function 'vedit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | vedit(argv[argc-1],NA); /* Start editor on file, do not save header */ | ^ editor.c:82:5: warning: call to undeclared function 'clear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | clear(); /* clear screen */ | ^ editor.c:83:5: warning: call to undeclared function 'redoscr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | redoscr(); /* make clear() happen */ | ^ editor.c:84:5: warning: call to undeclared function 'reset_tty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | reset_tty(); | ^ editor.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | main(argc,argv) | ^ 20 warnings generated. --- ve --- clang -pipe -Os -I/opt/pkg/include/ncurses -DVEDITOR -o ve edit.o term.o screen.o stuff.o io.o editor.o entab.o -ltermcap -lcompat ld: library 'compat' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [ve] Error code 1 bmake: stopped making "all" in /var/tmp/work/editors/ve/work/ve-1.0 bmake: 1 error bmake: stopped making "all" in /var/tmp/work/editors/ve/work/ve-1.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/editors/ve *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/editors/ve