WARNING: [license.mk] Every package should define a LICENSE. ===> Building for kterm-6.2.0nb24 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DKTERM -DSTATUSLINE -DKEEPALIVE -I/opt/pkg/include -I/opt/pkg/include/ncurses -c button.c button.c:152:15: warning: passing arguments to 'EditorButton' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditorButton(event); ^ button.c:160:18: warning: passing arguments to 'EditorButton' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditorButton(event); ^ button.c:169:15: warning: passing arguments to 'TrackDown' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TrackDown(event); ^ button.c:173:18: warning: passing arguments to 'EditorButton' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditorButton(event); ^ button.c:128:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Boolean SendMousePosition(w, event) ^ button.c:199:18: warning: passing arguments to 'PointToRowCol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol (event->xmotion.y, event->xmotion.x, ^ button.c:201:17: warning: passing arguments to 'ExtendExtend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ExtendExtend (row, col); ^ button.c:186:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSelectExtend(w, event, params, num_params) ^ button.c:225:16: warning: passing arguments to 'EndExtend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EndExtend(w, event, params, *num_params, use_cursor_loc); ^ button.c:211:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void do_select_end (w, event, params, num_params, use_cursor_loc) ^ button.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSelectEnd(w, event, params, num_params) ^ button.c:241:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleKeyboardSelectEnd(w, event, params, num_params) ^ button.c:306:23: warning: passing arguments to 'SelectionReceived' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SelectionReceived(w, NULL, &selection, &type, (XtPointer)line, ^ button.c:276:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void _GetSelection(w, time, params, num_params) ^ button.c:367:26: warning: passing arguments to 'paste_compound_text' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_compound_text(w, list->ctext, list->ctext_len); ^ button.c:390:6: warning: call to undeclared function 'check_ctext_kterm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (check_ctext_kterm((char*)value, *length)) { ^ button.c:391:25: warning: passing arguments to 'paste_compound_text' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_compound_text(w, (Char*)value, *length); ^ button.c:403:19: warning: passing arguments to 'paste_utf8_string' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_utf8_string(w, (Char*)value, *length, list); ^ button.c:405:14: warning: passing arguments to 'paste_string' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_string(w, (Char*)value, *length); ^ button.c:338:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void SelectionReceived(w, client_data, selection, type, ^ button.c:66:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SelectionReceived(); ^ button.c:427:9: warning: call to undeclared function 'convCTtoCS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] n = convCTtoCS(ct, len, NULL); ^ button.c:433:13: warning: passing arguments to 'paste_cs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_cs(w, cs); ^ button.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_compound_text(w, ct, len) ^ button.c:270:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void paste_compound_text(); ^ button.c:452:12: warning: passing arguments to 'paste_text' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_text(w, ut, ut + len); ^ button.c:457:9: warning: call to undeclared function 'convUTF8toCS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] n = convUTF8toCS(ut, len, NULL); ^ button.c:463:13: warning: passing arguments to 'paste_cs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_cs(w, cs); ^ button.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_utf8_string(w, ut, len, list) ^ button.c:271:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void paste_utf8_string(); ^ button.c:496:13: warning: passing arguments to 'paste_cs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_cs(w, cs); ^ button.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_string(w, str, len) ^ button.c:272:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void paste_string(); ^ button.c:480:42: warning: variable 'n' is uninitialized when used here [-Wuninitialized] cs = (len > 256) ? (Ichr *)XtMalloc((n + 1) * sizeof(Ichr)) : cbuf; ^ button.c:475:10: note: initialize the variable 'n' to silence this warning int n; ^ = 0 button.c:534:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = (*func)(cs, NULL); ^ button.c:536:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void)(*func)(cs, line); ^ button.c:537:15: warning: passing arguments to 'paste_text' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_text(w, line, line + n); ^ button.c:502:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_cs(w, cs) ^ button.c:273:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void paste_cs(); ^ button.c:555:6: warning: call to undeclared function 'v_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] v_write(pty, lag, cp - lag + 1); ^ button.c:559:2: warning: call to undeclared function 'v_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] v_write(pty, lag, end - lag); ^ button.c:542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paste_text(w, line, end) ^ button.c:274:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void paste_text(); ^ button.c:564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HandleInsertSelection(w, event, params, num_params) ^ button.c:576:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetSelectUnit(buttonDownTime, defaultUnit) ^ button.c:603:13: warning: passing arguments to 'StartSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartSelect(startrow, startcol); ^ button.c:595:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void do_select_start (w, event, startrow, startcol) ^ button.c:619:15: warning: passing arguments to 'PointToRowCol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol(event->xbutton.y, event->xbutton.x, &startrow, &startcol); ^ button.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HandleSelectStart(w, event, params, num_params) ^ button.c:626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HandleKeyboardSelectStart(w, event, params, num_params) ^ button.c:646:16: warning: passing arguments to 'PointToRowCol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol(event->y, event->x, &startrow, &startcol); ^ button.c:648:14: warning: passing arguments to 'StartSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartSelect(startrow, startcol); ^ button.c:651:15: warning: passing arguments to 'EditorButton' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditorButton(event); ^ button.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TrackDown(event) ^ button.c:67:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void TrackDown(); ^ button.c:678:13: warning: passing arguments to 'StartSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartSelect(startrow, startcol); ^ button.c:662:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] TrackMouse(func, startrow, startcol, firstrow, lastrow) ^ button.c:688:6: warning: call to undeclared function 'HideCursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] HideCursor (); ^ button.c:709:15: warning: passing arguments to 'ComputeSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeSelect(startERow, startECol, endERow, endECol, False); ^ button.c:682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StartSelect(startrow, startcol) ^ button.c:73:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void StartSelect(); ^ button.c:729:19: warning: passing arguments to 'PointToRowCol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol(event->xbutton.y, event->xbutton.x, &row, &col); ^ button.c:731:15: warning: passing arguments to 'ExtendExtend' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ExtendExtend (row, col); ^ button.c:741:5: warning: call to undeclared function 'v_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] v_write(screen->respond, line, 5); ^ button.c:751:5: warning: call to undeclared function 'v_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] v_write(screen->respond, line, 9); ^ button.c:756:11: warning: passing arguments to 'SelectSet' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SelectSet(w, event, params, num_params); ^ button.c:714:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EndExtend(w, event, params, num_params, use_cursor_loc) ^ button.c:209:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void EndExtend(); ^ button.c:767:12: warning: passing arguments to 'SelectSet' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SelectSet (w, event, params, *num_params); ^ button.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HandleSelectSet(w, event, params, num_params) ^ button.c:782:15: warning: passing arguments to 'SaltTextAway' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SaltTextAway(startSRow, startSCol, endSRow, endSCol, ^ button.c:785:3: warning: call to undeclared function 'DisownSelection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DisownSelection(term); ^ button.c:774:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SelectSet (w, event, params, num_params) ^ button.c:72:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SelectSet(); ^ button.c:826:19: warning: passing arguments to 'PointToRowCol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol(event->xbutton.y, event->xbutton.x, &row, &col); ^ button.c:843:15: warning: passing arguments to 'ComputeSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeSelect(startERow, startECol, endERow, endECol, True); ^ button.c:791:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void do_start_extend (w, event, params, num_params, use_cursor_loc) ^ button.c:872:15: warning: passing arguments to 'ComputeSelect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeSelect(startERow, startECol, endERow, endECol, False); ^ button.c:847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ExtendExtend (row, col) ^ button.c:70:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void ExtendExtend(); ^ button.c:876:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleStartExtend(w, event, params, num_params) ^ button.c:885:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleKeyboardStartExtend(w, event, params, num_params) ^ button.c:895:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ScrollSelection(screen, amount) ^ int button.c:895:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button.c:926:1: warning: non-void function does not return a value [-Wreturn-type] } ^ button.c:930:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ResizeSelection (screen, rows, cols) ^ int button.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button.c:948:1: warning: non-void function does not return a value [-Wreturn-type] } ^ button.c:960:11: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register row, col; ~~~~~~~~ ^ int button.c:960:16: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] register row, col; ~~~~~~~~ ^ int button.c:951:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PointToRowCol(y, x, r, c) ^ button.c:65:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void PointToRowCol(); ^ button.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] LastTextCol(row) ^ button.c:1079:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int SetCharacterClassRange (low, high, value) ^ button.c:1151:28: warning: passing arguments to 'mbcsCharClass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] class = mbcsCharClass (ptr); ^ button.c:1158:32: warning: passing arguments to 'mbcsCharClass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] && class == mbcsCharClass (ptr)); ^ button.c:1216:28: warning: passing arguments to 'mbcsCharClass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] class = mbcsCharClass (ptr); ^ button.c:1223:32: warning: passing arguments to 'mbcsCharClass' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] && class == mbcsCharClass (ptr)); ^ button.c:1097:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeSelect(startRow, startCol, endRow, endCol, extend) ^ button.c:68:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void ComputeSelect(); ^ button.c:1335:18: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x41 <= c2 && c2 <= 0x5a || 0x61 <= c2 && c2 <= 0x7a) ~~~~~~~~~~~^~~~~~~~~~~~~ ~~ button.c:1335:18: note: place parentheses around the '&&' expression to silence this warning if (0x41 <= c2 && c2 <= 0x5a || 0x61 <= c2 && c2 <= 0x7a) ^ ( ) button.c:1335:46: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x41 <= c2 && c2 <= 0x5a || 0x61 <= c2 && c2 <= 0x7a) ~~ ~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1335:46: note: place parentheses around the '&&' expression to silence this warning if (0x41 <= c2 && c2 <= 0x5a || 0x61 <= c2 && c2 <= 0x7a) ^ ( ) button.c:1347:18: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x21 <= c2 && c2 <= 0x38 || 0x41 <= c2 && c2 <= 0x58) ~~~~~~~~~~~^~~~~~~~~~~~~ ~~ button.c:1347:18: note: place parentheses around the '&&' expression to silence this warning if (0x21 <= c2 && c2 <= 0x38 || 0x41 <= c2 && c2 <= 0x58) ^ ( ) button.c:1347:46: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x21 <= c2 && c2 <= 0x38 || 0x41 <= c2 && c2 <= 0x58) ~~ ~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1347:46: note: place parentheses around the '&&' expression to silence this warning if (0x21 <= c2 && c2 <= 0x38 || 0x41 <= c2 && c2 <= 0x58) ^ ( ) button.c:1351:18: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x21 <= c2 && c2 <= 0x41 || 0x51 <= c2 && c2 <= 0x71) ~~~~~~~~~~~^~~~~~~~~~~~~ ~~ button.c:1351:18: note: place parentheses around the '&&' expression to silence this warning if (0x21 <= c2 && c2 <= 0x41 || 0x51 <= c2 && c2 <= 0x71) ^ ( ) button.c:1351:46: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x21 <= c2 && c2 <= 0x41 || 0x51 <= c2 && c2 <= 0x71) ~~ ~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1351:46: note: place parentheses around the '&&' expression to silence this warning if (0x21 <= c2 && c2 <= 0x41 || 0x51 <= c2 && c2 <= 0x71) ^ ( ) button.c:1359:46: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x30 <= c1 && c1 <= 0x4e && 0x21 <= c2 && c2 <= 0x7e ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1359:46: note: place parentheses around the '&&' expression to silence this warning if (0x30 <= c1 && c1 <= 0x4e && 0x21 <= c2 && c2 <= 0x7e ^ ( ) button.c:1360:18: warning: '&&' within '||' [-Wlogical-op-parentheses] || c1 == 0x4f && (0x21 <= c2 || c2 <= 0x53)) /* dai_1_suijun */ ~~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ button.c:1360:18: note: place parentheses around the '&&' expression to silence this warning || c1 == 0x4f && (0x21 <= c2 || c2 <= 0x53)) /* dai_1_suijun */ ^ ( ) button.c:1362:46: warning: '&&' within '||' [-Wlogical-op-parentheses] if (0x50 <= c1 && c1 <= 0x73 && 0x21 <= c2 && c2 <= 0x7e ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1362:46: note: place parentheses around the '&&' expression to silence this warning if (0x50 <= c1 && c1 <= 0x73 && 0x21 <= c2 && c2 <= 0x7e ^ ( ) button.c:1363:18: warning: '&&' within '||' [-Wlogical-op-parentheses] || c1 == 0x74 && (0x21 <= c2 || c2 <= 0x24)) /* dai_2_suijun */ ~~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ button.c:1363:18: note: place parentheses around the '&&' expression to silence this warning || c1 == 0x74 && (0x21 <= c2 || c2 <= 0x24)) /* dai_2_suijun */ ^ ( ) button.c:1313:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int mbcsCharClass (ptr) ^ button.c:125:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int mbcsCharClass (); ^ button.c:1363:33: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare] || c1 == 0x74 && (0x21 <= c2 || c2 <= 0x24)) /* dai_2_suijun */ ~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1360:33: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare] || c1 == 0x4f && (0x21 <= c2 || c2 <= 0x53)) /* dai_1_suijun */ ~~~~~~~~~~~^~~~~~~~~~~~~ button.c:1393:18: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(old_startrow, old_startcol, old_endrow, old_endcol); ^ button.c:1394:18: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(frow, fcol, trow, tcol); ^ button.c:1398:19: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(frow, fcol, old_startrow, old_startcol); ^ button.c:1401:19: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(old_startrow, old_startcol, frow, fcol); ^ button.c:1405:19: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(old_endrow, old_endcol, trow, tcol); ^ button.c:1408:19: warning: passing arguments to 'ReHiliteText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(trow, tcol, old_endrow, old_endcol); ^ button.c:1439:7: warning: call to undeclared function 'ScrnRefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ScrnRefresh(screen, frow, fcol, 1, i, True); ^ button.c:1442:7: warning: call to undeclared function 'ScrnRefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ScrnRefresh(screen, frow+1, 0,i, screen->max_col+1, True); ^ button.c:1445:7: warning: call to undeclared function 'ScrnRefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ScrnRefresh(screen, trow, 0, 1, tcol, True); ^ button.c:1448:3: warning: call to undeclared function 'ScrnRefresh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ScrnRefresh(screen, frow, fcol, 1, tcol - fcol, True); ^ button.c:1416:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReHiliteText(frow, fcol, trow, tcol) ^ button.c:71:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void ReHiliteText(); ^ button.c:1489:31: warning: passing arguments to 'Length' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ( row == crow ) j = Length(screen, crow, ccol, col); ^ button.c:1491:14: warning: passing arguments to 'Length' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] j += Length(screen, crow, ccol, screen->max_col) + 1; ^ button.c:1493:15: warning: passing arguments to 'Length' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] j += Length(screen, i, 0, screen->max_col) + 1; ^ button.c:1495:15: warning: passing arguments to 'Length' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] j += Length(screen, row, 0, col); ^ button.c:1503:3: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SysError(ERROR_BMALLOC2); ^ button.c:1522:34: warning: passing arguments to 'SaveText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ( row == crow ) lp = SaveText(screen, row, ccol, col, lp, &eol); ^ button.c:1524:16: warning: passing arguments to 'SaveText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lp = SaveText(screen, crow, ccol, screen->max_col, lp, &eol); ^ button.c:1535:17: warning: passing arguments to 'SaveText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lp = SaveText(screen, i, 0, screen->max_col, lp, &eol); ^ button.c:1547:17: warning: passing arguments to 'SaveText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lp = SaveText(screen, row, 0, col, lp, &eol); ^ button.c:1557:15: warning: passing arguments to '_OwnSelection' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _OwnSelection(term, params, num_params); ^ button.c:1455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SaltTextAway(crow, ccol, row, col, params, num_params) ^ button.c:770:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SaltTextAway(); ^ button.c:1603:16: warning: call to undeclared function 'pasteCStoUTF8'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *length = pasteCStoUTF8(xterm->screen.selection, NULL); ^ button.c:1608:16: warning: call to undeclared function 'convCStoCT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *length = convCStoCT(xterm->screen.selection, NULL); ^ button.c:1613:16: warning: call to undeclared function 'convCStoLatin1'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *length = convCStoLatin1(xterm->screen.selection, NULL); ^ button.c:1645:23: warning: call to undeclared function 'convCStoCT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *(long*)*value = convCStoCT(xterm->screen.selection, NULL); ^ button.c:1560:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static Boolean ConvertSelection(w, selection, target, ^ button.c:1673:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void LoseSelection(w, selection) ^ button.c:1725:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void _OwnSelection(termw, selections, count) ^ button.c:1452:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void _OwnSelection(); ^ button.c:1812:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DisownSelection(termw) ^ int button.c:1812:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button.c:1839:1: warning: non-void function does not return a value [-Wreturn-type] } ^ button.c:1845:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Length(screen, row, scol, ecol) ^ button.c:74:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int Length(); ^ button.c:1887:6: warning: call to undeclared function 'ScrnGetAttributes'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(ScrnGetAttributes(screen, row + screen->topline, 0, &attr, 1) == 1) { ^ button.c:1901:28: warning: '&&' within '||' [-Wlogical-op-parentheses] if (c < ' ' || c == 0x7f && !(g & CS96)) { ~~ ~~~~~~~~~~^~~~~~~~~~~~~~ button.c:1901:28: note: place parentheses around the '&&' expression to silence this warning if (c < ' ' || c == 0x7f && !(g & CS96)) { ^ ( ) button.c:1862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SaveText(screen, row, scol, ecol, lp, eol) ^ button.c:76:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Ichr *SaveText(); ^ button.c:1951:2: warning: call to undeclared function 'v_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] v_write(pty, line, 6); ^ button.c:1927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] EditorButton(event) ^ button.c:69:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void EditorButton(); ^ button.c:1997:22: warning: passing arguments to 'DoSecureKeyboard' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoSecureKeyboard (time); ^ button.c:1983:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void HandleSecure(w, event, params, param_count) ^ 160 warnings generated. m4 kfontlist.m4 > kfontlist.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DKTERM -DSTATUSLINE -DKEEPALIVE -I/opt/pkg/include -I/opt/pkg/include/ncurses -c cursor.c cursor.c:47:2: warning: call to undeclared function 'TrackText'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] TrackText(0, 0, 0, 0); ^ cursor.c:33:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void _CheckSelection(screen) ^ cursor.c:58:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorSet(screen, row, col, flags) ^ int cursor.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:76:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:81:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorBack(screen, n) ^ int cursor.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:105:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:110:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorForward(screen, n) ^ int cursor.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:119:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:125:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorDown(screen, n) ^ int cursor.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:139:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:145:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorUp(screen, n) ^ int cursor.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:159:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:180:2: warning: call to undeclared function 'Scroll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Scroll(screen, amount - j); ^ cursor.c:199:2: warning: call to undeclared function 'RevScroll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] RevScroll(screen, amount - (screen->cur_row - screen->top_marg)); ^ cursor.c:206:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CarriageReturn(screen) ^ int cursor.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:212:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:217:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorSave(term, sc) ^ int cursor.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:229:1: warning: non-void function does not return a value [-Wreturn-type] } ^ cursor.c:234:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CursorRestore(term, sc) ^ int cursor.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cursor.c:247:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 28 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DKTERM -DSTATUSLINE -DKEEPALIVE -I/opt/pkg/include -I/opt/pkg/include/ncurses -c data.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DKTERM -DSTATUSLINE -DKEEPALIVE -I/opt/pkg/include -I/opt/pkg/include/ncurses -c input.c input.c:50:3: warning: call to undeclared function 'WindowScroll'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] WindowScroll(screen, 0); ^ input.c:56:5: warning: call to undeclared function 'Bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Bell(XkbBI_MarginBell,0); ^ input.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] AdjustAfterInput (screen) ^ input.c:90:15: warning: call to undeclared function 'XmuLookupKana'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nbytes = XmuLookupKana (event, strbuf, STRBUFSIZE, ^ input.c:120:3: warning: call to undeclared function 'unparseseq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseseq(&reply, pty); ^ input.c:121:3: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc((char)(keysym-XK_KP_F1+'P'), pty); ^ input.c:127:4: warning: call to undeclared function 'unparseseq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseseq(&reply, pty); ^ input.c:128:4: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(cur[keysym-XK_Left], pty); ^ input.c:132:4: warning: call to undeclared function 'unparseseq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseseq(&reply, pty); ^ input.c:142:39: warning: passing arguments to 'sunfuncvalue' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reply.a_param[0] = sunfuncvalue (keysym); ^ input.c:145:36: warning: passing arguments to 'funcvalue' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reply.a_param[0] = funcvalue (keysym); ^ input.c:149:4: warning: call to undeclared function 'unparseseq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseseq(&reply, pty); ^ input.c:154:4: warning: call to undeclared function 'unparseseq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseseq(&reply, pty); ^ input.c:155:4: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(kypd_apl[keysym-XK_KP_Space], pty); ^ input.c:157:4: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(kypd_num[keysym-XK_KP_Space], pty); ^ input.c:173:9: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc (033, pty); /* escape */ ^ input.c:175:5: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(*string, pty); ^ input.c:185:6: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(*string++, pty); ^ input.c:195:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = (*func)(string, NULL); ^ input.c:197:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (void)(*func)(string, obuf); ^ input.c:200:6: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(*optr++, pty); ^ input.c:231:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] StringInput (screen, string, nbytes) ^ int input.c:246:3: warning: call to undeclared function 'unparseputc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] unparseputc(*string++, pty); ^ input.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] StringInput (screen, string, nbytes) ^ input.c:251:1: warning: non-void function does not return a value [-Wreturn-type] } ^ input.c:253:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int funcvalue (keycode) ^ input.c:42:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int funcvalue(), sunfuncvalue(); ^ input.c:294:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int sunfuncvalue (keycode) ^ input.c:42:25: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int funcvalue(), sunfuncvalue(); ^ 29 warnings generated. rm -f main.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DKTERM -DSTATUSLINE -DKEEPALIVE -DUTMP -DUSE_TTY_GROUP -DOSMAJORVERSION=23 -DOSMINORVERSION=6 main.c main.c:1002:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void Syntax (badOption) ^ main.c:1053:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ConvertConsoleSelection(w, selection, target, type, value, length, format) ^ main.c:1067:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printopt(s) ^ main.c:1159:16: warning: passing arguments to 'do_hangup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_hangup(w); ^ main.c:1142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DeleteWindow(w, event, params, num_params) ^ main.c:1164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] KeyboardMapping(w, event, params, num_params) ^ main.c:1178:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] "DeleteWindow", DeleteWindow, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } main.c:1179:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] "KeyboardMapping", KeyboardMapping, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } main.c:1187:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main (argc, argv) ^ int main.c:1495:30: warning: passing arguments to 'parse_tty_modes' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int n = parse_tty_modes (resource.tty_modes, ttymodelist); ^ main.c:1668:34: warning: passing arguments to 'base_name' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resource.title = base_name (command_to_exec[0]); ^ main.c:1729:2: warning: call to undeclared function 'get_terminal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] get_terminal (); ^ main.c:1730:2: warning: call to undeclared function 'spawn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] spawn (); ^ main.c:1752:3: warning: call to undeclared function 'StartLog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] StartLog(screen); ^ main.c:1789:61: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (ioctl (screen->respond, FIONBIO, (char *)&mode) == -1) SysError (ERROR_FIONBIO); ^ main.c:1814:4: warning: call to undeclared function 'VTRun'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] VTRun(); ^ main.c:1187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main (argc, argv) ^ main.c:1818:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *base_name(name) ^ main.c:1834:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get_pty (pty) ^ int main.c:1935:9: warning: call to undeclared function 'pty_search'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return pty_search(pty); ^ main.c:1834:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_pty (pty) ^ main.c:1948:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int pty_search(pty) ^ main.c:2002:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get_terminal () ^ int main.c:2009:38: warning: passing arguments to 'make_colored_cursor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] screen->arrow = make_colored_cursor (XC_left_ptr, ^ main.c:2012:1: warning: non-void function does not return a value [-Wreturn-type] } ^ main.c:2062:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SIGNAL_T hungtty(i) ^ main.c:2106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HsSysError(pf, error) ^ main.c:2153:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] spawn () ^ int main.c:2222:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp utmp; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:2300:8: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SysError(ERROR_OPDEVTTY); ^ main.c:2382:6: warning: call to undeclared function 'VTInit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] VTInit(); /* realize now so know window size for tty driver */ ^ main.c:2416:10: warning: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (tgetent (ptr, resource.term_name) == 1) { ^ main.c:2421:7: warning: call to undeclared function 'resize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] resize (screen, TermName, termcap, newtc); ^ main.c:2429:6: warning: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(tgetent(ptr, *envnew) == 1) { ^ main.c:2434:8: warning: call to undeclared function 'resize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] resize(screen, TermName, termcap, newtc); ^ main.c:2442:8: warning: passing arguments to 'Exit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Exit (1); ^ main.c:2485:3: warning: call to undeclared function 'SysError'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] SysError (ERROR_FORK); ^ main.c:2663:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = ttyname(tty)) ~~~~^~~~~~~~~~~~~~ main.c:2663:11: note: place parentheses around the assignment to silence this warning if (ptr = ttyname(tty)) ^ ( ) main.c:2663:11: note: use '==' to turn this assignment into an equality comparison if (ptr = ttyname(tty)) ^ == main.c:2679:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ttygrp = getgrnam("tty")) { ~~~~~~~^~~~~~~~~~~~~~~~~ main.c:2679:14: note: place parentheses around the assignment to silence this warning if (ttygrp = getgrnam("tty")) { ^ ( ) main.c:2679:14: note: use '==' to turn this assignment into an equality comparison if (ttygrp = getgrnam("tty")) { ^ == main.c:3014:3: warning: call to undeclared function 'Setenv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Setenv ("TERM=", TermName); ^ main.c:3070:11: error: too many arguments to function call, expected 0, have 2 setpgrp(0,0); ~~~~~~~ ^~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here pid_t setpgrp(void) __DARWIN_ALIAS(setpgrp); ^ main.c:3076:12: error: too many arguments to function call, expected 0, have 2 setpgrp (0, pgrp); ~~~~~~~ ^~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here pid_t setpgrp(void) __DARWIN_ALIAS(setpgrp); ^ main.c:3194:40: warning: 'utmp' is deprecated [-Wdeprecated-declarations] bzero((char *)&utmp, sizeof(struct utmp)); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3207:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations] lseek(i, (long)(tslot * sizeof(struct utmp)), 0); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3208:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations] write(i, (char *)&utmp, sizeof(struct utmp)); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3331:7: warning: call to undeclared function 'resize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] resize (screen, TermName, termcap, newtc); ^ main.c:3336:7: warning: call to undeclared function 'remove_termcap_entry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] remove_termcap_entry (newtc, ":ti="); ^ main.c:3342:7: warning: call to undeclared function 'remove_termcap_entry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] remove_termcap_entry (newtc, ":ic="); ^ main.c:3404:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(shname = strrchr(ptr, '/')) ~~~~~~~^~~~~~~~~~~~~~~~~~~ main.c:3404:13: note: place parentheses around the assignment to silence this warning if(shname = strrchr(ptr, '/')) ^ ( ) main.c:3404:13: note: use '==' to turn this assignment into an equality comparison if(shname = strrchr(ptr, '/')) ^ == main.c:3636:9: warning: 'utmp' is deprecated [-Wdeprecated-declarations] struct utmp utmp; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3640:38: warning: 'utmp' is deprecated [-Wdeprecated-declarations] bzero((char *)&utmp, sizeof(struct utmp)); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3641:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations] lseek(wfd, (long)(tslot * sizeof(struct utmp)), 0); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3642:43: warning: 'utmp' is deprecated [-Wdeprecated-declarations] write(wfd, (char *)&utmp, sizeof(struct utmp)); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/utmp.h:97:7: note: 'utmp' has been explicitly marked deprecated here } __deprecated; ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated' #define __deprecated __attribute__((__deprecated__)) ^ main.c:3660:3: warning: call to undeclared function 'CloseLog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] CloseLog(screen); ^ main.c:3635:15: warning: unused variable 'i' [-Wunused-variable] register int i; ^ main.c:3562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Exit(n) ^ main.c:383:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] SIGNAL_T Exit(); ^ main.c:3681:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] resize(screen, TermName, oldtc, newtc) ^ int main.c:3692:23: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((ptr1 = strindex (oldtc, "co#")) == NULL){ ^ main.c:3694:19: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ptr1 = strindex (oldtc, "co#"); ^ main.c:3696:23: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((ptr2 = strindex (oldtc, "li#")) == NULL){ ^ main.c:3698:19: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ptr2 = strindex (oldtc, "li#"); ^ main.c:3681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resize(screen, TermName, oldtc, newtc) ^ main.c:3769:6: warning: call to undeclared function 'Cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Cleanup (0); ^ main.c:3751:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static SIGNAL_T reapchild (n) ^ main.c:426:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static SIGNAL_T reapchild (); ^ main.c:3777:42: warning: parameter 'x9' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:39: warning: parameter 'x8' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:36: warning: parameter 'x7' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:33: warning: parameter 'x6' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:30: warning: parameter 'x5' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:27: warning: parameter 'x4' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:24: warning: parameter 'x3' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:21: warning: parameter 'x2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:18: warning: parameter 'x1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:15: warning: parameter 'x0' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3777:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ int main.c:3789:27: warning: passing arguments to 'SysErrorMsg' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcat(buf, SysErrorMsg (oerrno)); ^ main.c:3777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9) ^ main.c:3803:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] remove_termcap_entry (buf, str) ^ int main.c:3809:25: warning: passing arguments to 'strindex' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strinbuf = strindex (buf, str); ^ main.c:3803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_termcap_entry (buf, str) ^ main.c:3832:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int parse_tty_modes (s, modelist) ^ main.c:521:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static int parse_tty_modes (); ^ main.c:3867:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int GetBytesAvailable (fd) ^ In file included from main.c:71: ./ptyx.h:760:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern int GetBytesAvailable(); ^ main.c:3891:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kill_process_group(pid, sig) ^ In file included from main.c:71: ./ptyx.h:762:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern int kill_process_group(); ^ 86 warnings and 2 errors generated. *** [main.o] Error code 1 bmake: stopped making "all" in /Users/pbulk/build/x11/kterm/work/kterm-6.2.0 bmake: 1 error bmake: stopped making "all" in /Users/pbulk/build/x11/kterm/work/kterm-6.2.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/kterm *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/kterm