WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xmove-2.0b2nb1 making all in ./xmove... 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 decode11.c:200:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DecodeRequest(buf, n) ^ decode11.c:214:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (CurrentVerbose = RequestVerbose) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ decode11.c:214:24: note: place parentheses around the assignment to silence this warning if (CurrentVerbose = RequestVerbose) ^ ( ) decode11.c:214:24: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] retval = (DecodeRequestList[Request])(buf); ^ decode11.c:231:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ decode11.c:257:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (CurrentVerbose = ReplyVerbose) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ decode11.c:257:25: note: place parentheses around the assignment to silence this warning if (CurrentVerbose = ReplyVerbose) ^ ( ) decode11.c:257:25: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] DecodeError(buf, n) ^ decode11.c:537:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (CurrentVerbose = EventVerbose) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ decode11.c:537:21: note: place parentheses around the assignment to silence this warning if (CurrentVerbose = EventVerbose) ^ ( ) decode11.c:537:21: note: use '==' to turn this assignment into an equality comparison if (CurrentVerbose = EventVerbose) ^ == decode11.c:727:25: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] SequenceNumber, client->SequenceMapping); ^~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c linkl.c linkl.c:33:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initList(list) ^ linkl.c:41:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prependToList(list, contents) ^ linkl.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] freeMatchingLeaf(list, contents) ^ linkl.c:204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findMatchingLeaf(list, contents) ^ linkl.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] getIndexedContents(list, index) ^ linkl.c:245:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeLeaf(list, leaf) ^ linkl.c:253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deleteLeaf(list, leaf) ^ linkl.c:274:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linkl_panic(s) ^ 18 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c print11.c print11.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintSetUpMessage(buf) ^ print11.c:202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintSetUpReply(buf) ^ 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 C2x [-Wdeprecated-non-prototype] (atom->type_map_func->MapProperty)(MapSendClientMessage, NULL, ^ print11.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PixmapError(buf) ^ print11.c:609:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] AtomError(buf) ^ print11.c:626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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] temp_window->visual->vis_id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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 C2x [-Wdeprecated-non-prototype] ChangeWindowAttributes(buf) ^ print11.c:1773:61: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("XMOVE ChangeWindowAttribute on window 0x%x\n",ILong(&buf[4]))) ~~ ^~~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] GetWindowAttributesReply(buf, context) ^ print11.c:1883:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (window = FindWindowFromCurrentClient(ILong(&buf[4]))) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:1883:17: note: place parentheses around the assignment to silence this warning if (window = FindWindowFromCurrentClient(ILong(&buf[4]))) { ^ ( ) print11.c:1883:17: note: use '==' to turn this assignment into an equality comparison 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] 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] DestroyTaggedWindows(); ^ print11.c:1905:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] DestroyTaggedWindows(); ^ print11.c:1927:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] ReparentWindow(buf) ^ print11.c:1957:60: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("XMOVE ReparentWindow Request on window 0x%x\n",ILong(&buf[4]))) ~~ ^~~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] GetProperty(buf) ^ print11.c:2439:52: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("XMOVE GetProperty on window 0x%x\n",ILong(&buf[4]))); ~~ ^~~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] GetPropertyReply(buf, context) ^ 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] SetSelectionOwner(buf) ^ print11.c:2605:45: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("Adding new selection %d\n",ILong(&buf[8]))) ~~ ^~~~~~~~~~~~~~ %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] GrabPointer(buf) ^ print11.c:2923:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] AddGrabToCurrentClient(temp_grab); ^ print11.c:2983:67: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 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' #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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] AddGrabToCurrentClient(temp_grab); ^ print11.c:3157:64: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] 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' #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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] GetFontPathReply(buf, context) ^ print11.c:3875:5: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] temp_pixmap->pixmap_id, IByte(&buf[1]))); ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' #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] Dprintf(("adding pixmap to client with drawable %x\n",ILong(&buf[8]))); ~~ ^~~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ print11.c:3864:40: warning: unused variable 'drawable' [-Wunused-variable] union {WindowPtr win; PixmapPtr pix;} drawable; ^ print11.c:3934:63: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 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' #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] RemovePixmapFromCurrentClient(pixmap); ^ print11.c:3971:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (pixmap = FindPixmapFromCurrentClient(drawable)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:3971:20: note: place parentheses around the assignment to silence this warning else if (pixmap = FindPixmapFromCurrentClient(drawable)) ^ ( ) print11.c:3971:20: note: use '==' to turn this assignment into an equality comparison else if (pixmap = FindPixmapFromCurrentClient(drawable)) ^ == print11.c:3973:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (window = FindWindowFromCurrentClient(drawable)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:3973:20: note: place parentheses around the assignment to silence this warning else if (window = FindWindowFromCurrentClient(drawable)) ^ ( ) print11.c:3973:20: note: use '==' to turn this assignment into an equality comparison else if (window = FindWindowFromCurrentClient(drawable)) ^ == print11.c:4004:13: warning: unused variable 'newcell' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] FreeGC(buf) ^ print11.c:4290:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dst.pix = FindPixmapFromCurrentClient(dstID)) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:4290:15: note: place parentheses around the assignment to silence this warning if (dst.pix = FindPixmapFromCurrentClient(dstID)) ^ ( ) print11.c:4290:15: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] CreateColormap(buf) ^ print11.c:4862:7: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] temp_colormap->visual->vis_id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] AllocColorCells(buf) ^ print11.c:5178:31: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] FreeColors(buf) ^ print11.c:5308:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cmap = FindColormapFromCurrentClient(ILong(&buf[4]))) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:5308:11: note: place parentheses around the assignment to silence this warning if (cmap = FindColormapFromCurrentClient(ILong(&buf[4]))) ^ ( ) print11.c:5308:11: note: use '==' to turn this assignment into an equality comparison 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] pixel = MapColorIndex(&index, cmap, Request); ^ print11.c:5318:57: warning: format specifies type 'int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] Dprintf(("Freeing color %d which maps to color %d\n",pixel,ILong(curbuf))); ~~ ^~~~~ %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ print11.c:5318:63: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("Freeing color %d which maps to color %d\n",pixel,ILong(curbuf))); ~~ ^~~~~~~~~~~~~ %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] 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] ISetLong(curbuf, MapColorIndex(&index, cmap, Request)); ^ print11.c:5353:17: warning: unused variable 'color_mask' [-Wunused-variable] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] ChangeKeyboardMapping(buf) ^ print11.c:5887:31: warning: variable 'server_count' set but not used [-Wunused-but-set-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintFailedSetUpReply(buf) ^ print11.c:6506:4: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] ILong(&buf[12]), ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] ILong(&buf[16]))); ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] cmap->colormap_id, cmap->visual->vis_mapped->vis_depth, depth, ^~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' #define Eprintf(f) { if (EthanPrintDebug) printf f; } ^ print11.c:6959:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dst.win = FindWindowFromCurrentClient(did)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:6959:14: note: place parentheses around the assignment to silence this warning if (dst.win = FindWindowFromCurrentClient(did)) { ^ ( ) print11.c:6959:14: note: use '==' to turn this assignment into an equality comparison if (dst.win = FindWindowFromCurrentClient(did)) { ^ == print11.c:6963:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } else if (dst.pix = FindPixmapFromCurrentClient(did)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print11.c:6963:21: note: place parentheses around the assignment to silence this warning } else if (dst.pix = FindPixmapFromCurrentClient(did)) { ^ ( ) print11.c:6963:21: note: use '==' to turn this assignment into an equality comparison } else if (dst.pix = FindPixmapFromCurrentClient(did)) { ^ == 208 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c server.c server.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] IgnoreServerBytes (private_data, buf, n) ^ server.c:88:13: warning: unused variable 'ZeroTime1' [-Wunused-variable] static long ZeroTime1 = -1; ^ server.c:89:13: warning: unused variable 'ZeroTime2' [-Wunused-variable] static long ZeroTime2 = -1; ^ server.c:90:25: warning: unused variable 'tp' [-Wunused-variable] static struct timeval tp; ^ 17 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c fd.c fd.c:72:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] NotUsingFD(fd) ^ fd.c:103:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] close(fd); ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c main.c 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *getenv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here char *getenv(const char *); ^ main.c:135:8: warning: return type of 'main' is not 'int' [-Wmain-return-type] Global void ^ main.c:135:8: note: change return type to 'int' 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 C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ main.c:205:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (curdir = readdir(dir)) { ~~~~~~~^~~~~~~~~~~~~~ main.c:205:20: note: place parentheses around the assignment to silence this warning while (curdir = readdir(dir)) { ^ ( ) main.c:205:20: note: use '==' to turn this assignment into an equality comparison 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] 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] RemoveClientFromMetaClient(meta_client, client); ^ main.c:262:7: warning: call to undeclared function 'RemoveMetaClient'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] RemoveMetaClient(meta_client); ^ main.c:358:9: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) gethostname(LocalHostName, 255); ^ main.c:377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] SetUpConnectionSocket(iport) ^ main.c:476:56: warning: cast to 'Pointer' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] (void)UsingFD(ConnectionSocket, NewConnection, (Pointer)ConnectionSocket); ^~~~~~~~~~~~~~~~~~~~~~~~~ main.c:536:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 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 C2x [-Wdeprecated-non-prototype] (FDD[cur_fd].InputHandler)(FDD[cur_fd].private_data); ^ main.c:604:17: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] num_written = write(fd, (char *)curbuf, BytesToWrite); ^ main.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NewConnection(private_data) ^ main.c:667:20: warning: cast to smaller integer type 'int' from 'Pointer' (aka 'char *') [-Wpointer-to-int-cast] 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] validate = ValidateNewConnection(ip_addr); ^ main.c:748:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DataFromClient(private_data) ^ main.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] num_read = read(read_fdd->fd, (char *)inbuffer->data + inbuffer->num_Saved, 64*1024); ^ 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 C2x [-Wdeprecated-non-prototype] (private_data, process_buf, BytesRemaining); ^ main.c:1068:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] RemoveSavedBytes(buffer, n) ^ 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] ClientFD = accept(ConnectionSocket, (struct sockaddr *)&from, &len); ^~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/socket.h:720:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ main.c:1192:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close (ServerFD); ^ main.c:1309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] panic(s) ^ main.c:1383:11: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((read(fd, &buf[0], 8) != 8) || (buf[0] == 0)) { ^ main.c:1386:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] length -= cnt = write(fd, (char *)&req, sz_xListHostsReq); ^ main.c:1447:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(fd); ^ main.c:1458:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] close(fd); ^ 31 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c prtype.c prtype.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DumpItem(name, fd, buf, n) ^ prtype.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintINT16(buf) ^ prtype.c:203:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(stdout, "%d", n); ~~ ^ %ld prtype.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintINT32(buf) ^ prtype.c:213:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintCARD8(buf) ^ prtype.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintCARD32(buf) ^ prtype.c:243:26: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintBYTE(buf) ^ prtype.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintCHAR8(buf) ^ prtype.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintSTR(buf) ^ prtype.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintWINDOW(buf) ^ prtype.c:300:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintWINDOWD(buf) ^ prtype.c:320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintWINDOWNR(buf) ^ prtype.c:336:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintPIXMAP(buf) ^ prtype.c:344:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintCURSOR(buf) ^ prtype.c:386:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintFONT(buf) ^ prtype.c:400:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(stdout, "FNT %08x", n); ~~~~ ^ %08lx prtype.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintGCONTEXT(buf) ^ prtype.c:411:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintCOLORMAP(buf) ^ prtype.c:425:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(stdout, "CMP %08x", n); ~~~~ ^ %08lx prtype.c:430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintCOLORMAPC(buf) ^ prtype.c:444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintDRAWABLE(buf) ^ prtype.c:449:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] PrintFONTABLE(buf) ^ prtype.c:459:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(stdout, "FTB %08x", n); ~~~~ ^ %08lx prtype.c:469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintATOM(buf) ^ prtype.c:477:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintVISUALID(buf) ^ prtype.c:504:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintTIMESTAMP(buf) ^ prtype.c:531:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(stdout, "TIM %08x", n); ~~~~ ^ %08lx prtype.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintRESOURCEID(buf) ^ prtype.c:545:31: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] fprintf(stdout, "RID %08x", n); ~~~~ ^ %08lx prtype.c:551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintKEYSYM(buf) ^ prtype.c:556:30: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintKEYCODEA(buf) ^ prtype.c:585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintEVENTFORM(buf) ^ prtype.c:643:39: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(stdout, "**INVALID** (%d)", n); ~~ ^ %ld 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 C2x [-Wdeprecated-non-prototype] (*TD[FieldType].PrintProc)(&buf[start]); ^ 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 C2x [-Wdeprecated-non-prototype] (*TD[FieldType].PrintProc)(&buf[start]); ^ prtype.c:753:53: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(stdout, "%s%20s: (%d)\n", Leader, name, number); ~~ ^~~~~~ %ld 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] n = (*TD[ListType].PrintProc)(buf); ^ prtype.c:791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintListSTR(buf, number, name) ^ prtype.c:803:50: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] DumpHexBuffer(buf, n) ^ 62 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c table11.c table11.c:112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] PrintVISUALTYPE(buf) ^ 17 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c xmove.c xmove.c:161:6: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] gc->gc_id, gc->drawable_id)); ^~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] gc->gc_id, gc->drawable_id)); ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:183:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (item = deleteFirst(&client->resource_maps)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:183:17: note: place parentheses around the assignment to silence this warning while (item = deleteFirst(&client->resource_maps)) ^ ( ) xmove.c:183:17: note: use '==' to turn this assignment into an equality comparison while (item = deleteFirst(&client->resource_maps)) ^ == xmove.c:226:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (item = deleteFirst(&client->colormap_list)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:226:17: note: place parentheses around the assignment to silence this warning while (item = deleteFirst(&client->colormap_list)) { ^ ( ) xmove.c:226:17: note: use '==' to turn this assignment into an equality comparison while (item = deleteFirst(&client->colormap_list)) { ^ == xmove.c:231:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (item = deleteFirst(&client->grab_list)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:231:17: note: place parentheses around the assignment to silence this warning while (item = deleteFirst(&client->grab_list)) ^ ( ) xmove.c:231:17: note: use '==' to turn this assignment into an equality comparison while (item = deleteFirst(&client->grab_list)) ^ == xmove.c:242:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (item = deleteFirst(&client->selection_list)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:242:17: note: place parentheses around the assignment to silence this warning while (item = deleteFirst(&client->selection_list)) ^ ( ) xmove.c:242:17: note: use '==' to turn this assignment into an equality comparison while (item = deleteFirst(&client->selection_list)) ^ == xmove.c:270:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (item = deleteFirst(&server->reply_list)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:270:17: note: place parentheses around the assignment to silence this warning while (item = deleteFirst(&server->reply_list)) ^ ( ) xmove.c:270:17: note: use '==' to turn this assignment into an equality comparison while (item = deleteFirst(&server->reply_list)) ^ == xmove.c:303:6: warning: unused variable 'ncells' [-Wunused-variable] int ncells; ^ xmove.c:315:6: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] window->window_id, window->parent_id, ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] window->window_id, window->parent_id, ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:380:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (temp_window = hash_delete(client->window_table, xwin)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:380:21: note: place parentheses around the assignment to silence this warning if (temp_window = hash_delete(client->window_table, xwin)) ^ ( ) xmove.c:380:21: note: use '==' to turn this assignment into an equality comparison 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] if (temp_window = hash_find(client->window_table, xwin)) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:389:21: note: place parentheses around the assignment to silence this warning if (temp_window = hash_find(client->window_table, xwin)) { ^ ( ) xmove.c:389:21: note: use '==' to turn this assignment into an equality comparison 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] if (gc = hash_delete(client->gc_table, xgc)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:403:9: note: place parentheses around the assignment to silence this warning if (gc = hash_delete(client->gc_table, xgc)) { ^ ( ) xmove.c:403:9: note: use '==' to turn this assignment into an equality comparison 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] if (temp_font = hash_delete(client->font_table, xfont)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:441:19: note: place parentheses around the assignment to silence this warning if (temp_font = hash_delete(client->font_table, xfont)) { ^ ( ) xmove.c:441:19: note: use '==' to turn this assignment into an equality comparison 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] if (cursor = hash_delete(client->cursor_table, xcursor)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:460:17: note: place parentheses around the assignment to silence this warning if (cursor = hash_delete(client->cursor_table, xcursor)) { ^ ( ) xmove.c:460:17: note: use '==' to turn this assignment into an equality comparison 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] if (glyph = hash_delete(client->glyph_cursor_table, xcursor)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:473:14: note: place parentheses around the assignment to silence this warning if (glyph = hash_delete(client->glyph_cursor_table, xcursor)) ^ ( ) xmove.c:473:14: note: use '==' to turn this assignment into an equality comparison 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] if (temp_cursor = hash_find(client->cursor_table, xcursor)) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:495:22: note: place parentheses around the assignment to silence this warning if (temp_cursor = hash_find(client->cursor_table, xcursor)) { ^ ( ) xmove.c:495:22: note: use '==' to turn this assignment into an equality comparison 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] 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 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 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] pixmap->pixmap_id, pixmap->width, pixmap->height, pixmap->depth)); ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] pixmap->pixmap_id, pixmap->width, pixmap->height, pixmap->depth)); ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:655:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (temp_pixmap = hash_delete(client->pixmap_table, pixmap)) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:655:21: note: place parentheses around the assignment to silence this warning if (temp_pixmap = hash_delete(client->pixmap_table, pixmap)) ^ ( ) xmove.c:655:21: note: use '==' to turn this assignment into an equality comparison 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] Dprintf(("selection: %d\n", selection->selection)) ~~ ^~~~~~~~~~~~~~~~~~~~ %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:712:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (new_atom = FindAtom(client_atom)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:712:17: note: place parentheses around the assignment to silence this warning if (new_atom = FindAtom(client_atom)) ^ ( ) xmove.c:712:17: note: use '==' to turn this assignment into an equality comparison if (new_atom = FindAtom(client_atom)) ^ == xmove.c:715:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (new_atom = FindServerAtom(atom)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ xmove.c:715:17: note: place parentheses around the assignment to silence this warning if (new_atom = FindServerAtom(atom)) ^ ( ) xmove.c:715:17: note: use '==' to turn this assignment into an equality comparison if (new_atom = FindServerAtom(atom)) ^ == xmove.c:718:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (new_atom = FindAtom(client_atom)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:718:20: note: place parentheses around the assignment to silence this warning while (new_atom = FindAtom(client_atom)) ^ ( ) xmove.c:718:20: note: use '==' to turn this assignment into an equality comparison while (new_atom = FindAtom(client_atom)) ^ == xmove.c:762:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (temp_atom = hash_delete(client->atom_table, atom)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:762:19: note: place parentheses around the assignment to silence this warning if (temp_atom = hash_delete(client->atom_table, atom)) { ^ ( ) xmove.c:762:19: note: use '==' to turn this assignment into an equality comparison 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] font->name, font->font_id)); ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:815:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (atommap = FindAtomMapping(name)) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ xmove.c:815:18: note: place parentheses around the assignment to silence this warning if (atommap = FindAtomMapping(name)) ^ ( ) xmove.c:815:18: note: use '==' to turn this assignment into an equality comparison if (atommap = FindAtomMapping(name)) ^ == xmove.c:836:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (atommap = FindAtomTypeMapping(name)) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:836:18: note: place parentheses around the assignment to silence this warning if (atommap = FindAtomTypeMapping(name)) ^ ( ) xmove.c:836:18: note: use '==' to turn this assignment into an equality comparison if (atommap = FindAtomTypeMapping(name)) ^ == xmove.c:924:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (new_cell = FindServerColorCell(cur_pixel, cmap, vis_index)) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xmove.c:924:16: note: place parentheses around the assignment to silence this warning if (new_cell = FindServerColorCell(cur_pixel, cmap, vis_index)) ^ ( ) xmove.c:924:16: note: use '==' to turn this assignment into an equality comparison 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] debug(2, (stderr, "%3x %3x | ", cur_pixel, new_cell->client_pixel)); ~~~ ^~~~~~~~~ %3lx ./xmond.h:69:55: note: expanded from macro 'debug' #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] debug(2, (stderr, "%3x %3x | ", cur_pixel, new_cell->client_pixel)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~ %3lx ./xmond.h:69:55: note: expanded from macro 'debug' #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] debug(2, (stderr, "%3x %3x %3x | ", cur_pixel, ~~~ ^~~~~~~~~ %3lx ./xmond.h:69:55: note: expanded from macro 'debug' #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] new_cell->server_pixel, new_cell->client_pixel)); ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] new_cell->server_pixel, new_cell->client_pixel)); ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) ^ xmove.c:904:25: warning: unused variable 'temp_cell' [-Wunused-variable] ColorCellPtr new_cell, temp_cell; ^ xmove.c:910:6: warning: unused variable 'split' [-Wunused-variable] int split; ^ xmove.c:1138:5: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] background_pixmap)) ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] background_pixel)) ^~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting border pixmap to 0x%x.\n", border_pixmap)) ~~ ^~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting border pixel to 0x%x.\n", border_pixel)) ~~ ^~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting backing pixel to 0x%x.\n", backing_pixel)) ~~ ^~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting colormap to 0x%x.\n", colormap)) ~~ ^~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting cursor to 0x%x.\n", cursor)) ~~ ^~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1463:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("setting plane mask to 0x%x\n", plane_mask)) ~~ ^~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("setting foreground to 0x%x\n", foreground)) ~~ ^~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1481:46: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("setting background to 0x%x\n", background)) ~~ ^~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1544:40: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] Dprintf(("setting tile to 0x%x\n", tile)) ~~ ^~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1553:43: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] Dprintf(("setting stipple to 0x%x\n", stipple)) ~~ ^~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1622:45: warning: format specifies type 'unsigned int' but the argument has type 'Pixmap' (aka 'unsigned long') [-Wformat] Dprintf(("setting clip mask to 0x%x\n", clip_mask)) ~~ ^~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1663:44: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] Dprintf(("parsing info for GC 0x%x\n", gc_ptr->gc_id)) ~~ ^~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:1881:5: warning: format specifies type 'unsigned int' but the argument has type 'GContext' (aka 'unsigned long') [-Wformat] gc_ptr_dst->gc_id, gc_ptr_src->gc_id)) ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] gc_ptr_dst->gc_id, gc_ptr_src->gc_id)) ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ xmove.c:2092:5: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] cmap->visual->vis_id, pixmap->cmap->visual->vis_id)); ^~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' #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] cmap->visual->vis_id, pixmap->cmap->visual->vis_id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' #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] ConvertImage(image, pixmap->width, pixmap->height, pixmap->cmap, cmap); ^ xmove.c:2057:6: warning: unused variable 'x' [-Wunused-variable] int x, y; ^ xmove.c:2057:9: warning: unused variable 'y' [-Wunused-variable] int x, y; ^ xmove.c:2058:24: warning: unused variable 'cells' [-Wunused-variable] register ColorCellPtr cells; ^ 62 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c map.c map.c:275:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (map = FindServerResourceBase(base)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ map.c:275:14: note: place parentheses around the assignment to silence this warning if (map = FindServerResourceBase(base)) ^ ( ) map.c:275:14: note: use '==' to turn this assignment into an equality comparison 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] client_base = DecrementResourceBase(client_base, client->resource_mask); ^ map.c:325:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (map = FindResourceBase(base)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ map.c:325:14: note: place parentheses around the assignment to silence this warning if (map = FindResourceBase(base)) ^ ( ) map.c:325:14: note: use '==' to turn this assignment into an equality comparison if (map = FindResourceBase(base)) ^ == map.c:357:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (tmp_client = (Client *)deleteFirst(&meta_client->client_list)) { ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ map.c:357:27: note: place parentheses around the assignment to silence this warning while (tmp_client = (Client *)deleteFirst(&meta_client->client_list)) { ^ ( ) map.c:357:27: note: use '==' to turn this assignment into an equality comparison 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] RemoveMetaClient(meta_client); ^ map.c:387:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DecrementResourceBase(int base, unsigned long mask) ^ int map.c:429:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (atom_ptr = hash_find(client->atom_table, xatom)) { ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ map.c:429:17: note: place parentheses around the assignment to silence this warning if (atom_ptr = hash_find(client->atom_table, xatom)) { ^ ( ) map.c:429:17: note: use '==' to turn this assignment into an equality comparison if (atom_ptr = hash_find(client->atom_table, xatom)) { ^ == map.c:455:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ map.c:632:4: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] cvis->vis_id); ^~~~~~~~~~~~ 9 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c get_image.c get_image.c:38:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] _XInitImageFuncPtrs (image); ^ 5 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c getsetProps.c 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 C2x [-Wdeprecated-non-prototype] (map_func)(MapMoveClientProps, &new_atom, &new_type, NULL, ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move_window.c move_window.c:172:67: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] Dprintf(("Creating window with id 0x%x\n parented by 0x%x\n",xwin, ~~ ^~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] parent_window)); ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ move_window.c:32:10: warning: unused variable 'new_depth' [-Wunused-variable] 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] GetWindowPropsState(cur_window, ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c XMOVELib.c XMOVELib.c:70:4: warning: call to undeclared function 'SendXmoveBuffer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] num_written = write (fd, (char *)buf, BytesToWrite); ^ XMOVELib.c:99:25: warning: unused variable 'NBIO' [-Wunused-variable] 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] num_read = read (fd, (char *)buf, BytesToRead); ^ XMOVELib.c:153:25: warning: unused variable 'NBIO' [-Wunused-variable] int NBIO = 0; /* used in ioctl */ ^ XMOVELib.c:197:10: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] XMOVEInternAtom(fd, seqno, name, onlyifexists) ^ XMOVELib.c:411:43: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Dprintf(("InternAtom reply: Atom=%d\n",ILong((unsigned char *)&InternAtomReply.atom))); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] XMOVEMapWindow (fd, seqno, w) ^ XMOVELib.c:793:50: warning: format specifies type 'unsigned int' but the argument has type 'Window' (aka 'unsigned long') [-Wformat] Dprintf(("in XMOVEMapWindow mapping 0x%x\n",w)); ~~ ^ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] 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] x, y, x+width, y+height, valuescount)); ^~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] XMOVELib.c:1490:8: warning: variable 'retval' set but not used [-Wunused-but-set-variable] int retval; ^ 40 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c put_image.c put_image.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] SwapBitsAndTwoBytes (src, dest, srclen, srcinc, destinc, height, half_order) ^ put_image.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] if (pixformat = GetPixmapFormat(image_format, image->depth)) { ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ put_image.c:920:16: note: place parentheses around the assignment to silence this warning if (pixformat = GetPixmapFormat(image_format, image->depth)) { ^ ( ) put_image.c:920:16: note: use '==' to turn this assignment into an equality comparison 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] _XInitImageFuncPtrs(&img); ^ put_image.c:917:6: warning: unused variable 'n' [-Wunused-variable] int n; ^ 24 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move_selects.c move_selects.c:60:9: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] selection_ptr->selection, owner)); ^~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] selection_ptr->selection, owner)); ^~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ 2 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c colormaps.c colormaps.c:96:42: warning: format specifies type 'unsigned int' but the argument has type 'card32' (aka 'unsigned long') [-Wformat] color.red, color.blue, color.green, cell->new_server_pixel, ^~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] cmap->colormap_id, cell->read_write)); ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] debug(2, (stderr, "main %x/%x\n", cell->client_pixel, count)); ~~ ^~~~~~~~~~~~~~~~~~ %lx ./xmond.h:69:55: note: expanded from macro 'debug' #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] nextrocell[index]->client_pixel, nextrocount[index])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] nextrwcell[index]->client_pixel, nextrwcount[index])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] debug(2, (stderr, "MAIN %x/%x\n", cell->client_pixel, count)); ~~ ^~~~~~~~~~~~~~~~~~ %lx ./xmond.h:69:55: note: expanded from macro 'debug' #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] nextrocell[index]->client_pixel, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] nextrwcell[index]->client_pixel, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] color.red, color.green, color.blue, newpixel, cmap->colormap_id, rw)); ^~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] color.red, color.green, color.blue, newpixel, cmap->colormap_id, rw)); ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #define debug(n,f) (void)((debuglevel & n) ? (fprintf f,fflush(stderr)) : 0) ^ 10 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c display.c display.c:16:44: warning: format specifies type 'unsigned int' but the argument has type 'VisualID' (aka 'unsigned long') [-Wformat] 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] 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] 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] 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] 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] cur_visual->vis_id)); ^~~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] 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] MapColorIndex(&index, colormap, Reply)); ^ display.c:253:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fmt = GetPixmapFormat(image_format, depth)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ display.c:253:10: note: place parentheses around the assignment to silence this warning if (fmt = GetPixmapFormat(image_format, depth)) ^ ( ) display.c:253:10: note: use '==' to turn this assignment into an equality comparison if (fmt = GetPixmapFormat(image_format, depth)) ^ == display.c:270:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fmt = GetPixmapFormat(image_format, depth)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ display.c:270:10: note: place parentheses around the assignment to silence this warning if (fmt = GetPixmapFormat(image_format, depth)) ^ ( ) display.c:270:10: note: use '==' to turn this assignment into an equality comparison 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] visual->vis_inuse ? "in-use" : "unused", visual->vis_id)); ^~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] curvisual->vis_id)); ^~~~~~~~~~~~~~~~~ ./xmond.h:69:55: note: expanded from macro 'debug' #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] cvisual->vis_id)); ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] cvisual->vis_id, ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] bestvisual?bestvisual->vis_id:0)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] svisual->vis_id)); ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] svisual->vis_id, bestvisual->vis_id)); ^~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] svisual->vis_id, bestvisual->vis_id)); ^~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ 18 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c MoveImage.c clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c move.c move.c:94:13: warning: unused variable 'item' [-Wunused-variable] Pointer item; ^ move.c:307:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (colon = strchr(new_display_name, ':')) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ move.c:307:16: note: place parentheses around the assignment to silence this warning if (colon = strchr(new_display_name, ':')) { ^ ( ) move.c:307:16: note: use '==' to turn this assignment into an equality comparison 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] SendXmoveBuffer(server->fdd->fd, &server->fdd->outBuffer); ^ move.c:476:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] client->ClientNumber, full_display_name); ^~~~~~~~~~~~~~~~~~~~ move.c:479:8: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] new_server->resource_base, new_server->resource_mask)); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] new_server->resource_base, new_server->resource_mask)); ^~~~~~~~~~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ move.c:259:11: warning: unused variable 'count' [-Wunused-variable] int count = 1; /* ETHAN */ ^ move.c:536:72: warning: format specifies type 'int' but the argument has type 'Atom' (aka 'unsigned long') [-Wformat] 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' #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] 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' #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] font->name, xfont)); ^~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("Font fixed loaded with id 0x%x\n", xfont)); ~~ ^~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("New pixmap %x old pixmap %x\n",xpixmap, ~~ ^~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] pixmap->pixmap_id)); ^~~~~~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] Dprintf(("cursor id 0x%x loaded.\n", cursor_ptr->cursor_id)); ~~ ^~~~~~~~~~~~~~~~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] pixmap->pixmap_id, oldmapdepth->depth, image->depth)); ^~~~~~~~~~~~~~~~~ ./xmond.h:73:50: note: expanded from macro 'Eprintf' #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] Dprintf(("putimage with gc 0x%x\n",gc)); ~~ ^~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ move.c:816:58: warning: format specifies type 'unsigned int' but the argument has type 'Font' (aka 'unsigned long') [-Wformat] 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' #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] Eprintf(("Moving gc %x with ClipRects, but no origins?\n", xgc)); ~~ ^~~ %lx ./xmond.h:73:50: note: expanded from macro 'Eprintf' #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] 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] xgc, gc_ptr->gc_id)); ^~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #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] xgc, gc_ptr->gc_id)); ^~~~~~~~~~~~~ ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ move.c:793:13: warning: variable 'drawable' set but not used [-Wunused-but-set-variable] Drawable drawable; ^ move.c:901:41: warning: format specifies type 'unsigned int' but the argument has type 'Cursor' (aka 'unsigned long') [-Wformat] Dprintf(("cursor id 0x%x loaded.\n", xcursor)); ~~ ^~~~~~~ %lx ./xmond.h:70:45: note: expanded from macro 'Dprintf' #define Dprintf(f) { if (PrintDebug) printf f; } ^ move.c:762:15: warning: variable 'nchildren' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] } else if (cur_fd == -1) ^~~~~~~~~~~~ move.c:770:8: note: uninitialized use occurs here if (nchildren >= 2) { ^~~~~~~~~ move.c:762:11: note: remove the 'if' if its condition is always false } else if (cur_fd == -1) ^~~~~~~~~~~~~~~~~ move.c:757:19: note: initialize the variable 'nchildren' to silence this warning 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] XMOVESetCloseDownMode(new_fd, new_seqno, client->closedownmode); ^ move.c:916:16: warning: unused variable 'curvis' [-Wunused-variable] VisualPtr curvis; ^ move.c:917:22: warning: unused variable 'curformat' [-Wunused-variable] 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] 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] StoreWindowStates(); ^ 29 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c check_auth.c check_auth.c:25:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] 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] write(1, "Implementing MIT-MAGIC-COOKIE-1 user authentication\n", 52); ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c hash.c hash.c:59:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] hash_free(hash_table *table) ^ int hash.c:84:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] hash_add(hash_table *table, void *data) ^ int 2 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DNeedFunctionPrototypes=1 -DDEBUG -DATOMMAP_LIBPATH=\"/usr/pkg/lib\" -DDL_WOUT_PRAGMA -I/opt/pkg/include -c XMOVEImUtil.c XMOVEImUtil.c:56:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] Global void MapImage8 (data, width, height, depth, bpl, cmap, dir) ^ 3 warnings generated. 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 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... 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.c:39:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] SetlittleEndian(); ^ xmovectrl.c:59:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] usage(char *appname) ^ int xmovectrl.c:496:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xmovectrl.c:505:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] IBool(buf) ^ xmovectrl.c:561:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] SetlittleEndian() ^ int xmovectrl.c:569:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xmovectrl.c:629:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pad (n) ^ 49 warnings generated. 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 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