=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/x2x", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for x2x-1.27nb2 --- lawyerese.o --- --- x2x.o --- --- lawyerese.o --- clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c lawyerese.c --- x2x.o --- clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c x2x.c --- format.o --- clang -O -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c format.c --- x2x.o --- x2x.c:239:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 239 | main(argc, argv) | ^ | int x2x.c:247:19: warning: passing arguments to 'ParseCommandLine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | ParseCommandLine(argc, argv); | ^ x2x.c:265:5: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 265 | sleep(10); | ^ x2x.c:277:45: warning: passing arguments to 'OpenAndCheckDisplay' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | if (!(pShadow->dpy = OpenAndCheckDisplay(pShadow->name))) | ^ x2x.c:281:8: warning: passing arguments to 'DoX2X' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | DoX2X(fromDpy, shadows->dpy); | ^ x2x.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | main(argc, argv) | ^ x2x.c:304:5: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 304 | sleep(10); | ^ x2x.c:307:26: warning: passing arguments to 'CheckTestExtension' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | if (!CheckTestExtension(openDpy)) { | ^ x2x.c:291:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | static Display *OpenAndCheckDisplay(name) | ^ x2x.c:65:17: 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] 65 | static Display *OpenAndCheckDisplay(); | ^ x2x.c:443:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 443 | printf(lawyerese); | ^~~~~~~~~ x2x.c:443:14: note: treat the string as an argument to avoid this 443 | printf(lawyerese); | ^ | "%s", x2x.c:320:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | static void ParseCommandLine(argc, argv) | ^ x2x.c:64: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 subsequent definition [-Wdeprecated-non-prototype] 64 | static void ParseCommandLine(); | ^ x2x.c:481:11: warning: call to undeclared function 'XTestQueryExtension'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 481 | return (XTestQueryExtension(dpy, &eventb, &errorb, &vmajor, &vminor)); | ^ x2x.c:475:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | static Bool CheckTestExtension(dpy) | ^ x2x.c:66: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 subsequent definition [-Wdeprecated-non-prototype] 66 | static Bool CheckTestExtension(); | ^ x2x.c:503:14: warning: passing arguments to 'InitDpyInfo' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | InitDpyInfo(&dpyInfo); | ^ x2x.c:504:24: warning: passing arguments to 'RegisterEventHandlers' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | RegisterEventHandlers(&dpyInfo); | ^ x2x.c:507:10: warning: call to undeclared function 'getdtablesize'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | nfds = getdtablesize(); | ^ x2x.c:513:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 513 | if (fromPending = XPending(fromDpy)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ x2x.c:513:21: note: place parentheses around the assignment to silence this warning 513 | if (fromPending = XPending(fromDpy)) | ^ | ( ) x2x.c:513:21: note: use '==' to turn this assignment into an equality comparison 513 | if (fromPending = XPending(fromDpy)) | ^ | == x2x.c:514:23: warning: passing arguments to 'ProcessEvent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | if (ProcessEvent(fromDpy, &dpyInfo)) /* done! */ | ^ x2x.c:518:23: warning: passing arguments to 'ProcessEvent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | if (ProcessEvent(toDpy, &dpyInfo)) /* done! */ | ^ x2x.c:490:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | static void DoX2X(fromDpy, toDpy) | ^ x2x.c:67: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 subsequent definition [-Wdeprecated-non-prototype] 67 | static void DoX2X(); | ^ x2x.c:631:17: warning: passing arguments to 'formatText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 631 | formatText(NULL, NULL, NULL, font, | ^ x2x.c:655:27: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 655 | &rret, &xret, &yret, &wret, &hret, &bret, &dret); | ^~~~~ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xlib.h:2636:37: note: passing argument to parameter here 2636 | unsigned int* /* width_return */, | ^ x2x.c:655:34: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 655 | &rret, &xret, &yret, &wret, &hret, &bret, &dret); | ^~~~~ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xlib.h:2637:38: note: passing argument to parameter here 2637 | unsigned int* /* height_return */, | ^ x2x.c:655:41: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 655 | &rret, &xret, &yret, &wret, &hret, &bret, &dret); | ^~~~~ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xlib.h:2638:44: note: passing argument to parameter here 2638 | unsigned int* /* border_width_return */, | ^ x2x.c:655:48: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] 655 | &rret, &xret, &yret, &wret, &hret, &bret, &dret); | ^~~~~ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xlib.h:2640:1: note: passing argument to parameter here 2640 | ); | ^ x2x.c:762:24: warning: passing arguments to 'RefreshPointerMapping' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 762 | RefreshPointerMapping(toDpy, pDpyInfo); | ^ x2x.c:790:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 790 | if (pDpyInfo->font = font) { /* paint text */ | ~~~~~~~~~~~~~~~^~~~~~ x2x.c:790:22: note: place parentheses around the assignment to silence this warning 790 | if (pDpyInfo->font = font) { /* paint text */ | ^ | ( ) x2x.c:790:22: note: use '==' to turn this assignment into an equality comparison 790 | if (pDpyInfo->font = font) { /* paint text */ | ^ | == x2x.c:797:15: warning: passing arguments to 'formatText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | formatText(fromDpy, trigger, &(textGC), font, | ^ x2x.c:802:5: warning: call to undeclared function 'XTestGrabControl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 802 | XTestGrabControl(pShadow->dpy, True); /* impervious to grabs! */ | ^ x2x.c:537:27: warning: unused variable 'toScreen' [-Wunused-variable] 537 | Screen *fromScreen, *toScreen; | ^~~~~~~~ x2x.c:533:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | static void InitDpyInfo(pDpyInfo) | ^ x2x.c:68: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 subsequent definition [-Wdeprecated-non-prototype] 68 | static void InitDpyInfo(); | ^ x2x.c:591:7: warning: variable 'height' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~ x2x.c:673:22: note: uninitialized use occurs here 673 | xsh->base_height = height; | ^~~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 592 | nullPixmap = XCreatePixmap(fromDpy, root, 1, 1, 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 593 | eventMask |= EnterWindowMask; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 594 | pDpyInfo->grabCursor = | ~~~~~~~~~~~~~~~~~~~~~~ 595 | XCreatePixmapCursor(fromDpy, nullPixmap, nullPixmap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 596 | &dummyColor, &dummyColor, 0, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 597 | if (doEdge == EDGE_EAST) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 598 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 599 | triggerLoc = fromWidth - triggerw; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 600 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, 0)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 601 | pDpyInfo->fromXConn = 1; | ~~~~~~~~~~~~~~~~~~~~~~~~ 602 | pDpyInfo->fromXDisc = fromWidth - triggerw - 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 603 | } else { | ~~~~~~~~ 604 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 605 | triggerLoc = 0; | ~~~~~~~~~~~~~~~ 606 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, nScreens - 1)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:549:29: note: initialize the variable 'height' to silence this warning 549 | unsigned int width, height; /* window width, height */ | ^ | = 0 x2x.c:591:7: warning: variable 'width' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~ x2x.c:672:22: note: uninitialized use occurs here 672 | xsh->base_width = width; | ^~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 592 | nullPixmap = XCreatePixmap(fromDpy, root, 1, 1, 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 593 | eventMask |= EnterWindowMask; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 594 | pDpyInfo->grabCursor = | ~~~~~~~~~~~~~~~~~~~~~~ 595 | XCreatePixmapCursor(fromDpy, nullPixmap, nullPixmap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 596 | &dummyColor, &dummyColor, 0, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 597 | if (doEdge == EDGE_EAST) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 598 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 599 | triggerLoc = fromWidth - triggerw; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 600 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, 0)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 601 | pDpyInfo->fromXConn = 1; | ~~~~~~~~~~~~~~~~~~~~~~~~ 602 | pDpyInfo->fromXDisc = fromWidth - triggerw - 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 603 | } else { | ~~~~~~~~ 604 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 605 | triggerLoc = 0; | ~~~~~~~~~~~~~~~ 606 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, nScreens - 1)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:549:21: note: initialize the variable 'width' to silence this warning 549 | unsigned int width, height; /* window width, height */ | ^ | = 0 x2x.c:591:7: warning: variable 'xoff' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~ x2x.c:670:22: note: uninitialized use occurs here 670 | xsh->x = xoff; | ^~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 592 | nullPixmap = XCreatePixmap(fromDpy, root, 1, 1, 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 593 | eventMask |= EnterWindowMask; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 594 | pDpyInfo->grabCursor = | ~~~~~~~~~~~~~~~~~~~~~~ 595 | XCreatePixmapCursor(fromDpy, nullPixmap, nullPixmap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 596 | &dummyColor, &dummyColor, 0, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 597 | if (doEdge == EDGE_EAST) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 598 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 599 | triggerLoc = fromWidth - triggerw; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 600 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, 0)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 601 | pDpyInfo->fromXConn = 1; | ~~~~~~~~~~~~~~~~~~~~~~~~ 602 | pDpyInfo->fromXDisc = fromWidth - triggerw - 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 603 | } else { | ~~~~~~~~ 604 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 605 | triggerLoc = 0; | ~~~~~~~~~~~~~~~ 606 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, nScreens - 1)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:548:17: note: initialize the variable 'xoff' to silence this warning 548 | int xoff, yoff; /* window offsets */ | ^ | = 0 x2x.c:591:7: warning: variable 'yoff' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~ x2x.c:671:22: note: uninitialized use occurs here 671 | xsh->y = yoff; | ^~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 592 | nullPixmap = XCreatePixmap(fromDpy, root, 1, 1, 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 593 | eventMask |= EnterWindowMask; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 594 | pDpyInfo->grabCursor = | ~~~~~~~~~~~~~~~~~~~~~~ 595 | XCreatePixmapCursor(fromDpy, nullPixmap, nullPixmap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 596 | &dummyColor, &dummyColor, 0, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 597 | if (doEdge == EDGE_EAST) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 598 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 599 | triggerLoc = fromWidth - triggerw; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 600 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, 0)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 601 | pDpyInfo->fromXConn = 1; | ~~~~~~~~~~~~~~~~~~~~~~~~ 602 | pDpyInfo->fromXDisc = fromWidth - triggerw - 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 603 | } else { | ~~~~~~~~ 604 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 605 | triggerLoc = 0; | ~~~~~~~~~~~~~~~ 606 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, nScreens - 1)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:548:23: note: initialize the variable 'yoff' to silence this warning 548 | int xoff, yoff; /* window offsets */ | ^ | = 0 x2x.c:591:7: warning: variable 'gravity' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~ x2x.c:674:22: note: uninitialized use occurs here 674 | xsh->win_gravity = gravity; | ^~~~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false 591 | if (doEdge) { /* edge triggers x2x */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 592 | nullPixmap = XCreatePixmap(fromDpy, root, 1, 1, 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 593 | eventMask |= EnterWindowMask; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 594 | pDpyInfo->grabCursor = | ~~~~~~~~~~~~~~~~~~~~~~ 595 | XCreatePixmapCursor(fromDpy, nullPixmap, nullPixmap, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 596 | &dummyColor, &dummyColor, 0, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 597 | if (doEdge == EDGE_EAST) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 598 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 599 | triggerLoc = fromWidth - triggerw; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 600 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, 0)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 601 | pDpyInfo->fromXConn = 1; | ~~~~~~~~~~~~~~~~~~~~~~~~ 602 | pDpyInfo->fromXDisc = fromWidth - triggerw - 1; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 603 | } else { | ~~~~~~~~ 604 | /* trigger window location */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 605 | triggerLoc = 0; | ~~~~~~~~~~~~~~~ 606 | toHeight = XHeightOfScreen(XScreenOfDisplay(toDpy, nScreens - 1)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:552:20: note: initialize the variable 'gravity' to silence this warning 552 | int gravity; | ^ | = 0 x2x.c:806:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | static void DoConnect(pDpyInfo) | ^ x2x.c:69: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 subsequent definition [-Wdeprecated-non-prototype] 69 | static void DoConnect(); | ^ x2x.c:854:17: warning: passing arguments to 'FakeThingsUp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 854 | FakeThingsUp(pDpyInfo); | ^ x2x.c:828:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | static void DoDisconnect(pDpyInfo) | ^ x2x.c:70: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 subsequent definition [-Wdeprecated-non-prototype] 70 | static void DoDisconnect(); | ^ x2x.c:857:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | static void RegisterEventHandlers(pDpyInfo) | ^ x2x.c:71: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 subsequent definition [-Wdeprecated-non-prototype] 71 | static void RegisterEventHandlers(); | ^ x2x.c:916:23: 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] 916 | return ((*handler)(dpy, pDpyInfo, &ev)); | ^ x2x.c:901:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 901 | static Bool ProcessEvent(dpy, pDpyInfo) | ^ x2x.c:72: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 subsequent definition [-Wdeprecated-non-prototype] 72 | static Bool ProcessEvent(); | ^ x2x.c:1005:5: warning: call to undeclared function 'XTestFakeMotionEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1005 | XTestFakeMotionEvent(pShadow->dpy, toScreenNum, toX, | ^ x2x.c:928:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | static Bool ProcessMotionNotify(unused, pDpyInfo, pEv) | ^ x2x.c:73: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 subsequent definition [-Wdeprecated-non-prototype] 73 | static Bool ProcessMotionNotify(); | ^ x2x.c:1021:15: warning: passing arguments to 'formatText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1021 | formatText(pDpyInfo->fromDpy, pDpyInfo->trigger, | ^ x2x.c:1014:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1014 | static Bool ProcessExpose(dpy, pDpyInfo, pEv) | ^ x2x.c:74: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 subsequent definition [-Wdeprecated-non-prototype] 74 | static Bool ProcessExpose(); | ^ --- format.o --- format.c:166:24: warning: passing arguments to 'formatMeasureText' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | formatMeasureText(tfont, (nformats - format - 1), | ^ --- x2x.o --- x2x.c:1028:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | static Bool ProcessEnterNotify(dpy, pDpyInfo, pEv) | ^ x2x.c:75: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 subsequent definition [-Wdeprecated-non-prototype] 75 | static Bool ProcessEnterNotify(); | ^ --- format.o --- format.c:42:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- x2x.o --- x2x.c:1069:7: warning: call to undeclared function 'XTestFakeButtonEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- format.o --- 42 | void formatText(dpy, textw, pgc, tfont, nformats, formatv, pwidth, pheight) | ^ In file included from format.c:38: ./format.h:46: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] --- x2x.o --- 1069 | XTestFakeButtonEvent(pShadow->dpy, toButton, True, 0); | ^ --- format.o --- 46 | void formatText(); | ^ --- x2x.o --- x2x.c:1076:17: warning: passing arguments to 'FakeAction' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1076 | FakeAction(pDpyInfo, FAKE_BUTTON, toButton, True); | ^ x2x.c:1050:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1050 | static Bool ProcessButtonPress(dpy, pDpyInfo, pEv) | ^ x2x.c:76: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 subsequent definition [-Wdeprecated-non-prototype] 76 | static Bool ProcessButtonPress(); | ^ x2x.c:1118:7: warning: call to undeclared function 'XTestFakeButtonEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1118 | XTestFakeButtonEvent(pShadow->dpy, toButton, False, 0); | ^ x2x.c:1125:17: warning: passing arguments to 'FakeAction' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1125 | FakeAction(pDpyInfo, FAKE_BUTTON, toButton, False); | ^ x2x.c:1104:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1104 | static Bool ProcessButtonRelease(dpy, pDpyInfo, pEv) | ^ x2x.c:77: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 subsequent definition [-Wdeprecated-non-prototype] 77 | static Bool ProcessButtonRelease(); | ^ --- format.o --- format.c:219:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 219 | thechar = *buffer; --- x2x.o --- x2x.c:1172:12: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] --- format.o --- | ~~~~~~~~^~~~~~~~~ --- x2x.o --- 1172 | keysym = XKeycodeToKeysym(pDpyInfo->fromDpy, pEv->keycode, 0); | ^ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here 1682 | _X_DEPRECATED | ^ /var/tmp/work/x11/x2x/work/.buildlink/include/X11/Xfuncproto.h:139:40: note: expanded from macro '_X_DEPRECATED' --- format.o --- format.c:219:13: note: place parentheses around the assignment to silence this warning --- x2x.o --- 139 | # define _X_DEPRECATED __attribute__((deprecated)) | ^ --- format.o --- 219 | thechar = *buffer; | ^ | ( ) format.c:219:13: note: use '==' to turn this assignment into an equality comparison --- x2x.o --- x2x.c:1181:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- format.o --- 219 | thechar = *buffer; | ^ | == --- x2x.o --- 1181 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- format.o --- format.c:202:17: warning: unused variable 'len' [-Wunused-variable] 202 | int len; | ^~~ --- x2x.o --- x2x.c:1181:19: note: place parentheses around the assignment to silence this warning --- format.o --- format.c:194:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | static void formatMeasureText(tfont, nformats, formatv, pwidth, pheight) | ^ format.c:40:13: 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] --- x2x.o --- 1181 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ^ | ( ) --- format.o --- 40 | static void formatMeasureText(); | ^ --- x2x.o --- x2x.c:1181:19: note: use '==' to turn this assignment into an equality comparison 1181 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ^ | == x2x.c:1182:2: warning: call to undeclared function 'XTestFakeKeyEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1182 | XTestFakeKeyEvent(pShadow->dpy, keycode, True, 0); | ^ x2x.c:1189:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1189 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:1189:19: note: place parentheses around the assignment to silence this warning 1189 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ^ | ( ) x2x.c:1189:19: note: use '==' to turn this assignment into an equality comparison 1189 | if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { | ^ | == x2x.c:1190:2: warning: call to undeclared function 'XTestFakeKeyEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1190 | XTestFakeKeyEvent(pShadow->dpy, keycode, bPress, 0); | ^ x2x.c:1195:17: warning: passing arguments to 'FakeAction' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1195 | FakeAction(pDpyInfo, FAKE_KEY, keysym, bPress); | ^ x2x.c:1161:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1161 | static Bool ProcessKeyEvent(dpy, pDpyInfo, pEv) | ^ x2x.c:78: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 subsequent definition [-Wdeprecated-non-prototype] 78 | static Bool ProcessKeyEvent(); | ^ x2x.c:1202:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1202 | static Bool ProcessConfigureNotify(dpy, pDpyInfo, pEv) | ^ x2x.c:79: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 subsequent definition [-Wdeprecated-non-prototype] 79 | static Bool ProcessConfigureNotify(); | ^ x2x.c:1218:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1218 | static Bool ProcessClientMessage(dpy, pDpyInfo, pEv) | ^ x2x.c:80: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 subsequent definition [-Wdeprecated-non-prototype] 80 | static Bool ProcessClientMessage(); | ^ x2x.c:1247:24: warning: passing arguments to 'SendSelectionNotify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1247 | SendSelectionNotify(pEv); /* blam! */ | ^ x2x.c:1250:13: warning: passing arguments to 'SendPing' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1250 | SendPing(otherDpy, GETDPYXTRA(otherDpy, pDpyInfo)); /* get started */ | ^ x2x.c:1254:26: warning: passing arguments to 'SendSelectionNotify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1254 | SendSelectionNotify(&(pDpyInfo->sEv)); /* blam! */ | ^ x2x.c:1229:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1229 | static Bool ProcessSelectionRequest(dpy, pDpyInfo, pEv) | ^ x2x.c:81: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 subsequent definition [-Wdeprecated-non-prototype] 81 | static Bool ProcessSelectionRequest(); | ^ x2x.c:1263:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1263 | static void SendPing(dpy, pDpyXtra) | ^ x2x.c:82: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 subsequent definition [-Wdeprecated-non-prototype] 82 | static void SendPing(); | ^ x2x.c:1279:27: warning: unused variable 'pSelReq' [-Wunused-variable] 1279 | XSelectionRequestEvent *pSelReq; | ^~~~~~~ x2x.c:1274:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1274 | static Bool ProcessPropertyNotify(dpy, pDpyInfo, pEv) | ^ x2x.c:83: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 subsequent definition [-Wdeprecated-non-prototype] 83 | static Bool ProcessPropertyNotify(); | ^ x2x.c:1355:26: warning: passing arguments to 'SendSelectionNotify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1355 | SendSelectionNotify(pSelReq); | ^ x2x.c:1358:26: warning: passing arguments to 'SendSelectionNotify' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1358 | SendSelectionNotify(pSelReq); | ^ x2x.c:1306:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1306 | static Bool ProcessSelectionNotify(dpy, pDpyInfo, pEv) | ^ x2x.c:84: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 subsequent definition [-Wdeprecated-non-prototype] 84 | static Bool ProcessSelectionNotify(); | ^ x2x.c:1366:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1366 | static void SendSelectionNotify(pSelReq) | ^ x2x.c:85: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 subsequent definition [-Wdeprecated-non-prototype] 85 | static void SendSelectionNotify(); | ^ x2x.c:1383:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1383 | static Bool ProcessSelectionClear(dpy, pDpyInfo, pEv) | ^ x2x.c:86: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 subsequent definition [-Wdeprecated-non-prototype] 86 | static Bool ProcessSelectionClear(); | ^ x2x.c:1416:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1416 | static Bool ProcessVisibility(dpy, pDpyInfo, pEv) | ^ x2x.c:87: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 subsequent definition [-Wdeprecated-non-prototype] 87 | static Bool ProcessVisibility(); | ^ x2x.c:1449:26: warning: passing arguments to 'RefreshPointerMapping' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | RefreshPointerMapping(dpy, pDpyInfo); | ^ x2x.c:1434:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1434 | static Bool ProcessMapping(dpy, pDpyInfo, pEv) | ^ x2x.c:88: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 subsequent definition [-Wdeprecated-non-prototype] 88 | static Bool ProcessMapping(); | ^ x2x.c:1457:34: warning: parameter 'type' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1457 | static void FakeAction(pDpyInfo, type, thing, bDown) | ^ 1458 | PDPYINFO pDpyInfo; 1459 | unsigned int thing; 1460 | Bool bDown; 1461 | { x2x.c:1457:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1457 | static void FakeAction(pDpyInfo, type, thing, bDown) | ^ x2x.c:90: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 subsequent definition [-Wdeprecated-non-prototype] 90 | static void FakeAction(); | ^ x2x.c:1504:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1504 | if (keycode = XKeysymToKeycode(pShadow->dpy, pFake->thing)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:1504:16: note: place parentheses around the assignment to silence this warning 1504 | if (keycode = XKeysymToKeycode(pShadow->dpy, pFake->thing)) { | ^ | ( ) x2x.c:1504:16: note: use '==' to turn this assignment into an equality comparison 1504 | if (keycode = XKeysymToKeycode(pShadow->dpy, pFake->thing)) { | ^ | == x2x.c:1505:6: warning: call to undeclared function 'XTestFakeKeyEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1505 | XTestFakeKeyEvent(pShadow->dpy, keycode, False, 0); | ^ x2x.c:1511:4: warning: call to undeclared function 'XTestFakeButtonEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1511 | XTestFakeButtonEvent(pShadow->dpy, pFake->thing, False, 0); | ^ x2x.c:1490:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1490 | static void FakeThingsUp(pDpyInfo) | ^ x2x.c:89: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 subsequent definition [-Wdeprecated-non-prototype] 89 | static void FakeThingsUp(); | ^ x2x.c:1532:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1532 | static void RefreshPointerMapping(dpy, pDpyInfo) | ^ x2x.c:91: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 subsequent definition [-Wdeprecated-non-prototype] 91 | static void RefreshPointerMapping(); | ^ --- format.o --- 7 warnings generated. --- x2x._man --- rm -f x2x._man if test -z "" ; then cd `dirname x2x` && ln -s `basename x2x.man` `basename x2x._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < x2x.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\/' >x2x._man; fi --- x2x.o --- 112 warnings generated. --- x2x --- rm -f x2x clang -o x2x -O -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib lawyerese.o x2x.o format.o -lXtst -lXext -lXext -lX11