=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/x11/xmove", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xmove-2.0b2nb1 --- all --- making all in ./xmove... --- decode11.o --- --- linkl.o --- --- print11.o --- --- decode11.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c decode11.c --- print11.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c print11.c --- linkl.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c linkl.c --- decode11.o --- decode11.c:200:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | DecodeRequest(buf, n) | ^ decode11.c:214:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 214 | if (CurrentVerbose = RequestVerbose) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ decode11.c:214:24: note: place parentheses around the assignment to silence this warning 214 | if (CurrentVerbose = RequestVerbose) | ^ | ( ) decode11.c:214:24: note: use '==' to turn this assignment into an equality comparison 214 | if (CurrentVerbose = RequestVerbose) | ^ | == decode11.c:227:40: 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] 227 | retval = (DecodeRequestList[Request])(buf); | ^ decode11.c:231:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 231 | else | ^ decode11.c:257:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 257 | if (CurrentVerbose = ReplyVerbose) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ decode11.c:257:25: note: place parentheses around the assignment to silence this warning 257 | if (CurrentVerbose = ReplyVerbose) | ^ | ( ) decode11.c:257:25: note: use '==' to turn this assignment into an equality comparison 257 | if (CurrentVerbose = ReplyVerbose) | ^ | == decode11.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | DecodeError(buf, n) | ^ decode11.c:537:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 537 | if (CurrentVerbose = EventVerbose) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ decode11.c:537:21: note: place parentheses around the assignment to silence this warning 537 | if (CurrentVerbose = EventVerbose) | ^ | ( ) decode11.c:537:21: note: use '==' to turn this assignment into an equality comparison 537 | if (CurrentVerbose = EventVerbose) | ^ | == decode11.c:727:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 726 | printf("Unexpected reply, SequenceNumber: %d(%d).\n", | ~~ | %ld 727 | SequenceNumber, client->SequenceMapping); | ^~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. --- server.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c server.c --- print11.o --- print11.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- linkl.o --- linkl.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | initList(list) | ^ --- print11.o --- 178 | PrintSetUpMessage(buf) | ^ --- linkl.o --- linkl.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | prependToList(list, contents) | ^ --- print11.o --- print11.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | PrintSetUpReply(buf) | ^ --- linkl.o --- linkl.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | appendToList(list, contents) | ^ linkl.c:77:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | deleteFirst(list) | ^ linkl.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | deleteLast(list) | ^ linkl.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | deleteCurrent(list) | ^ linkl.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | AppendToCurrent(list, contents) | ^ linkl.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | PrependToCurrent(list, contents) | ^ linkl.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | deleteList(list) | ^ linkl.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | freeList(list) | ^ linkl.c:181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | freeCurrent(list) | ^ linkl.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | freeMatchingLeaf(list, contents) | ^ --- print11.o --- print11.c:516:38: 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] --- linkl.o --- linkl.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- print11.o --- 516 | (atom->type_map_func->MapProperty)(MapSendClientMessage, NULL, --- linkl.o --- 204 | findMatchingLeaf(list, contents) | ^ --- print11.o --- | ^ --- linkl.o --- linkl.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | indexOfContents(list, contents) | ^ linkl.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- print11.o --- print11.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- linkl.o --- 231 | getIndexedContents(list, index) | ^ --- print11.o --- 560 | ValueError(buf) | ^ print11.c:575:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- linkl.o --- linkl.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | freeLeaf(list, leaf) | ^ --- print11.o --- 575 | WindowError(buf) | ^ print11.c:592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 592 | PixmapError(buf) | ^ --- linkl.o --- linkl.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | deleteLeaf(list, leaf) | ^ --- print11.o --- print11.c:609:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | AtomError(buf) | ^ --- linkl.o --- linkl.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | linkl_panic(s) | ^ --- print11.o --- print11.c:626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | CursorError(buf) | ^ print11.c:643:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | FontError(buf) | ^ print11.c:660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | MatchError(buf) | ^ print11.c:674:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 674 | DrawableError(buf) | ^ print11.c:691:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 691 | AccessError(buf) | ^ print11.c:705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | AllocError(buf) | ^ print11.c:719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | ColormapError(buf) | ^ print11.c:736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | GContextError(buf) | ^ print11.c:753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | IDChoiceError(buf) | ^ print11.c:770:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | NameError(buf) | ^ print11.c:784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | LengthError(buf) | ^ print11.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 799 | ImplementationError(buf) | ^ print11.c:828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 828 | PrintEventName(buf) | ^ print11.c:1517:38: 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] 1517 | (atom->type_map_func->MapProperty)(MapSelectionRequest, | ^ print11.c:1599:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1599 | ClientMessageEvent(buf) | ^ print11.c:1613:38: 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] 1613 | (atom->type_map_func->MapProperty)(MapClientMessage, NULL, | ^ print11.c:1711:7: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 1710 | debug (2, (stderr, "CreateWindow sabotaged vis %x\n", | ~~ | %lx 1711 | temp_window->visual->vis_id)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ print11.c:1768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1768 | ChangeWindowAttributes(buf) | ^ print11.c:1773:61: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1773 | Dprintf(("XMOVE ChangeWindowAttribute on window 0x%x\n",ILong(&buf[4]))) | ~~ ^~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:1827:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1827 | GetWindowAttributesReply(buf, context) | ^ print11.c:1883:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1883 | if (window = FindWindowFromCurrentClient(ILong(&buf[4]))) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:1883:17: note: place parentheses around the assignment to silence this warning 1883 | if (window = FindWindowFromCurrentClient(ILong(&buf[4]))) { | ^ | ( ) print11.c:1883:17: note: use '==' to turn this assignment into an equality comparison 1883 | if (window = FindWindowFromCurrentClient(ILong(&buf[4]))) { | ^ | == print11.c:1884:4: warning: call to undeclared function 'TagAllDescendants'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1884 | TagAllDescendants(ILong(&buf[4])); | ^ print11.c:1886:4: warning: call to undeclared function 'DestroyTaggedWindows'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1886 | DestroyTaggedWindows(); | ^ print11.c:1905:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1905 | DestroySubwindows(buf) | ^ print11.c:1908:3: warning: call to undeclared function 'TagAllDescendants'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1908 | TagAllDescendants(ILong(&buf[4])); | ^ print11.c:1909:3: warning: call to undeclared function 'DestroyTaggedWindows'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1909 | DestroyTaggedWindows(); | ^ print11.c:1927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1927 | ChangeSaveSet(buf) | ^ print11.c:1947:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1947 | ReparentWindow(buf) | ^ print11.c:1957:60: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1957 | Dprintf(("XMOVE ReparentWindow Request on window 0x%x\n",ILong(&buf[4]))) | ~~ ^~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:1984:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1984 | MapWindow(buf) | ^ print11.c:2015:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2015 | MapSubwindows(buf) | ^ print11.c:2034:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2034 | UnmapWindow(buf) | ^ print11.c:2065:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2065 | UnmapSubwindows(buf) | ^ print11.c:2084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2084 | ConfigureWindow(buf) | ^ print11.c:2119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2119 | CirculateWindow(buf) | ^ print11.c:2139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2139 | GetGeometry(buf) | ^ print11.c:2158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2158 | GetGeometryReply(buf, context) | ^ print11.c:2179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2179 | QueryTree(buf) | ^ print11.c:2198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2198 | QueryTreeReply(buf, context) | ^ print11.c:2225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2225 | InternAtom(buf) | ^ print11.c:2250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2250 | InternAtomReply(buf, context) | ^ print11.c:2275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2275 | GetAtomName(buf) | ^ print11.c:2294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2294 | GetAtomNameReply(buf, context) | ^ print11.c:2311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2311 | ChangeProperty(buf) | ^ print11.c:2342:13: 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] 2342 | (map_func)(MapChangeProp, &new_atom, &new_type, NULL, | ^ print11.c:2379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2379 | DeleteProperty(buf) | ^ print11.c:2397:47: 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] 2397 | (atom->property_map_func->MapProperty)(MapDeleteProp, &new_atom, | ^ print11.c:2423:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2423 | GetProperty(buf) | ^ print11.c:2439:52: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 2439 | Dprintf(("XMOVE GetProperty on window 0x%x\n",ILong(&buf[4]))); | ~~ ^~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:2458:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2458 | (map_func)(MapGetProp, &new_atom, &new_type, NULL, | ^ print11.c:2494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2494 | GetPropertyReply(buf, context) | ^ --- linkl.o --- 18 warnings generated. --- print11.o --- print11.c:2519:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2519 | (map_func)(MapGetPropReply, &temps->server_atom, &new_type, | ^ print11.c:2548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2548 | ListProperties(buf) | ^ print11.c:2567:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2567 | ListPropertiesReply(buf, context) | ^ print11.c:2589:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2589 | SetSelectionOwner(buf) | ^ print11.c:2605:45: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 2605 | Dprintf(("Adding new selection %d\n",ILong(&buf[8]))) | ~~ ^~~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:2609:8: warning: call to undeclared function 'AddSelectionToCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2609 | AddSelectionToCurrentClient(temp_selection); | ^ print11.c:2632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2632 | GetSelectionOwner(buf) | ^ print11.c:2651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2651 | GetSelectionOwnerReply(buf, context) | ^ print11.c:2667:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2667 | ConvertSelection(buf) | ^ print11.c:2690:38: 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] 2690 | (atom->type_map_func->MapProperty)(MapConvertSelection, | ^ print11.c:2725:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2725 | SendEvent(buf) | ^ print11.c:2876:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2876 | GrabPointer(buf) | ^ --- fd.o --- --- print11.o --- print11.c:2923:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2923 | GrabPointerReply(buf, context) | ^ print11.c:2945:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2945 | UngrabPointer(buf) | ^ print11.c:2965:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2965 | GrabButton(buf) | ^ print11.c:2982:3: warning: call to undeclared function 'AddGrabToCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2982 | AddGrabToCurrentClient(temp_grab); | ^ print11.c:2983:67: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 2983 | Dprintf(("adding grab (button) to client with grab_window %x\n",temp_grab->grab_window)) | ~~ ^~~~~~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:3013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3013 | UngrabButton(buf) | ^ print11.c:3016:3: warning: call to undeclared function 'RemoveGrabButtonFromCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3016 | RemoveGrabButtonFromCurrentClient(IByte(&buf[1]), ILong(&buf[4]), | ^ print11.c:3036:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3036 | ChangeActivePointerGrab(buf) | ^ print11.c:3063:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3063 | GrabKeyboard(buf) | ^ print11.c:3100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3100 | GrabKeyboardReply(buf, context) | ^ print11.c:3122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3122 | UngrabKeyboard(buf) | ^ print11.c:3142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3142 | GrabKey(buf) | ^ print11.c:3156:3: warning: call to undeclared function 'AddGrabToCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3156 | AddGrabToCurrentClient(temp_grab); | ^ print11.c:3157:64: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 3157 | Dprintf(("adding grab (key) to client with grab_window %x\n",temp_grab->grab_window)) | ~~ ^~~~~~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:3180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3180 | UngrabKey(buf) | ^ print11.c:3186:3: warning: call to undeclared function 'RemoveGrabKeyFromCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3186 | RemoveGrabKeyFromCurrentClient(IByte(&buf[1]), ILong(&buf[4]), | ^ print11.c:3207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3207 | AllowEvents(buf) | ^ print11.c:3246:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3246 | GrabServer(buf) | ^ print11.c:3265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3265 | UngrabServer(buf) | ^ print11.c:3284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3284 | QueryPointer(buf) | ^ print11.c:3304:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- fd.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c fd.c --- print11.o --- 3304 | QueryPointerReply(buf, context) | ^ print11.c:3328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3328 | GetMotionEvents(buf) | ^ print11.c:3350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3350 | GetMotionEventsReply(buf, context) | ^ print11.c:3366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3366 | TranslateCoordinates(buf) | ^ print11.c:3390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3390 | TranslateCoordinatesReply(buf, context) | ^ print11.c:3409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3409 | WarpPointer(buf) | ^ print11.c:3439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3439 | SetInputFocus(buf) | ^ print11.c:3463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3463 | GetInputFocus(buf) | ^ print11.c:3479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3479 | GetInputFocusReply(buf, context) | ^ print11.c:3496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3496 | QueryKeymap(buf) | ^ print11.c:3512:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3512 | QueryKeymapReply(buf, context) | ^ print11.c:3581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3581 | QueryFont(buf) | ^ print11.c:3600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3600 | QueryFontReply(buf, context) | ^ print11.c:3635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3635 | QueryTextExtents(buf) | ^ print11.c:3661:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3661 | QueryTextExtentsReply(buf, context) | ^ print11.c:3681:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3681 | ListFonts(buf) | ^ print11.c:3702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3702 | ListFontsReply(buf, context) | ^ print11.c:3719:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3719 | ListFontsWithInfo(buf) | ^ print11.c:3740:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3740 | ListFontsWithInfoReply(buf, context) | ^ print11.c:3767:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3767 | ListFontsWithInfoReply1(buf, context) | ^ print11.c:3797:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3797 | ListFontsWithInfoReply2(buf, context) | ^ print11.c:3808:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3808 | SetFontPath(buf) | ^ print11.c:3828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3828 | GetFontPath(buf) | ^ print11.c:3844:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3844 | GetFontPathReply(buf, context) | ^ print11.c:3875:5: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 3874 | Eprintf(("CreatePixmap %x of unknown depth %d?\n", | ~~ | %lx 3875 | temp_pixmap->pixmap_id, IByte(&buf[1]))); | ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ print11.c:3905:56: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 3905 | Dprintf(("adding pixmap to client with drawable %x\n",ILong(&buf[8]))); | ~~ ^~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:3864:40: warning: unused variable 'drawable' [-Wunused-variable] 3864 | union {WindowPtr win; PixmapPtr pix;} drawable; | ^~~~~~~~ print11.c:3934:63: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 3934 | Dprintf(("XMOVE got a free pixmap request on pixmap 0x%x\n",ILong(&buf[4]))) | ~~ ^~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:3936:3: warning: call to undeclared function 'RemovePixmapFromCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3936 | RemovePixmapFromCurrentClient(pixmap); | ^ print11.c:3971:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3971 | else if (pixmap = FindPixmapFromCurrentClient(drawable)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:3971:20: note: place parentheses around the assignment to silence this warning 3971 | else if (pixmap = FindPixmapFromCurrentClient(drawable)) | ^ | ( ) print11.c:3971:20: note: use '==' to turn this assignment into an equality comparison 3971 | else if (pixmap = FindPixmapFromCurrentClient(drawable)) | ^ | == print11.c:3973:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3973 | else if (window = FindWindowFromCurrentClient(drawable)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:3973:20: note: place parentheses around the assignment to silence this warning 3973 | else if (window = FindWindowFromCurrentClient(drawable)) | ^ | ( ) print11.c:3973:20: note: use '==' to turn this assignment into an equality comparison 3973 | else if (window = FindWindowFromCurrentClient(drawable)) | ^ | == print11.c:4004:13: warning: unused variable 'newcell' [-Wunused-variable] 4004 | card32 newcell; | ^~~~~~~ print11.c:4106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4106 | CopyGC(buf) | ^ print11.c:4122:7: warning: call to undeclared function 'ParseGCBitmaskcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 4122 | ParseGCBitmaskcopy(temp_gc_src, temp_gc_dst, | ^ print11.c:4145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4145 | SetDashes(buf) | ^ print11.c:4170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4170 | SetClipRectangles(buf) | ^ print11.c:4183:3: warning: call to undeclared function 'SetClipXOrigin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 4183 | SetClipXOrigin(gc, IShort(&buf[8])); | ^ print11.c:4184:3: warning: call to undeclared function 'SetClipYOrigin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 4184 | SetClipYOrigin(gc, IShort(&buf[10])); | ^ print11.c:4220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4220 | FreeGC(buf) | ^ print11.c:4290:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4290 | if (dst.pix = FindPixmapFromCurrentClient(dstID)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:4290:15: note: place parentheses around the assignment to silence this warning 4290 | if (dst.pix = FindPixmapFromCurrentClient(dstID)) | ^ | ( ) print11.c:4290:15: note: use '==' to turn this assignment into an equality comparison 4290 | if (dst.pix = FindPixmapFromCurrentClient(dstID)) | ^ | == print11.c:4846:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4846 | CreateColormap(buf) | ^ print11.c:4862:7: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 4861 | debug (2, (stderr, "CreateColormap sabotaged vis %x\n", | ~~ | %lx 4862 | temp_colormap->visual->vis_id)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ print11.c:4892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4892 | FreeColormap(buf) | ^ print11.c:4912:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4912 | CopyColormapAndFree(buf) | ^ print11.c:4956:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4956 | InstallColormap(buf) | ^ print11.c:4975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4975 | UninstallColormap(buf) | ^ print11.c:4994:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4994 | ListInstalledColormaps(buf) | ^ print11.c:5013:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5013 | ListInstalledColormapsReply(buf, context) | ^ print11.c:5034:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5034 | AllocColor(buf) | ^ print11.c:5079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5079 | AllocColorReply(buf, context) | ^ print11.c:5091:26: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5091 | ISetLong(&buf[16], MapColorIndex(&index, temps->cmap, Reply)); | ^ print11.c:5108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5108 | AllocNamedColor(buf) | ^ print11.c:5138:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5138 | AllocNamedColorReply(buf, context) | ^ print11.c:5149:25: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5149 | ISetLong(&buf[8], MapColorIndex(&index, cmap, Reply)); | ^ print11.c:5170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5170 | AllocColorCells(buf) | ^ print11.c:5178:31: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 5178 | printf("bad colormap %x\n", ILong(&buf[4])); | ~~ ^~~~~~~~~~~~~~ | %lx print11.c:5203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5203 | AllocColorCellsReply(buf, context) | ^ print11.c:5218:25: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5218 | ISetLong(curbuf, MapColorIndex(&index, cmap, Reply)); | ^ print11.c:5236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5236 | AllocColorPlanes(buf) | ^ print11.c:5267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5267 | AllocColorPlanesReply(buf, context) | ^ print11.c:5279:25: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5279 | ISetLong(curbuf, MapColorIndex(&index, cmap, Reply)); | ^ print11.c:5300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5300 | FreeColors(buf) | ^ print11.c:5308:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 5308 | if (cmap = FindColormapFromCurrentClient(ILong(&buf[4]))) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:5308:11: note: place parentheses around the assignment to silence this warning 5308 | if (cmap = FindColormapFromCurrentClient(ILong(&buf[4]))) | ^ | ( ) print11.c:5308:11: note: use '==' to turn this assignment into an equality comparison 5308 | if (cmap = FindColormapFromCurrentClient(ILong(&buf[4]))) | ^ | == print11.c:5314:13: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5314 | pixel = MapColorIndex(&index, cmap, Request); | ^ print11.c:5318:57: warning: format specifies type 'int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 5318 | Dprintf(("Freeing color %d which maps to color %d\n",pixel,ILong(curbuf))); | ~~ ^~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:5318:63: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 5318 | Dprintf(("Freeing color %d which maps to color %d\n",pixel,ILong(curbuf))); | ~~ ^~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:5341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5341 | StoreColors(buf) | ^ print11.c:5362:21: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5362 | ISetLong(curbuf, MapColorIndex(&index, cmap, Request)); | ^ print11.c:5353:17: warning: unused variable 'color_mask' [-Wunused-variable] 5353 | unsigned char color_mask; | ^~~~~~~~~~ print11.c:5399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5399 | StoreNamedColor(buf) | ^ print11.c:5428:21: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5428 | ISetLong(&buf[8], MapColorIndex(&index, cmap, Request)); | ^ print11.c:5452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5452 | QueryColors(buf) | ^ print11.c:5484:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5484 | QueryColorsReply(buf, context) | ^ print11.c:5500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5500 | LookupColor(buf) | ^ print11.c:5524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5524 | LookupColorReply(buf, context) | ^ print11.c:5542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5542 | CreateCursor(buf) | ^ print11.c:5707:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5707 | RecolorCursor(buf) | ^ print11.c:5723:3: warning: call to undeclared function 'RecolorCursorFromCurrentClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5723 | RecolorCursorFromCurrentClient(xcursor,fg_r,fg_g,fg_b,bg_r,bg_g,bg_b); | ^ print11.c:5747:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5747 | QueryBestSize(buf) | ^ print11.c:5769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5769 | QueryBestSizeReply(buf, context) | ^ print11.c:5783:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5783 | QueryExtension(buf) | ^ print11.c:5803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5803 | QueryExtensionReply(buf, context) | ^ print11.c:5824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5824 | ListExtensions(buf) | ^ print11.c:5840:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5840 | ListExtensionsReply(buf, context) | ^ print11.c:5857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5857 | ChangeKeyboardMapping(buf) | ^ print11.c:5887:31: warning: variable 'server_count' set but not used [-Wunused-but-set-variable] 5887 | unsigned char server_min, server_count, server_max; | ^ print11.c:5956:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5956 | GetKeyboardMappingReply(buf, context) | ^ print11.c:5973:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5973 | ChangeKeyboardControl(buf) | ^ print11.c:5991:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5991 | GetKeyboardControl(buf) | ^ print11.c:6007:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6007 | GetKeyboardControlReply(buf, context) | ^ print11.c:6026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6026 | Bell(buf) | ^ print11.c:6043:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6043 | ChangePointerControl(buf) | ^ print11.c:6064:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6064 | GetPointerControl(buf) | ^ print11.c:6080:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6080 | GetPointerControlReply(buf, context) | ^ print11.c:6095:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6095 | SetScreenSaver(buf) | ^ print11.c:6115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6115 | GetScreenSaver(buf) | ^ print11.c:6131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6131 | GetScreenSaverReply(buf, context) | ^ print11.c:6147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6147 | ChangeHosts(buf) | ^ print11.c:6169:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6169 | ListHosts(buf) | ^ print11.c:6185:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6185 | ListHostsReply(buf, context) | ^ print11.c:6202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6202 | SetAccessControl(buf) | ^ print11.c:6219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6219 | SetCloseDownMode(buf) | ^ print11.c:6238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6238 | KillClient(buf) | ^ print11.c:6255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6255 | RotateProperties(buf) | ^ print11.c:6285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6285 | ForceScreenSaver(buf) | ^ print11.c:6302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6302 | SetPointerMapping(buf) | ^ print11.c:6325:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6325 | SetPointerMappingReply(buf, context) | ^ print11.c:6338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6338 | GetPointerMapping(buf) | ^ print11.c:6354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6354 | GetPointerMappingReply(buf, context) | ^ print11.c:6370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6370 | SetModifierMapping(buf) | ^ print11.c:6397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6397 | SetModifierMappingReply(buf, context) | ^ print11.c:6441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6441 | NoOperation(buf) | ^ print11.c:6462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6462 | PrintFailedSetUpReply(buf) | ^ print11.c:6506:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 6505 | Dprintf(("client base = 0x%x, mask = 0x%x\n", | ~~ | %lx 6506 | ILong(&buf[12]), | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:6507:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 6505 | Dprintf(("client base = 0x%x, mask = 0x%x\n", | ~~ | %lx 6506 | ILong(&buf[12]), 6507 | ILong(&buf[16]))); | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ print11.c:6826:9: warning: format specifies type 'unsigned int' but the argument has type 'Colormap' (aka 'unsigned long') [-Wformat] 6825 | Eprintf(("GetImage can't figure out matching depths %x (%d %d %d %d)\n", | ~~ | %lx 6826 | cmap->colormap_id, cmap->visual->vis_mapped->vis_depth, depth, | ^~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ print11.c:6959:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6959 | if (dst.win = FindWindowFromCurrentClient(did)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:6959:14: note: place parentheses around the assignment to silence this warning 6959 | if (dst.win = FindWindowFromCurrentClient(did)) { | ^ | ( ) print11.c:6959:14: note: use '==' to turn this assignment into an equality comparison 6959 | if (dst.win = FindWindowFromCurrentClient(did)) { | ^ | == print11.c:6963:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6963 | } else if (dst.pix = FindPixmapFromCurrentClient(did)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:6963:21: note: place parentheses around the assignment to silence this warning 6963 | } else if (dst.pix = FindPixmapFromCurrentClient(did)) { | ^ | ( ) print11.c:6963:21: note: use '==' to turn this assignment into an equality comparison 6963 | } else if (dst.pix = FindPixmapFromCurrentClient(did)) { | ^ | == --- server.o --- server.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | StartClientConnection(client) | ^ server.c:232:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | StartServerConnection(server) | ^ server.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | RestartServerConnection(server) | ^ server.c:301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | StartSetUpMessage (private_data, buf, n) | ^ server.c:338:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | FinishSetUpMessage (private_data, buf, n) | ^ server.c:611:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 611 | close(NewConnFD); | ^ server.c:622:13: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 622 | while (write(client->fdd->fd, &retval, 1) == 0); | ^ server.c:712:11: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 712 | while (write(client->fdd->fd, "\000", 1) == 0); | ^ server.c:743:13: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 743 | while (write(client->fdd->fd, "\001", 1) == 0); | ^ server.c:786:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | ClientRequest (private_data, buf, n) | ^ server.c:807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 807 | StartSetUpReply (private_data, buf, n) | ^ server.c:821:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 821 | FinishSetUpReply (private_data, buf, n) | ^ server.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | ServerPacket (private_data, buf, n) | ^ server.c:916:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | IgnoreServerBytes (private_data, buf, n) | ^ server.c:88:13: warning: unused variable 'ZeroTime1' [-Wunused-variable] 88 | static long ZeroTime1 = -1; | ^~~~~~~~~ server.c:89:13: warning: unused variable 'ZeroTime2' [-Wunused-variable] 89 | static long ZeroTime2 = -1; | ^~~~~~~~~ server.c:90:25: warning: unused variable 'tp' [-Wunused-variable] 90 | static struct timeval tp; | ^~ 17 warnings generated. --- main.o --- --- fd.o --- fd.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | UsingFD(fd, Handler, private_data) | ^ fd.c:92:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | NotUsingFD(fd) | ^ --- main.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c main.c --- fd.o --- fd.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | EOFonFD(fd) | ^ fd.c:106:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | close(fd); | ^ 4 warnings generated. --- prtype.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c prtype.c --- main.o --- main.c:91:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 91 | extern char *getenv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ main.c:135:8: warning: return type of 'main' is not 'int' [-Wmain-return-type] 135 | Global void | ^ main.c:135:8: note: change return type to 'int' 135 | Global void | ^~~~ | int main.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | main(argc, argv) | ^ main.c:205:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 205 | while (curdir = readdir(dir)) { | ~~~~~~~^~~~~~~~~~~~~~ main.c:205:20: note: place parentheses around the assignment to silence this warning 205 | while (curdir = readdir(dir)) { | ^ | ( ) main.c:205:20: note: use '==' to turn this assignment into an equality comparison 205 | while (curdir = readdir(dir)) { | ^ | == main.c:257:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 257 | close(client->fdd->fd); | ^ main.c:260:2: warning: call to undeclared function 'RemoveClientFromMetaClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 260 | RemoveClientFromMetaClient(meta_client, client); | ^ --- prtype.o --- prtype.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- main.o --- main.c:262:7: warning: call to undeclared function 'RemoveMetaClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- 168 | DumpItem(name, fd, buf, n) | ^ --- main.o --- 262 | RemoveMetaClient(meta_client); | ^ --- prtype.o --- prtype.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | PrintINT8(buf) | ^ prtype.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | PrintINT16(buf) | ^ prtype.c:203:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 203 | fprintf(stdout, "%d", n); | ~~ ^ | %ld --- main.o --- main.c:358:9: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- prtype.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | PrintINT32(buf) | ^ --- main.o --- 358 | (void) gethostname(LocalHostName, 255); | ^ --- prtype.o --- prtype.c:213:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 213 | fprintf(stdout, "%d", n); | ~~ ^ | %ld prtype.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | PrintCARD8(buf) | ^ --- main.o --- main.c:377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | SetUpConnectionSocket(iport) | ^ --- prtype.o --- prtype.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | PrintCARD16(buf) | ^ prtype.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | PrintCARD32(buf) | ^ prtype.c:243:26: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 243 | fprintf(stdout, "%08x", n); | ~~~~ ^ | %08lx prtype.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | PrintBYTE(buf) | ^ --- main.o --- main.c:476:56: warning: cast to 'Pointer' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] --- prtype.o --- prtype.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | PrintCHAR8(buf) | ^ --- main.o --- 476 | (void)UsingFD(ConnectionSocket, NewConnection, (Pointer)ConnectionSocket); | ^~~~~~~~~~~~~~~~~~~~~~~~~ --- prtype.o --- prtype.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | PrintSTRING16(buf) | ^ prtype.c:278:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | PrintSTR(buf) | ^ --- main.o --- main.c:536:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 536 | else | ^ --- prtype.o --- prtype.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | PrintWINDOW(buf) | ^ --- main.o --- main.c:579:35: 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] 579 | (FDD[cur_fd].InputHandler)(FDD[cur_fd].private_data); --- prtype.o --- prtype.c:300:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 300 | fprintf(stdout, "WIN %08x", n); | ~~~~ ^ | %08lx prtype.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | PrintWINDOWD(buf) | ^ --- main.o --- | ^ --- prtype.o --- prtype.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | PrintWINDOWNR(buf) | ^ --- main.o --- main.c:604:17: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- prtype.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | PrintPIXMAP(buf) | ^ prtype.c:344:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] --- main.o --- 604 | num_written = write(fd, (char *)curbuf, BytesToWrite); | ^ --- prtype.o --- 344 | fprintf(stdout, "PXM %08x", n); | ~~~~ ^ | %08lx prtype.c:349:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | PrintPIXMAPNPR(buf) | ^ prtype.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | PrintPIXMAPC(buf) | ^ prtype.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | PrintCURSOR(buf) | ^ prtype.c:386:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 386 | fprintf(stdout, "CUR %08x", n); | ~~~~ ^ | %08lx prtype.c:392:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | PrintFONT(buf) | ^ prtype.c:400:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 400 | fprintf(stdout, "FNT %08x", n); | ~~~~ ^ | %08lx --- main.o --- main.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | NewConnection(private_data) | ^ --- prtype.o --- prtype.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- main.o --- main.c:667:20: warning: cast to smaller integer type 'int' from 'Pointer' (aka 'char *') [-Wpointer-to-int-cast] --- prtype.o --- 406 | PrintGCONTEXT(buf) | ^ --- main.o --- 667 | int XPort = (int)private_data; | ^~~~~~~~~~~~~~~~~ main.c:679:16: warning: call to undeclared function 'ValidateNewConnection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 679 | validate = ValidateNewConnection(ip_addr); | ^ --- prtype.o --- prtype.c:411:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 411 | fprintf(stdout, "GXC %08x", n); | ~~~~ ^ | %08lx prtype.c:417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | PrintCOLORMAP(buf) | ^ prtype.c:425:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 425 | fprintf(stdout, "CMP %08x", n); | ~~~~ ^ | %08lx --- main.o --- main.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | DataFromClient(private_data) | ^ --- prtype.o --- prtype.c:430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | PrintCOLORMAPC(buf) | ^ --- main.o --- main.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | DataFromServer(private_data) | ^ main.c:837:13: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- prtype.c:444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | PrintDRAWABLE(buf) | ^ --- main.o --- 837 | num_read = read(read_fdd->fd, (char *)inbuffer->data + inbuffer->num_Saved, 64*1024); | ^ --- prtype.o --- prtype.c:449:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 449 | fprintf(stdout, "DWB %08x", n); | ~~~~ ^ | %08lx prtype.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | PrintFONTABLE(buf) | ^ prtype.c:459:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] --- main.o --- main.c:954:4: 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] --- prtype.o --- 459 | fprintf(stdout, "FTB %08x", n); --- main.o --- 954 | (private_data, process_buf, BytesRemaining); | ^ --- prtype.o --- | ~~~~ ^ | %08lx prtype.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | PrintATOM(buf) | ^ prtype.c:477:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 477 | fprintf(stdout, "ATM %08x", n); | ~~~~ ^ | %08lx prtype.c:482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | PrintATOMT(buf) | ^ prtype.c:496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | PrintVISUALID(buf) | ^ prtype.c:504:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 504 | fprintf(stdout, "VIS %08x", n); | ~~~~ ^ | %08lx prtype.c:509:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | PrintVISUALIDC(buf) | ^ prtype.c:523:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | PrintTIMESTAMP(buf) | ^ prtype.c:531:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 531 | fprintf(stdout, "TIM %08x", n); | ~~~~ ^ | %08lx --- main.o --- main.c:1068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- prtype.o --- prtype.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | PrintRESOURCEID(buf) | ^ --- main.o --- 1068 | RemoveSavedBytes(buffer, n) | ^ --- prtype.o --- prtype.c:545:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] --- main.o --- main.c:1099:64: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 1099 | ClientFD = accept(ConnectionSocket, (struct sockaddr *)&from, &len); | ^~~~ --- prtype.o --- 545 | fprintf(stdout, "RID %08x", n); | ~~~~ ^ | %08lx --- main.o --- /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/sys/socket.h:708:73: note: passing argument to parameter here 708 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) | ^ --- prtype.o --- prtype.c:551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | PrintKEYSYM(buf) | ^ prtype.c:556:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 556 | fprintf(stdout, "KYS %08x", n); | ~~~~ ^ | %08lx prtype.c:561:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | PrintKEYCODE(buf) | ^ prtype.c:571:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 571 | PrintKEYCODEA(buf) | ^ --- main.o --- main.c:1192:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1192 | close (ServerFD); | ^ --- prtype.o --- prtype.c:585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | PrintBUTTON(buf) | ^ prtype.c:595:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 595 | PrintBUTTONA(buf) | ^ prtype.c:615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | PrintEVENTFORM(buf) | ^ prtype.c:643:39: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 643 | fprintf(stdout, "**INVALID** (%d)", n); | ~~ ^ | %ld --- main.o --- main.c:1309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1309 | enterprocedure(s) | ^ main.c:1316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1316 | panic(s) | ^ --- prtype.o --- prtype.c:713:29: 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] 713 | (*TD[FieldType].PrintProc)(&buf[start]); | ^ --- main.o --- main.c:1383:11: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- prtype.c:729:29: 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] --- main.o --- 1383 | if ((read(fd, &buf[0], 8) != 8) || (buf[0] == 0)) { --- prtype.o --- 729 | (*TD[FieldType].PrintProc)(&buf[start]); | ^ --- print11.o --- 208 warnings generated. --- main.o --- | ^ main.c:1386:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1386 | close(fd); | ^ main.c:1423:20: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1423 | length -= cnt = write(fd, (char *)&req, sz_xListHostsReq); | ^ --- prtype.o --- prtype.c:753:53: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] --- main.o --- main.c:1447:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- prtype.o --- 753 | fprintf(stdout, "%s%20s: (%d)\n", Leader, name, number); | ~~ ^~~~~~ | %ld --- main.o --- 1447 | close(fd); | ^ --- prtype.o --- prtype.c:764:35: 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] 764 | n = (*TD[ListType].PrintProc)(buf); | ^ prtype.c:768:35: 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] 768 | n = (*TD[ListType].PrintProc)(buf); | ^ --- main.o --- main.c:1458:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1458 | close(fd); | ^ main.c:1466:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1466 | close(fd); | ^ --- prtype.o --- prtype.c:791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | PrintListSTR(buf, number, name) | ^ prtype.c:803:50: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 803 | fprintf(stdout, "%s%20s: (%d)\n", Leader, name, number); | ~~ ^~~~~~ | %ld prtype.c:823:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 823 | PrintBytes(buf, number, name) | ^ prtype.c:996:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 996 | DumpHexBuffer(buf, n) | ^ --- table11.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c table11.c --- prtype.o --- 62 warnings generated. --- xmove.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c xmove.c --- main.o --- 31 warnings generated. --- map.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c map.c --- table11.o --- table11.c:112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | DefineEValue(type, value, name) | ^ table11.c:856:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 856 | PrintCHAR2B(buf) | ^ table11.c:866:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 866 | PrintPOINT(buf) | ^ table11.c:875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 875 | PrintRECTANGLE(buf) | ^ table11.c:886:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | PrintARC(buf) | ^ table11.c:899:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 899 | PrintHOST(buf) | ^ table11.c:911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | PrintTIMECOORD(buf) | ^ table11.c:921:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | PrintFONTPROP(buf) | ^ table11.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | PrintCHARINFO(buf) | ^ table11.c:943:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 943 | PrintSEGMENT(buf) | ^ table11.c:954:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | PrintCOLORITEM(buf) | ^ table11.c:966:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 966 | PrintRGB(buf) | ^ table11.c:976:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | PrintFORMAT(buf) | ^ table11.c:986:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 986 | PrintSCREEN(buf) | ^ table11.c:1016:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | void AdjustSCREEN(buf, count) | ^ table11.c:1042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | PrintDEPTH(buf) | ^ table11.c:1056:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | PrintVISUALTYPE(buf) | ^ --- xmove.o --- xmove.c:161:6: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 160 | Dprintf((" id = %x, drawable = %x\n", | ~~ | %lx 161 | gc->gc_id, gc->drawable_id)); | ^~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:161:17: warning: format specifies type 'unsigned int' but the argument has type 'Drawable' (aka 'unsigned long') [-Wformat] 160 | Dprintf((" id = %x, drawable = %x\n", | ~~ | %lx 161 | gc->gc_id, gc->drawable_id)); | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:183:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 183 | while (item = deleteFirst(&client->resource_maps)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:183:17: note: place parentheses around the assignment to silence this warning 183 | while (item = deleteFirst(&client->resource_maps)) | ^ | ( ) xmove.c:183:17: note: use '==' to turn this assignment into an equality comparison 183 | while (item = deleteFirst(&client->resource_maps)) | ^ | == xmove.c:226:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 226 | while (item = deleteFirst(&client->colormap_list)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:226:17: note: place parentheses around the assignment to silence this warning 226 | while (item = deleteFirst(&client->colormap_list)) { | ^ | ( ) xmove.c:226:17: note: use '==' to turn this assignment into an equality comparison 226 | while (item = deleteFirst(&client->colormap_list)) { | ^ | == xmove.c:231:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 231 | while (item = deleteFirst(&client->grab_list)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:231:17: note: place parentheses around the assignment to silence this warning 231 | while (item = deleteFirst(&client->grab_list)) | ^ | ( ) xmove.c:231:17: note: use '==' to turn this assignment into an equality comparison 231 | while (item = deleteFirst(&client->grab_list)) | ^ | == xmove.c:242:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 242 | while (item = deleteFirst(&client->selection_list)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:242:17: note: place parentheses around the assignment to silence this warning 242 | while (item = deleteFirst(&client->selection_list)) | ^ | ( ) xmove.c:242:17: note: use '==' to turn this assignment into an equality comparison 242 | while (item = deleteFirst(&client->selection_list)) | ^ | == xmove.c:270:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 270 | while (item = deleteFirst(&server->reply_list)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:270:17: note: place parentheses around the assignment to silence this warning 270 | while (item = deleteFirst(&server->reply_list)) | ^ | ( ) xmove.c:270:17: note: use '==' to turn this assignment into an equality comparison 270 | while (item = deleteFirst(&server->reply_list)) | ^ | == xmove.c:303:6: warning: unused variable 'ncells' [-Wunused-variable] 303 | int ncells; | ^~~~~~ xmove.c:315:6: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 314 | Dprintf((" id = 0x%x, parent = 0x%x, geom: %dx%d+%d+%d\n", | ~~ | %lx 315 | window->window_id, window->parent_id, | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:315:25: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 314 | Dprintf((" id = 0x%x, parent = 0x%x, geom: %dx%d+%d+%d\n", | ~~ | %lx 315 | window->window_id, window->parent_id, | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:380:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 380 | if (temp_window = hash_delete(client->window_table, xwin)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:380:21: note: place parentheses around the assignment to silence this warning 380 | if (temp_window = hash_delete(client->window_table, xwin)) | ^ | ( ) xmove.c:380:21: note: use '==' to turn this assignment into an equality comparison 380 | if (temp_window = hash_delete(client->window_table, xwin)) | ^ | == xmove.c:389:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 389 | if (temp_window = hash_find(client->window_table, xwin)) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:389:21: note: place parentheses around the assignment to silence this warning 389 | if (temp_window = hash_find(client->window_table, xwin)) { | ^ | ( ) xmove.c:389:21: note: use '==' to turn this assignment into an equality comparison 389 | if (temp_window = hash_find(client->window_table, xwin)) { | ^ | == xmove.c:403:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 403 | if (gc = hash_delete(client->gc_table, xgc)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:403:9: note: place parentheses around the assignment to silence this warning 403 | if (gc = hash_delete(client->gc_table, xgc)) { | ^ | ( ) xmove.c:403:9: note: use '==' to turn this assignment into an equality comparison 403 | if (gc = hash_delete(client->gc_table, xgc)) { | ^ | == xmove.c:441:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 441 | if (temp_font = hash_delete(client->font_table, xfont)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:441:19: note: place parentheses around the assignment to silence this warning 441 | if (temp_font = hash_delete(client->font_table, xfont)) { | ^ | ( ) xmove.c:441:19: note: use '==' to turn this assignment into an equality comparison 441 | if (temp_font = hash_delete(client->font_table, xfont)) { | ^ | == xmove.c:460:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 460 | if (cursor = hash_delete(client->cursor_table, xcursor)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:460:17: note: place parentheses around the assignment to silence this warning 460 | if (cursor = hash_delete(client->cursor_table, xcursor)) { | ^ | ( ) xmove.c:460:17: note: use '==' to turn this assignment into an equality comparison 460 | if (cursor = hash_delete(client->cursor_table, xcursor)) { | ^ | == xmove.c:473:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 473 | if (glyph = hash_delete(client->glyph_cursor_table, xcursor)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:473:14: note: place parentheses around the assignment to silence this warning 473 | if (glyph = hash_delete(client->glyph_cursor_table, xcursor)) | ^ | ( ) xmove.c:473:14: note: use '==' to turn this assignment into an equality comparison 473 | if (glyph = hash_delete(client->glyph_cursor_table, xcursor)) | ^ | == xmove.c:495:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 495 | if (temp_cursor = hash_find(client->cursor_table, xcursor)) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:495:22: note: place parentheses around the assignment to silence this warning 495 | if (temp_cursor = hash_find(client->cursor_table, xcursor)) { | ^ | ( ) xmove.c:495:22: note: use '==' to turn this assignment into an equality comparison 495 | if (temp_cursor = hash_find(client->cursor_table, xcursor)) { | ^ | == xmove.c:506:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 506 | if (temp_glyph_cursor = hash_find(client->glyph_cursor_table, xcursor)) { | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:506:28: note: place parentheses around the assignment to silence this warning 506 | if (temp_glyph_cursor = hash_find(client->glyph_cursor_table, xcursor)) { | ^ | ( ) xmove.c:506:28: note: use '==' to turn this assignment into an equality comparison 506 | if (temp_glyph_cursor = hash_find(client->glyph_cursor_table, xcursor)) { | ^ | == xmove.c:535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 535 | ChangeGrabPointerFromCurrentClient(cursor, time, event_mask) | ^ xmove.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | RemoveGrabButtonFromCurrentClient(button, grab_window, modifiers) | ^ xmove.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | RemoveGrabKeyFromCurrentClient(key, grab_window, modifiers) | ^ xmove.c:645:7: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 644 | Dprintf(("id: 0x%x, size = (%d,%d), depth = %d\n", | ~~ | %lx 645 | pixmap->pixmap_id, pixmap->width, pixmap->height, pixmap->depth)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:645:57: warning: format specifies type 'int' but the argument has type 'PixmapFormatPtr' (aka 'struct PixmapFormatRec *') [-Wformat] 644 | Dprintf(("id: 0x%x, size = (%d,%d), depth = %d\n", | ~~ 645 | pixmap->pixmap_id, pixmap->width, pixmap->height, pixmap->depth)); | ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:655:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 655 | if (temp_pixmap = hash_delete(client->pixmap_table, pixmap)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- table11.o --- 17 warnings generated. --- xmove.o --- xmove.c:655:21: note: place parentheses around the assignment to silence this warning 655 | if (temp_pixmap = hash_delete(client->pixmap_table, pixmap)) | ^ | ( ) xmove.c:655:21: note: use '==' to turn this assignment into an equality comparison 655 | if (temp_pixmap = hash_delete(client->pixmap_table, pixmap)) | ^ | == xmove.c:664:33: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] 664 | Dprintf(("selection: %d\n", selection->selection)) | ~~ ^~~~~~~~~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:712:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 712 | if (new_atom = FindAtom(client_atom)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:712:17: note: place parentheses around the assignment to silence this warning 712 | if (new_atom = FindAtom(client_atom)) | ^ | ( ) xmove.c:712:17: note: use '==' to turn this assignment into an equality comparison 712 | if (new_atom = FindAtom(client_atom)) | ^ | == xmove.c:715:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 715 | if (new_atom = FindServerAtom(atom)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ xmove.c:715:17: note: place parentheses around the assignment to silence this warning 715 | if (new_atom = FindServerAtom(atom)) | ^ | ( ) xmove.c:715:17: note: use '==' to turn this assignment into an equality comparison 715 | if (new_atom = FindServerAtom(atom)) | ^ | == xmove.c:718:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 718 | while (new_atom = FindAtom(client_atom)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:718:20: note: place parentheses around the assignment to silence this warning 718 | while (new_atom = FindAtom(client_atom)) | ^ | ( ) xmove.c:718:20: note: use '==' to turn this assignment into an equality comparison 718 | while (new_atom = FindAtom(client_atom)) | ^ | == xmove.c:762:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 762 | if (temp_atom = hash_delete(client->atom_table, atom)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:762:19: note: place parentheses around the assignment to silence this warning 762 | if (temp_atom = hash_delete(client->atom_table, atom)) { | ^ | ( ) xmove.c:762:19: note: use '==' to turn this assignment into an equality comparison 762 | if (temp_atom = hash_delete(client->atom_table, atom)) { | ^ | == xmove.c:774:19: warning: format specifies type 'unsigned int' but the argument has type 'Font' (aka 'unsigned long') [-Wformat] 773 | Dprintf(("name = %s, id = 0x%x\n", | ~~ | %lx 774 | font->name, font->font_id)); | ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:815:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- get_image.o --- --- xmove.o --- 815 | if (atommap = FindAtomMapping(name)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:815:18: note: place parentheses around the assignment to silence this warning 815 | if (atommap = FindAtomMapping(name)) | ^ | ( ) xmove.c:815:18: note: use '==' to turn this assignment into an equality comparison 815 | if (atommap = FindAtomMapping(name)) | ^ | == xmove.c:836:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 836 | if (atommap = FindAtomTypeMapping(name)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:836:18: note: place parentheses around the assignment to silence this warning 836 | if (atommap = FindAtomTypeMapping(name)) | ^ | ( ) xmove.c:836:18: note: use '==' to turn this assignment into an equality comparison 836 | if (atommap = FindAtomTypeMapping(name)) | ^ | == xmove.c:924:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 924 | if (new_cell = FindServerColorCell(cur_pixel, cmap, vis_index)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:924:16: note: place parentheses around the assignment to silence this warning 924 | if (new_cell = FindServerColorCell(cur_pixel, cmap, vis_index)) | ^ | ( ) xmove.c:924:16: note: use '==' to turn this assignment into an equality comparison 924 | if (new_cell = FindServerColorCell(cur_pixel, cmap, vis_index)) | ^ | == xmove.c:948:36: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 948 | debug(2, (stderr, "%3x %3x | ", cur_pixel, new_cell->client_pixel)); | ~~~ ^~~~~~~~~ | %3lx ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ xmove.c:948:47: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 948 | debug(2, (stderr, "%3x %3x | ", cur_pixel, new_cell->client_pixel)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~ | %3lx ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ xmove.c:950:40: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 950 | debug(2, (stderr, "%3x %3x %3x | ", cur_pixel, | ~~~ ^~~~~~~~~ | %3lx ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ xmove.c:951:7: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 950 | debug(2, (stderr, "%3x %3x %3x | ", cur_pixel, | ~~~ | %3lx 951 | new_cell->server_pixel, new_cell->client_pixel)); | ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ xmove.c:951:31: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 950 | debug(2, (stderr, "%3x %3x %3x | ", cur_pixel, | ~~~ | %3lx 951 | new_cell->server_pixel, new_cell->client_pixel)); | ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ xmove.c:904:25: warning: unused variable 'temp_cell' [-Wunused-variable] 904 | ColorCellPtr new_cell, temp_cell; | ^~~~~~~~~ xmove.c:910:6: warning: unused variable 'split' [-Wunused-variable] 910 | int split; | ^~~~~ xmove.c:1138:5: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 1137 | Dprintf(("setting background pixmap to 0x%x\n", | ~~ | %lx 1138 | background_pixmap)) | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' --- get_image.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c get_image.c --- xmove.o --- 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1152:5: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1151 | Dprintf(("setting background pixel to 0x%x.\n", | ~~ | %lx 1152 | background_pixel)) | ^~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1162:50: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 1162 | Dprintf(("setting border pixmap to 0x%x.\n", border_pixmap)) | ~~ ^~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1172:49: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1172 | Dprintf(("setting border pixel to 0x%x.\n", border_pixel)) | ~~ ^~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1182:50: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1182 | Dprintf(("setting backing pixel to 0x%x.\n", backing_pixel)) | ~~ ^~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1192:45: warning: format specifies type 'unsigned int' but the argument has type 'Colormap' (aka 'unsigned long') [-Wformat] 1192 | Dprintf(("setting colormap to 0x%x.\n", colormap)) | ~~ ^~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1202:43: warning: format specifies type 'unsigned int' but the argument has type 'Cursor' (aka 'unsigned long') [-Wformat] 1202 | Dprintf(("setting cursor to 0x%x.\n", cursor)) | ~~ ^~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:275:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 275 | if (map = FindServerResourceBase(base)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ map.c:275:14: note: place parentheses around the assignment to silence this warning 275 | if (map = FindServerResourceBase(base)) | ^ | ( ) map.c:275:14: note: use '==' to turn this assignment into an equality comparison 275 | if (map = FindServerResourceBase(base)) | ^ | == map.c:301:23: warning: call to undeclared function 'DecrementResourceBase'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- xmove.o --- xmove.c:1463:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] --- map.o --- 301 | client_base = DecrementResourceBase(client_base, client->resource_mask); | ^ --- xmove.o --- 1463 | Dprintf(("setting plane mask to 0x%x\n", plane_mask)) | ~~ ^~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1472:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] --- map.o --- map.c:325:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- xmove.o --- 1472 | Dprintf(("setting foreground to 0x%x\n", foreground)) | ~~ ^~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' --- map.o --- 325 | if (map = FindResourceBase(base)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ --- xmove.o --- 70 | #define Dprintf(f) { if (PrintDebug) printf f; } --- map.o --- map.c:325:14: note: place parentheses around the assignment to silence this warning --- xmove.o --- | ^ --- map.o --- 325 | if (map = FindResourceBase(base)) --- xmove.o --- xmove.c:1481:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] --- map.o --- | ^ | ( ) map.c:325:14: note: use '==' to turn this assignment into an equality comparison --- xmove.o --- 1481 | Dprintf(("setting background to 0x%x\n", background)) | ~~ ^~~~~~~~~~ | %lx --- map.o --- 325 | if (map = FindResourceBase(base)) --- xmove.o --- ./xmond.h:70:45: note: expanded from macro 'Dprintf' --- map.o --- | ^ | == --- xmove.o --- 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:357:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 357 | while (tmp_client = (Client *)deleteFirst(&meta_client->client_list)) { | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- xmove.o --- xmove.c:1544:40: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 1544 | Dprintf(("setting tile to 0x%x\n", tile)) | ~~ ^~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:357:27: note: place parentheses around the assignment to silence this warning --- xmove.o --- xmove.c:1553:43: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 1553 | Dprintf(("setting stipple to 0x%x\n", stipple)) | ~~ ^~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' --- map.o --- 357 | while (tmp_client = (Client *)deleteFirst(&meta_client->client_list)) { | ^ | ( ) map.c:357:27: note: use '==' to turn this assignment into an equality comparison --- xmove.o --- 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- 357 | while (tmp_client = (Client *)deleteFirst(&meta_client->client_list)) { | ^ | == map.c:363:9: warning: call to undeclared function 'RemoveMetaClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- xmove.o --- xmove.c:1622:45: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 1622 | Dprintf(("setting clip mask to 0x%x\n", clip_mask)) --- map.o --- 363 | RemoveMetaClient(meta_client); | ^ --- xmove.o --- | ~~ ^~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:387:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 387 | DecrementResourceBase(int base, unsigned long mask) | ^ | int --- xmove.o --- xmove.c:1663:44: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 1663 | Dprintf(("parsing info for GC 0x%x\n", gc_ptr->gc_id)) | ~~ ^~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:429:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 429 | if (atom_ptr = hash_find(client->atom_table, xatom)) { | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ map.c:429:17: note: place parentheses around the assignment to silence this warning 429 | if (atom_ptr = hash_find(client->atom_table, xatom)) { | ^ | ( ) map.c:429:17: note: use '==' to turn this assignment into an equality comparison 429 | if (atom_ptr = hash_find(client->atom_table, xatom)) { | ^ | == map.c:455:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 455 | else | ^ --- xmove.o --- xmove.c:1881:5: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 1880 | Dprintf(("parsing info for GC copy from #0x%x to #0x%x\n", | ~~ | %lx 1881 | gc_ptr_dst->gc_id, gc_ptr_src->gc_id)) | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ xmove.c:1881:24: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 1880 | Dprintf(("parsing info for GC copy from #0x%x to #0x%x\n", | ~~ | %lx 1881 | gc_ptr_dst->gc_id, gc_ptr_src->gc_id)) | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- map.o --- map.c:632:4: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 631 | "xmove assert: MapColorIndex couldn't find a visual from VIS %x", | ~~ | %lx 632 | cvis->vis_id); | ^~~~~~~~~~~~ --- xmove.o --- xmove.c:2092:5: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 2091 | Eprintf(("ETHAN: ConvertPixmap has mixed visuals %x and %x\n", | ~~ | %lx 2092 | cmap->visual->vis_id, pixmap->cmap->visual->vis_id)); | ^~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ xmove.c:2092:27: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 2091 | Eprintf(("ETHAN: ConvertPixmap has mixed visuals %x and %x\n", | ~~ | %lx 2092 | cmap->visual->vis_id, pixmap->cmap->visual->vis_id)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ xmove.c:2149:3: warning: call to undeclared function 'ConvertImage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2149 | ConvertImage(image, pixmap->width, pixmap->height, pixmap->cmap, cmap); | ^ xmove.c:2057:6: warning: unused variable 'x' [-Wunused-variable] 2057 | int x, y; | ^ xmove.c:2057:9: warning: unused variable 'y' [-Wunused-variable] 2057 | int x, y; | ^ xmove.c:2058:24: warning: unused variable 'cells' [-Wunused-variable] 2058 | register ColorCellPtr cells; | ^~~~~ --- map.o --- 9 warnings generated. --- getsetProps.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c getsetProps.c --- xmove.o --- 62 warnings generated. --- move_window.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move_window.c --- get_image.o --- get_image.c:38:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | static unsigned int Ones(mask) /* HACKMEM 169 */ | ^ get_image.c:48:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | XImage *XMOVEGetImage (fd, seqno, server, d, x, y, width, height, plane_mask, format) | ^ get_image.c:95:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | XImage *XMOVEPreCreateImage(image_format, visual, format, gc, plane_mask, | ^ get_image.c:132:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | XImage *XMOVECreateImage (image_format, visual, depth, format, offset, data, width, height, | ^ get_image.c:202:2: warning: call to undeclared function '_XInitImageFuncPtrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 202 | _XInitImageFuncPtrs (image); | ^ 5 warnings generated. --- XMOVELib.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c XMOVELib.c --- getsetProps.o --- getsetProps.c:117:19: 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] 117 | (map_func)(MapMoveClientProps, &new_atom, &new_type, NULL, | ^ 1 warning generated. --- put_image.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c put_image.c --- move_window.o --- move_window.c:172:67: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 172 | Dprintf(("Creating window with id 0x%x\n parented by 0x%x\n",xwin, | ~~ ^~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move_window.c:173:6: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 172 | Dprintf(("Creating window with id 0x%x\n parented by 0x%x\n",xwin, | ~~ | %lx 173 | parent_window)); | ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move_window.c:32:10: warning: unused variable 'new_depth' [-Wunused-variable] 32 | int new_depth; | ^~~~~~~~~ move_window.c:239:4: warning: call to undeclared function 'GetWindowPropsState'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 239 | GetWindowPropsState(cur_window, | ^ 4 warnings generated. --- move_selects.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move_selects.c --- XMOVELib.o --- XMOVELib.c:70:4: warning: call to undeclared function 'SendXmoveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 70 | SendXmoveBuffer(server->fdd->fd, &server->fdd->outBuffer); | ^ XMOVELib.c:114:22: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | num_written = write (fd, (char *)buf, BytesToWrite); | ^ XMOVELib.c:99:25: warning: unused variable 'NBIO' [-Wunused-variable] 99 | int NBIO = 0; /* used in ioctl */ | ^~~~ XMOVELib.c:166:17: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 166 | num_read = read (fd, (char *)buf, BytesToRead); | ^ XMOVELib.c:153:25: warning: unused variable 'NBIO' [-Wunused-variable] 153 | int NBIO = 0; /* used in ioctl */ | ^~~~ XMOVELib.c:197:10: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 197 | int retval, remaining; | ^ XMOVELib.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | XMOVELoadFont(fd, seqno, id, name) | ^ XMOVELib.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | XMOVEInternAtom(fd, seqno, name, onlyifexists) | ^ XMOVELib.c:411:43: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 411 | Dprintf(("InternAtom reply: Atom=%d\n",ILong((unsigned char *)&InternAtomReply.atom))); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ XMOVELib.c:420:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | Cursor XMOVECreateGlyphCursor(fd, seqno, id, source_font, mask_font, | ^ XMOVELib.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | XMOVECreatePixmap(fd, seqno, id, d, width, height, depth) | ^ XMOVELib.c:480:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | XMOVESetSelectionOwner(fd, seqno, selection, owner, time) | ^ XMOVELib.c:503:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | XMOVEGetSelectionOwner(fd, seqno, selection) | ^ XMOVELib.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | XMOVECreateGC(fd, seqno, id, d, valuemask, values) | ^ XMOVELib.c:718:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | Cursor XMOVECreatePixmapCursor(fd, seqno, id, source, mask, foreground, | ^ XMOVELib.c:752:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | XMOVEFreeGC (fd, seqno, gc) | ^ XMOVELib.c:769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | XMOVEFreePixmap (fd, seqno, pixmap) | ^ XMOVELib.c:786:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 786 | XMOVEMapWindow (fd, seqno, w) | ^ XMOVELib.c:793:50: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 793 | Dprintf(("in XMOVEMapWindow mapping 0x%x\n",w)); | ~~ ^ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ XMOVELib.c:803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 803 | XMOVECreateWindow(fd, seqno, id, parent, x, y, width, height, border_width, | ^ XMOVELib.c:928:32: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 927 | Dprintf (("XMOVECreateWindow: (%d,%d)-(%d,%d), with %d attributes\n", | ~~ | %lu 928 | x, y, x+width, y+height, valuescount)); | ^~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ XMOVELib.c:952:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | XMOVEGrabButton(fd, seqno, button, modifiers, grab_window, owner_events, | ^ XMOVELib.c:986:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 986 | XMOVEGrabKey(fd, seqno, key, modifiers, grab_window, owner_events, | ^ XMOVELib.c:1014:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1014 | XMOVEChangeProperty(fd, seqno, w, property, type, format, mode, | ^ XMOVELib.c:1050:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1050 | XMOVEAllocColor(fd, seqno, cmap, def) | ^ XMOVELib.c:1083:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1083 | XMOVEAllocNamedColor(fd, seqno, cmap, colorname, hard_def, exact_def) | ^ XMOVELib.c:1125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1125 | XMOVEStoreColor(fd, seqno, cmap, def) | ^ XMOVELib.c:1153:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1153 | XMOVEStoreNamedColor(fd, seqno, cmap, name, pixel, flags) | ^ XMOVELib.c:1181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | XMOVEQueryColor(fd, seqno, cmap, def) | ^ XMOVELib.c:1220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1220 | XMOVEAllocColorCells(fd, seqno, cmap, contig, masks, nplanes, pixels, ncolors) | ^ XMOVELib.c:1267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1267 | XMOVECreateColormap(fd, seqno, mid, w, visual, alloc) | ^ XMOVELib.c:1294:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1294 | XMOVELookupColor(fd, seqno, cmap, spec, def, scr) | ^ XMOVELib.c:1331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1331 | XMOVEGetAtomName(fd, seqno, atom) | ^ XMOVELib.c:1366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1366 | XMOVEGetProperty(fd, seqno, w, property, offset, length, delete, | ^ XMOVELib.c:1414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1414 | XMOVEUnmapWindow(fd, seqno, w) | ^ XMOVELib.c:1437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1437 | XMOVEGetInputFocus(fd, seqno) | ^ XMOVELib.c:1457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1457 | XMOVEVerifyRequest(fd, seqno) | ^ XMOVELib.c:1482:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1482 | XMOVEReceiveReplyOrError(fd, seqno, error) | ^ | int XMOVELib.c:1482:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] XMOVELib.c:1490:8: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 1490 | int retval; | ^ --- put_image.o --- put_image.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | NoSwap (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | SwapTwoBytes (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | SwapThreeBytes (src, dest, srclen, srcinc, destinc, height, byte_order) | ^ put_image.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | SwapFourBytes (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | SwapWords (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | SwapNibbles (src, dest, srclen, srcinc, destinc, height) | ^ put_image.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | ShiftNibblesLeft (src, dest, srclen, srcinc, destinc, height, nibble_order) | ^ put_image.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | SwapBits (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:315:66: warning: parameter 'half_order' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 315 | SwapBitsAndTwoBytes (src, dest, srclen, srcinc, destinc, height, half_order) | ^ 316 | register unsigned char *src, *dest; 317 | long srclen, srcinc, destinc; 318 | unsigned int height; 319 | { put_image.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | SwapBitsAndTwoBytes (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | SwapBitsAndFourBytes (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | SwapBitsAndWords (src, dest, srclen, srcinc, destinc, height, half_order) | ^ put_image.c:550:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | void SetReqByteOrder(req) | ^ put_image.c:661:17: 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] 661 | (*swapfunc)((unsigned char *)src, (unsigned char *)dest, | ^ put_image.c:680:13: 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] 680 | (*swapfunc)((unsigned char *)src, (unsigned char *)dest, | ^ put_image.c:563:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | SendXYImage(fd, seqno, image_format, req, image, req_xoffset, req_yoffset) | ^ put_image.c:695:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | SendZImage(fd, seqno, image_format, req, image, req_xoffset, req_yoffset, | ^ put_image.c:782:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | PutImageRequest(fd, seqno, image_format, d, gc, image, req_xoffset, req_yoffset, x, y, | ^ put_image.c:816:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | PutSubImage (fd, seqno, image_format, d, gc, image, req_xoffset, req_yoffset, x, y, | ^ put_image.c:834:25: warning: result of comparison of constant 65536 with expression of type 'unsigned short' is always false [-Wtautological-constant-out-of-range-compare] 834 | Available = ((65536 < image_format->max_request_size) ? (65536 << 2) | ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ put_image.c:882:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | XMOVEPutImage (fd, seqno, image_format, d, gc, image, req_xoffset, req_yoffset, | ^ put_image.c:920:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 920 | if (pixformat = GetPixmapFormat(image_format, image->depth)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ put_image.c:920:16: note: place parentheses around the assignment to silence this warning 920 | if (pixformat = GetPixmapFormat(image_format, image->depth)) { | ^ | ( ) put_image.c:920:16: note: use '==' to turn this assignment into an equality comparison 920 | if (pixformat = GetPixmapFormat(image_format, image->depth)) { | ^ | == put_image.c:945:6: warning: call to undeclared function '_XInitImageFuncPtrs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 945 | _XInitImageFuncPtrs(&img); | ^ put_image.c:917:6: warning: unused variable 'n' [-Wunused-variable] 917 | int n; | ^ --- XMOVELib.o --- 40 warnings generated. --- colormaps.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c colormaps.c --- move_selects.o --- move_selects.c:60:9: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] 59 | Dprintf(("Attempting to set selection (s)%d to owner %X\n", | ~~ | %lu 60 | selection_ptr->selection, owner)); | ^~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move_selects.c:60:35: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 59 | Dprintf(("Attempting to set selection (s)%d to owner %X\n", | ~~ | %lX 60 | selection_ptr->selection, owner)); | ^~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ 2 warnings generated. --- display.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c display.c --- put_image.o --- 24 warnings generated. --- MoveImage.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c MoveImage.c --- colormaps.o --- colormaps.c:96:42: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 95 | debug(2, (stderr, "(%4x/%4x/%4x) pixel %8x (cmap %8x) rw %x\n", | ~~~ | %8lx 96 | color.red, color.blue, color.green, cell->new_server_pixel, | ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:97:6: warning: format specifies type 'unsigned int' but the argument has type 'Colormap' (aka 'unsigned long') [-Wformat] 95 | debug(2, (stderr, "(%4x/%4x/%4x) pixel %8x (cmap %8x) rw %x\n", | ~~~ | %8lx 96 | color.red, color.blue, color.green, cell->new_server_pixel, 97 | cmap->colormap_id, cell->read_write)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:138:36: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 138 | debug(2, (stderr, "main %x/%x\n", cell->client_pixel, count)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:150:7: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 149 | debug(2, (stderr, "RO%x %x/%x\n", index, | ~~ | %lx 150 | nextrocell[index]->client_pixel, nextrocount[index])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:155:7: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 154 | debug(2, (stderr, "RW%x %x/%x\n", index, | ~~ | %lx 155 | nextrwcell[index]->client_pixel, nextrwcount[index])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:169:37: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 169 | debug(2, (stderr, "MAIN %x/%x\n", cell->client_pixel, count)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:195:9: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 194 | debug(2, (stderr, "RO%x %x/%x\n", index, | ~~ | %lx 195 | nextrocell[index]->client_pixel, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:212:9: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 211 | debug(2, (stderr, "RW%x %x/%x\n", index, | ~~ | %lx 212 | nextrwcell[index]->client_pixel, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:231:42: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 230 | debug(2, (stderr, "(%4x/%4x/%4x) pixel %8x (cmap %8x) rw %x\n", | ~~~ | %8lx 231 | color.red, color.green, color.blue, newpixel, cmap->colormap_id, rw)); | ^~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ colormaps.c:231:52: warning: format specifies type 'unsigned int' but the argument has type 'Colormap' (aka 'unsigned long') [-Wformat] 230 | debug(2, (stderr, "(%4x/%4x/%4x) pixel %8x (cmap %8x) rw %x\n", | ~~~ | %8lx 231 | color.red, color.green, color.blue, newpixel, cmap->colormap_id, rw)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ --- display.o --- display.c:16:44: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 16 | fprintf(stderr, "VIS %8x(%c%8x)%8x%8x\n", vis->vis_id, | ~~~ ^~~~~~~~~~~ | %8lx display.c:18:3: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 16 | fprintf(stderr, "VIS %8x(%c%8x)%8x%8x\n", vis->vis_id, | ~~~ | %8lx 17 | vis->vis_equivalent ? '=' : ' ', 18 | vis->vis_mapped ? vis->vis_mapped->vis_id : 0, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ display.c:22:38: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 22 | fprintf(stderr, " %8x%8x%8x\n", vis->vis_index[i], | ~~~ ^~~~~~~~~~~~~~~~~ | %8lx display.c:23:23: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 22 | fprintf(stderr, " %8x%8x%8x\n", vis->vis_index[i], | ~~~ | %8lx 23 | vis->vis_shift[i], vis->vis_mask[i]); | ^~~~~~~~~~~~~~~~ display.c:24:33: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] 24 | fprintf(stderr, " %8x\n\n", vis->vis_index[i]); | ~~~ ^~~~~~~~~~~~~~~~~ | %8lx display.c:81:7: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 80 | debug(2, (stderr, "SaveVisuals: saving visual %x\n", | ~~ | %lx 81 | cur_visual->vis_id)); | ^~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ display.c:165:6: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 165 | MapColorIndex(&index, colormap, Reply)); | ^ display.c:170:6: warning: call to undeclared function 'MapColorIndex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 170 | MapColorIndex(&index, colormap, Reply)); | ^ display.c:253:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 253 | if (fmt = GetPixmapFormat(image_format, depth)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ display.c:253:10: note: place parentheses around the assignment to silence this warning 253 | if (fmt = GetPixmapFormat(image_format, depth)) | ^ | ( ) display.c:253:10: note: use '==' to turn this assignment into an equality comparison 253 | if (fmt = GetPixmapFormat(image_format, depth)) | ^ | == display.c:270:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 270 | if (fmt = GetPixmapFormat(image_format, depth)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ display.c:270:10: note: place parentheses around the assignment to silence this warning 270 | if (fmt = GetPixmapFormat(image_format, depth)) | ^ | ( ) display.c:270:10: note: use '==' to turn this assignment into an equality comparison 270 | if (fmt = GetPixmapFormat(image_format, depth)) | ^ | == display.c:432:46: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 431 | debug(3, (stderr, "FindCompatibleVisual: checking for %s visual %x\n", | ~~ | %lx 432 | visual->vis_inuse ? "in-use" : "unused", visual->vis_id)); | ^~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ display.c:442:6: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 441 | debug(3, (stderr, "FindCompatibleVisual: comparing with visual %x\n", | ~~ | %lx 442 | curvisual->vis_id)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' 69 | #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) | ^ display.c:580:6: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 579 | Dprintf(("MakeNewServerFormats: ERROR visual C %x --> NULL\n", | ~~ | %lx 580 | cvisual->vis_id)); | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ display.c:602:4: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 601 | Dprintf(("MakeNewServerFormats: visual C %x --> S%c%x\n", | ~~ | %lx 602 | cvisual->vis_id, | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ display.c:604:4: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 601 | Dprintf(("MakeNewServerFormats: visual C %x --> S%c%x\n", | ~~ | %lx 602 | cvisual->vis_id, 603 | cvisual->vis_new_equivalent ? '=' : ' ', 604 | bestvisual?bestvisual->vis_id:0)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ display.c:615:7: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 614 | Dprintf(("MakeNewServerFormats: visual S %x --> NULL\n", | ~~ | %lx 615 | svisual->vis_id)); | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ display.c:620:6: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 619 | Dprintf(("MakeNewServerFormats: visual S %x --> C %x\n", | ~~ | %lx 620 | svisual->vis_id, bestvisual->vis_id)); | ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ display.c:620:23: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 619 | Dprintf(("MakeNewServerFormats: visual S %x --> C %x\n", | ~~ | %lx 620 | svisual->vis_id, bestvisual->vis_id)); | ^~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- move.o --- --- colormaps.o --- 10 warnings generated. --- move.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move.c --- check_auth.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c check_auth.c --- display.o --- 18 warnings generated. --- hash.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c hash.c --- check_auth.o --- check_auth.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | CheckAuth(typelen, type, keylen, key) | ^ check_auth.c:133:4: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | write(2, "Unable to execute xauth. User authentication not enabled\n", 57); | ^ check_auth.c:139:4: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | write(2, "Unable to execute xauth. User authentication not enabled\n", 57); | ^ check_auth.c:143:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | write(1, "Implementing MIT-MAGIC-COOKIE-1 user authentication\n", 52); | ^ --- move.o --- move.c:94:13: warning: unused variable 'item' [-Wunused-variable] 94 | Pointer item; | ^~~~ --- hash.o --- hash.c:59:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 59 | hash_free(hash_table *table) | ^ | int --- move.o --- move.c:307:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 307 | if (colon = strchr(new_display_name, ':')) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- hash.o --- hash.c:84:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 84 | hash_add(hash_table *table, void *data) | ^ --- move.o --- move.c:307:16: note: place parentheses around the assignment to silence this warning 307 | if (colon = strchr(new_display_name, ':')) { | ^ | ( ) --- hash.o --- | int --- move.o --- move.c:307:16: note: use '==' to turn this assignment into an equality comparison 307 | if (colon = strchr(new_display_name, ':')) { | ^ | == move.c:444:4: warning: call to undeclared function 'SendXmoveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 444 | SendXmoveBuffer(server->fdd->fd, &server->fdd->outBuffer); | ^ move.c:476:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 475 | fprintf(stdout, "XMOVE: switching client %d to display %s\n", | ~~ | %lu 476 | client->ClientNumber, full_display_name); | ^~~~~~~~~~~~~~~~~~~~ move.c:479:8: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 478 | Dprintf(("New display base = 0x%x, mask = 0x%x\n", | ~~ | %lx 479 | new_server->resource_base, new_server->resource_mask)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:479:35: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 478 | Dprintf(("New display base = 0x%x, mask = 0x%x\n", | ~~ | %lx 479 | new_server->resource_base, new_server->resource_mask)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:259:11: warning: unused variable 'count' [-Wunused-variable] 259 | int count = 1; /* ETHAN */ | ^~~~~ move.c:536:72: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] 536 | Dprintf(("About to Intern Atom %s == (c)%d (s)%d\n",atom->atom_name,atom->client_atom,atom->server_atom)); | ~~ ^~~~~~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:536:90: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] 536 | Dprintf(("About to Intern Atom %s == (c)%d (s)%d\n",atom->atom_name,atom->client_atom,atom->server_atom)); | ~~ ^~~~~~~~~~~~~~~~~ | %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:553:18: warning: format specifies type 'unsigned int' but the argument has type 'Font' (aka 'unsigned long') [-Wformat] 552 | Dprintf(("Font %s loaded with id 0x%x\n", | ~~ | %lx 553 | font->name, xfont)); | ^~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:580:48: warning: format specifies type 'unsigned int' but the argument has type 'Font' (aka 'unsigned long') [-Wformat] 580 | Dprintf(("Font fixed loaded with id 0x%x\n", xfont)); | ~~ ^~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:602:45: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 602 | Dprintf(("New pixmap %x old pixmap %x\n",xpixmap, | ~~ ^~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:603:6: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 602 | Dprintf(("New pixmap %x old pixmap %x\n",xpixmap, | ~~ | %lx 603 | pixmap->pixmap_id)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:637:41: warning: format specifies type 'unsigned int' but the argument has type 'Cursor' (aka 'unsigned long') [-Wformat] 637 | Dprintf(("cursor id 0x%x loaded.\n", cursor_ptr->cursor_id)); | ~~ ^~~~~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:678:10: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] 677 | Eprintf(("move.c: pixmap %x expected depth %d, got %d\n", | ~~ | %lx 678 | pixmap->pixmap_id, oldmapdepth->depth, image->depth)); | ^~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ move.c:727:42: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 727 | Dprintf(("putimage with gc 0x%x\n",gc)); | ~~ ^~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ --- check_auth.o --- 4 warnings generated. --- move.o --- move.c:816:58: warning: format specifies type 'unsigned int' but the argument has type 'Font' (aka 'unsigned long') [-Wformat] 816 | Dprintf(("remapped font for new gc to be 0x%x\n",gc_ptr->values.font)); | ~~ ^~~~~~~~~~~~~~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:847:65: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 847 | Eprintf(("Moving gc %x with ClipRects, but no origins?\n", xgc)); | ~~ ^~~ | %lx ./xmond.h:73:50: note: expanded from macro 'Eprintf' 73 | #define Eprintf(f) { if (EthanPrintDebug) printf f; } | ^ move.c:849:5: warning: call to undeclared function 'XMOVESetClipRectangles'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 849 | XMOVESetClipRectangles(new_fd, new_seqno, xgc, | ^ move.c:855:6: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 854 | Dprintf(("Created new GC with gc_id 0x%x old gc_id 0x%x\n", | ~~ | %lx 855 | xgc, gc_ptr->gc_id)); | ^~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:855:11: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] 854 | Dprintf(("Created new GC with gc_id 0x%x old gc_id 0x%x\n", | ~~ | %lx 855 | xgc, gc_ptr->gc_id)); | ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:793:13: warning: variable 'drawable' set but not used [-Wunused-but-set-variable] 793 | Drawable drawable; | ^ move.c:901:41: warning: format specifies type 'unsigned int' but the argument has type 'Cursor' (aka 'unsigned long') [-Wformat] 901 | Dprintf(("cursor id 0x%x loaded.\n", xcursor)); | ~~ ^~~~~~~ | %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' 70 | #define Dprintf(f) { if (PrintDebug) printf f; } | ^ move.c:762:15: warning: variable 'nchildren' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 762 | } else if (cur_fd == -1) | ^~~~~~~~~~~~ move.c:770:8: note: uninitialized use occurs here 770 | if (nchildren >= 2) { | ^~~~~~~~~ move.c:762:11: note: remove the 'if' if its condition is always false 762 | } else if (cur_fd == -1) | ^~~~~~~~~~~~~~~~~ 763 | panic("At QueryTree, cur_fd == -1"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 764 | else { | ~~~~ move.c:757:19: note: initialize the variable 'nchildren' to silence this warning 757 | u_int nchildren; | ^ | = 0 move.c:1071:7: warning: call to undeclared function 'XMOVESetCloseDownMode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1071 | XMOVESetCloseDownMode(new_fd, new_seqno, client->closedownmode); | ^ move.c:916:16: warning: unused variable 'curvis' [-Wunused-variable] 916 | VisualPtr curvis; | ^~~~~~ --- XMOVEImUtil.o --- --- move.o --- move.c:917:22: warning: unused variable 'curformat' [-Wunused-variable] 917 | PixmapFormatPtr curformat; | ^~~~~~~~~ move.c:1305:9: warning: call to undeclared function 'SendXmoveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1305 | SendXmoveBuffer(server->fdd->fd, &server->fdd->outBuffer); | ^ move.c:1339:4: warning: call to undeclared function 'StoreWindowStates'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1339 | StoreWindowStates(); | ^ --- XMOVEImUtil.o --- 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 -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c XMOVEImUtil.c --- hash.o --- 2 warnings generated. --- xmove._man --- rm -f xmove._man if test -z "" ; then cd `dirname xmove` && ln -s `basename xmove.man` `basename xmove._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" < xmove.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/\@\@$/\/' >xmove._man; fi --- move.o --- 29 warnings generated. --- XMOVEImUtil.o --- XMOVEImUtil.c:56:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | Global void MapImage32 (data, width, height, depth, bpl, cmap, dir, src_endian, dst_endian) | ^ XMOVEImUtil.c:136:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | Global void MapImage16 (data, width, height, depth, bpl, cmap, dir, src_endian, dst_endian) | ^ XMOVEImUtil.c:208:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | Global void MapImage8 (data, width, height, depth, bpl, cmap, dir) | ^ 3 warnings generated. --- xmove --- rm -f xmove clang -o xmove -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib decode11.o linkl.o print11.o server.o fd.o main.o prtype.o table11.o xmove.o map.o get_image.o getsetProps.o move_window.o XMOVELib.o put_image.o move_selects.o colormaps.o display.o MoveImage.o move.o check_auth.o hash.o XMOVEImUtil.o -lX11 making all in ./xmovectrl... --- xmovectrl.o --- --- xmovectrl._man --- --- xmovectrl.o --- 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 -I/opt/pkg/include -c xmovectrl.c --- xmovectrl._man --- rm -f xmovectrl._man if test -z "" ; then cd `dirname xmovectrl` && ln -s `basename xmovectrl.man` `basename xmovectrl._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" < xmovectrl.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/\@\@$/\/' >xmovectrl._man; fi --- xmovectrl.o --- xmovectrl.c:39:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 39 | main(int argc, char **argv, char **envp) | ^ | int xmovectrl.c:48:6: warning: call to undeclared function 'SetlittleEndian'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | SetlittleEndian(); | ^ xmovectrl.c:59:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | usage(*argv); | ^ xmovectrl.c:64:18: warning: call to undeclared function 'ParseDisplay'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | XmovePort = ParseDisplay(XmoveDisplay); /* replaces ':' with '\0' */ | ^ xmovectrl.c:74:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | usage(*argv); | ^ xmovectrl.c:78:16: warning: call to undeclared function 'ConnectToServer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | XmoveFd = ConnectToServer(); | ^ xmovectrl.c:82:12: warning: call to undeclared function 'Ctrl_moveall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | return (Ctrl_moveall(--num_args, ++cur_argv)); | ^ xmovectrl.c:85:12: warning: call to undeclared function 'Ctrl_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | return (Ctrl_list(--num_args, ++cur_argv)); | ^ xmovectrl.c:88:12: warning: call to undeclared function 'Ctrl_move'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | return (Ctrl_move(--num_args, ++cur_argv)); | ^ xmovectrl.c:91:12: warning: call to undeclared function 'Ctrl_quit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | return (Ctrl_quit(--num_args, ++cur_argv)); | ^ xmovectrl.c:94:12: warning: call to undeclared function 'Ctrl_setdefaultserver'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 94 | return (Ctrl_setdefaultserver(--num_args, ++cur_argv)); | ^ xmovectrl.c:103:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 103 | ConnectToServer() | ^ | int xmovectrl.c:170:10: warning: call to undeclared function 'getauthkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 170 | if (getauthkey(XmoveFullDisplay, (char *)iobuf+12, &typelen, (char *)iobuf+32, &keylen) != -1) { | ^ xmovectrl.c:177:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | SendBuffer(server_fd, iobuf, send_len); | ^ xmovectrl.c:178:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | ReceiveBuffer(server_fd, iobuf, 1); /* 1==success, 0==not-authorized */ | ^ xmovectrl.c:189:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 189 | Ctrl_moveall(num_args, my_argv) | ^ | int xmovectrl.c:234:8: warning: call to undeclared function 'move_getauthkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 234 | if (move_getauthkey(*my_argv, | ^ xmovectrl.c:253:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 253 | SendBuffer(XmoveFd, (char *)buf, 12); | ^ xmovectrl.c:264:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 264 | ReceiveBuffer(XmoveFd, &buf[0], 4); | ^ xmovectrl.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | Ctrl_moveall(num_args, my_argv) | ^ xmovectrl.c:275:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 275 | Ctrl_move(num_args, my_argv) | ^ | int xmovectrl.c:328:8: warning: call to undeclared function 'move_getauthkey'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 328 | if (move_getauthkey(*my_argv, | ^ xmovectrl.c:347:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 347 | SendBuffer(XmoveFd, (char *)buf, 12); | ^ xmovectrl.c:363:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 363 | ReceiveBuffer(XmoveFd, &buf[0], 4); | ^ xmovectrl.c:275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | Ctrl_move(num_args, my_argv) | ^ xmovectrl.c:374:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 374 | Ctrl_list(num_args, my_argv) | ^ | int xmovectrl.c:393:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 393 | SendBuffer(XmoveFd, (char *)buf, 12); | ^ xmovectrl.c:394:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 394 | ReceiveBuffer(XmoveFd, (char *)&num_clients, sizeof(unsigned long)); | ^ xmovectrl.c:374:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | Ctrl_list(num_args, my_argv) | ^ xmovectrl.c:405:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 405 | Ctrl_quit(num_args, my_argv) | ^ | int xmovectrl.c:434:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 434 | SendBuffer(XmoveFd, (char *)buf, 12); | ^ xmovectrl.c:435:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 435 | ReceiveBuffer(XmoveFd, &buf[0], 1); | ^ xmovectrl.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | Ctrl_quit(num_args, my_argv) | ^ xmovectrl.c:419:22: warning: 'scanf' may overflow; destination buffer in argument 2 has size 10, but the corresponding specifier may require size 11 [-Wfortify-source] 419 | if (scanf("%10s", &buf[0]) == EOF) | ^ xmovectrl.c:440:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 440 | Ctrl_setdefaultserver(num_args, my_argv) | ^ | int xmovectrl.c:464:6: warning: call to undeclared function 'SendBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 464 | SendBuffer(XmoveFd, (char *)buf, 12); | ^ xmovectrl.c:468:6: warning: call to undeclared function 'ReceiveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | ReceiveBuffer(XmoveFd, &buf[0], 4); | ^ xmovectrl.c:440:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | Ctrl_setdefaultserver(num_args, my_argv) | ^ xmovectrl.c:480:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 480 | ParseDisplay(char *display_name) | ^ | int xmovectrl.c:492:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 492 | usage(char *appname) | ^ | int xmovectrl.c:496:1: warning: non-void function does not return a value [-Wreturn-type] 496 | } | ^ xmovectrl.c:505:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 505 | ISetLong(buf, value) | ^ xmovectrl.c:531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | ILong (buf) | ^ xmovectrl.c:538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | IShort (buf) | ^ xmovectrl.c:545:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 545 | IByte (buf) | ^ xmovectrl.c:552:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | IBool(buf) | ^ xmovectrl.c:561:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 561 | SetlittleEndian() | ^ | int xmovectrl.c:569:1: warning: non-void function does not return a value [-Wreturn-type] 569 | } | ^ xmovectrl.c:629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | pad (n) | ^ 49 warnings generated. --- xmovectrl --- rm -f xmovectrl clang -o xmovectrl -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xmovectrl.o