WARNING: [license.mk] Every package should define a LICENSE. ===> Building for x2x-1.27nb2 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 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 x2x.c:239:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Display *OpenAndCheckDisplay(); ^ x2x.c:443:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(lawyerese); ^~~~~~~~~ x2x.c:443:14: note: treat the string as an argument to avoid this 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] nfds = getdtablesize(); ^ x2x.c:513:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fromPending = XPending(fromDpy)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ x2x.c:513:21: note: place parentheses around the assignment to silence this warning if (fromPending = XPending(fromDpy)) ^ ( ) x2x.c:513:21: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] &rret, &xret, &yret, &wret, &hret, &bret, &dret); ^~~~~ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xlib.h:2636:37: note: passing argument to parameter here 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] &rret, &xret, &yret, &wret, &hret, &bret, &dret); ^~~~~ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xlib.h:2637:38: note: passing argument to parameter here 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] &rret, &xret, &yret, &wret, &hret, &bret, &dret); ^~~~~ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xlib.h:2638:44: note: passing argument to parameter here 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] &rret, &xret, &yret, &wret, &hret, &bret, &dret); ^~~~~ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xlib.h:2640:1: note: passing argument to parameter here ); ^ x2x.c:762:24: warning: passing arguments to 'RefreshPointerMapping' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RefreshPointerMapping(toDpy, pDpyInfo); ^ x2x.c:790:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pDpyInfo->font = font) { /* paint text */ ~~~~~~~~~~~~~~~^~~~~~ x2x.c:790:22: note: place parentheses around the assignment to silence this warning if (pDpyInfo->font = font) { /* paint text */ ^ ( ) x2x.c:790:22: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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] XTestGrabControl(pShadow->dpy, True); /* impervious to grabs! */ ^ x2x.c:537:27: warning: unused variable 'toScreen' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void InitDpyInfo(); ^ x2x.c:591:7: warning: variable 'height' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (doEdge) { /* edge triggers x2x */ ^~~~~~ x2x.c:673:22: note: uninitialized use occurs here xsh->base_height = height; ^~~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false if (doEdge) { /* edge triggers x2x */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:549:29: note: initialize the variable 'height' to silence this warning 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] if (doEdge) { /* edge triggers x2x */ ^~~~~~ x2x.c:672:22: note: uninitialized use occurs here xsh->base_width = width; ^~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false if (doEdge) { /* edge triggers x2x */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:549:21: note: initialize the variable 'width' to silence this warning 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] if (doEdge) { /* edge triggers x2x */ ^~~~~~ x2x.c:670:22: note: uninitialized use occurs here xsh->x = xoff; ^~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false if (doEdge) { /* edge triggers x2x */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:548:17: note: initialize the variable 'xoff' to silence this warning int xoff, yoff; /* window offsets */ ^ = 0 x2x.c:591:7: warning: variable 'yoff' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (doEdge) { /* edge triggers x2x */ ^~~~~~ x2x.c:671:22: note: uninitialized use occurs here xsh->y = yoff; ^~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false if (doEdge) { /* edge triggers x2x */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:548:23: note: initialize the variable 'yoff' to silence this warning int xoff, yoff; /* window offsets */ ^ = 0 x2x.c:591:7: warning: variable 'gravity' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (doEdge) { /* edge triggers x2x */ ^~~~~~ x2x.c:674:22: note: uninitialized use occurs here xsh->win_gravity = gravity; ^~~~~~~ x2x.c:591:3: note: remove the 'if' if its condition is always false if (doEdge) { /* edge triggers x2x */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:552:20: note: initialize the variable 'gravity' to silence this warning 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Bool ProcessExpose(); ^ x2x.c:1028: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 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Bool ProcessEnterNotify(); ^ x2x.c:1069:7: warning: call to undeclared function 'XTestFakeButtonEvent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] XTestFakeButtonEvent(pShadow->dpy, toButton, True, 0); ^ x2x.c:1076:17: warning: passing arguments to 'FakeAction' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Bool ProcessButtonRelease(); ^ x2x.c:1172:12: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] keysym = XKeycodeToKeysym(pDpyInfo->fromDpy, pEv->keycode, 0); ^ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here _X_DEPRECATED ^ /Users/pbulk/build/x11/x2x/work/.buildlink/include/X11/Xfuncproto.h:136:40: note: expanded from macro '_X_DEPRECATED' # define _X_DEPRECATED __attribute__((deprecated)) ^ x2x.c:1181:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:1181:19: note: place parentheses around the assignment to silence this warning if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { ^ ( ) x2x.c:1181:19: note: use '==' to turn this assignment into an equality comparison 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] XTestFakeKeyEvent(pShadow->dpy, keycode, True, 0); ^ x2x.c:1189:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:1189:19: note: place parentheses around the assignment to silence this warning if (keycode = XKeysymToKeycode(pShadow->dpy, keysym)) { ^ ( ) x2x.c:1189:19: note: use '==' to turn this assignment into an equality comparison 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void SendPing(); ^ x2x.c:1279:27: warning: unused variable 'pSelReq' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] static void FakeAction(pDpyInfo, type, thing, bDown) ^ x2x.c:1457: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 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void FakeAction(); ^ x2x.c:1504:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (keycode = XKeysymToKeycode(pShadow->dpy, pFake->thing)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x2x.c:1504:16: note: place parentheses around the assignment to silence this warning if (keycode = XKeysymToKeycode(pShadow->dpy, pFake->thing)) { ^ ( ) x2x.c:1504:16: note: use '==' to turn this assignment into an equality comparison 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void RefreshPointerMapping(); ^ 112 warnings generated. 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 format.c:166:24: warning: passing arguments to 'formatMeasureText' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] formatMeasureText(tfont, (nformats - format - 1), ^ format.c:42: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 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void formatText(); ^ format.c:219:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] thechar = *buffer; ~~~~~~~~^~~~~~~~~ format.c:219:13: note: place parentheses around the assignment to silence this warning thechar = *buffer; ^ ( ) format.c:219:13: note: use '==' to turn this assignment into an equality comparison thechar = *buffer; ^ == format.c:202:17: warning: unused variable 'len' [-Wunused-variable] int len; ^ format.c:194: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 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void formatMeasureText(); ^ 7 warnings generated. 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 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