WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xwit-3.4nb3 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 xwit.c xwit.c:38:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] usage() ^ int xwit.c:71:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(2); ^ xwit.c:71:2: note: include the header or explicitly provide a declaration for 'exit' xwit.c:131:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] mssleep(ms) ^ xwit.c:140:14: warning: incompatible pointer types passing 'int *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] select(0,(int*)0,(int*)0,(int*)0,&tv); ^~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/_select.h:43:41: note: passing argument to parameter here int select(int, fd_set * __restrict, fd_set * __restrict, ^ xwit.c:140:22: warning: incompatible pointer types passing 'int *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] select(0,(int*)0,(int*)0,(int*)0,&tv); ^~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/_select.h:43:62: note: passing argument to parameter here int select(int, fd_set * __restrict, fd_set * __restrict, ^ xwit.c:140:30: warning: incompatible pointer types passing 'int *' to parameter of type 'fd_set *' (aka 'struct fd_set *') [-Wincompatible-pointer-types] select(0,(int*)0,(int*)0,(int*)0,&tv); ^~~~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/_select.h:44:24: note: passing argument to parameter here fd_set * __restrict, struct timeval * __restrict) ^ xwit.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mssleep(ms) ^ xwit.c:142:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:148:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] downtree(top) ^ xwit.c:155:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XQueryTree failed"); ^ xwit.c:160:7: warning: passing arguments to 'doit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doit(child[i]); ^ xwit.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] downtree(top) ^ xwit.c:167:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:172:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setrepeat() ^ xwit.c:187:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:194:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] getpos(window, xp, yp) ^ xwit.c:203:14: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XGetWindowAttributes(0x%x)", window); ^ xwit.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getpos(window, xp, yp) ^ xwit.c:211:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:217:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] getsize(window, wp, hp) ^ xwit.c:224:14: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XGetWindowAttributes(0x%x)", window); ^ xwit.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] getsize(window, wp, hp) ^ xwit.c:228:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:234:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] domove(window, x, y, right, bottom) ^ xwit.c:247:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XGetWindowAttributes(0x%x)", window); ^ xwit.c:273:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XGetWindowAttributes(0x%x)", ^ xwit.c:300:14: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("move failed"); ^ xwit.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domove(window, x, y, right, bottom) ^ xwit.c:301:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:322:17: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("resize: XReconfigureWMWindow"); ^ xwit.c:344:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("resize: XReconfigureWMWindow 2"); ^ xwit.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doresize(window, w, h) ^ xwit.c:351:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] rcresize(what, window) ^ xwit.c:363:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XAllocSizeHints"); ^ xwit.c:366:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XGetWMNormalHints"); ^ xwit.c:369:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("missing PBaseSize and/or PResizeInc hint"); ^ xwit.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] rcresize(what, window) ^ xwit.c:380:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:383:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] loadbitmap(window, file, pmp) ^ xwit.c:393:14: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XReadBitmapFile failed"); ^ xwit.c:383:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbitmap(window, file, pmp) ^ xwit.c:394:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:397:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setbitmap(window) ^ xwit.c:408:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XAllocWMHints"); ^ xwit.c:425:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ohints = XGetWMHints(dpy, window)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ xwit.c:425:13: note: place parentheses around the assignment to silence this warning if (ohints = XGetWMHints(dpy, window)) { ^ ( ) xwit.c:425:13: note: use '==' to turn this assignment into an equality comparison if (ohints = XGetWMHints(dpy, window)) { ^ == xwit.c:397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setbitmap(window) ^ xwit.c:434:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:437:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] setwinattr(window) ^ xwit.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xwit.c:456:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwit.c:497:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("rmove failed"); ^ xwit.c:536:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("iconify failed"); ^ xwit.c:569:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("no WM_HINTS"); ^ xwit.c:579:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("no WM_HINTS"); ^ xwit.c:586:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("no current icon position"); ^ xwit.c:462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doit(window) ^ xwit.c:125:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void doit(); ^ xwit.c:617:25: warning: passing arguments to 'Select_Window' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] window = Select_Window(dpy); ^ xwit.c:623:13: warning: call to undeclared function 'XmuClientWindow'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] window = XmuClientWindow(dpy, window); ^ xwit.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xwit_select_window(dpy, current) ^ xwit.c:638:13: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Invalid ID format: %s", s); ^ xwit.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] getxid(s) ^ xwit.c:640:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ xwit.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] matchopt(key, nargs, argc, argv) ^ xwit.c:716:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int xwit.c:727:26: warning: passing arguments to 'Setup_Display_And_Screen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setup_Display_And_Screen(pargc, argv); ^ xwit.c:750:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ncolumns = atoi(*++argv); ^ xwit.c:757:13: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Giconx = atoi(argv[1]); ^ xwit.c:780:8: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] i = atoi(*++argv); ^ xwit.c:825:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tox = atoi(argv[1]); ^ xwit.c:854:13: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Giconx = atoi(argv[1]); ^ xwit.c:860:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tox = atoi(argv[1]); ^ xwit.c:869:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nrows = atoi(*++argv); ^ xwit.c:873:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warpx = atoi(argv[1]); ^ xwit.c:879:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] towidth = atoi(argv[1]); ^ xwit.c:902:12: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warpx = atoi(argv[1]); ^ xwit.c:925:14: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] s = getenv("WINDOWID"); ^ xwit.c:932:17: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("WINDOWID not set"); ^ xwit.c:919:10: warning: enumeration values 'WID_none', 'WID_num', and 'WID_names' not handled in switch [-Wswitch] switch (Winidmode) { ^~~~~~~~~ xwit.c:919:10: note: add missing switch cases switch (Winidmode) { ^ xwit.c:956:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("no window selected"); ^ xwit.c:716: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) ^ 81 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 -I/opt/pkg/include -c dsimple.c dsimple.c:53:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Out of memory!"); ^ dsimple.c:47:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *Malloc(size) ^ dsimple.c:72:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Out of memory!"); ^ dsimple.c:62:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *Realloc(ptr, size) ^ dsimple.c:95:23: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (++i >= argc) usage (); ^ dsimple.c:82:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *Get_Display_Name(pargc, argv) ^ dsimple.c:127:6: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] usage (); ^ dsimple.c:118:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Display *Open_Display(display_name) ^ dsimple.c:142: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 Setup_Display_And_Screen(argc, argv) ^ dsimple.c:160:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Unable to open font %s!", name); ^ dsimple.c:154:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] XFontStruct *Open_Font(name) ^ dsimple.c:184:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Can't open file %s!", filename); ^ dsimple.c:186:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("file %s: Bad bitmap format.", filename); ^ dsimple.c:188:16: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Out of memory!"); ^ dsimple.c:179:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void _bitmap_error(status, filename) ^ dsimple.c:191:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pixmap ReadBitmapFile(d, filename, width, height, x_hot, y_hot) ^ dsimple.c:213: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 WriteBitmapFile(filename, bitmap, width, height, x_hot, y_hot) ^ dsimple.c:277:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] NXTOPT; ^ dsimple.c:262:39: note: expanded from macro 'NXTOPT' #define NXTOPT if (++argv, --argc==0) usage() ^ dsimple.c:278:24: warning: passing arguments to 'Window_With_Name' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] w = Window_With_Name(dpy, RootWindow(dpy, screen), ^ dsimple.c:281:17: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("No window with name %s exists!",OPTION); ^ dsimple.c:285:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] NXTOPT; ^ dsimple.c:262:39: note: expanded from macro 'NXTOPT' #define NXTOPT if (++argv, --argc==0) usage() ^ dsimple.c:291:17: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Invalid window id format: %s.", OPTION); ^ dsimple.c:249:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window Select_Window_Args(rargc, argv) ^ dsimple.c:342:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("Bad color format '%s'.", name); ^ dsimple.c:345:15: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Fatal_Error("XAllocColor failed!"); ^ dsimple.c:321:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unsigned long Resolve_Color(w, name) ^ dsimple.c:17:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] unsigned long Resolve_Color(); ^ dsimple.c:357:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Pixmap Bitmap_To_Pixmap(dpy, d, gc, bitmap, width, height) ^ dsimple.c:18:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] Pixmap Bitmap_To_Pixmap(); ^ dsimple.c:385:3: warning: call to undeclared function 'outl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] outl("blip!"); ^ dsimple.c:409:41: warning: passing arguments to 'Fatal_Error' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (status != GrabSuccess) Fatal_Error("Can't grab the mouse."); ^ dsimple.c:393:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window Select_Window(dpy) ^ dsimple.c:19:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] Window Select_Window(); ^ dsimple.c:444:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window Window_With_Name(dpy, top, name) ^ dsimple.c:22:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] Window Window_With_Name(); ^ dsimple.c:477:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] outl(msg, arg0,arg1,arg2,arg3,arg4,arg5,arg6) ^ int dsimple.c:477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dsimple.c:485:1: warning: non-void function does not return a value [-Wreturn-type] } ^ dsimple.c:493: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 Fatal_Error(msg, arg0,arg1,arg2,arg3,arg4,arg5,arg6) ^ dsimple.c:23:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void Fatal_Error(); ^ 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 -I/opt/pkg/include -c ClientWin.c ClientWin.c:43:22: warning: passing arguments to 'TryChildren' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inf = TryChildren(dpy, win, WM_STATE); ^ ClientWin.c:25:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window XmuClientWindow (dpy, win) ^ ClientWin.c:50:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Window TryChildren (dpy, win, WM_STATE) ^ ClientWin.c:21:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static Window TryChildren(); ^ 4 warnings generated. rm -f xwit._man if test -z "" ; then cd `dirname xwit` && ln -s `basename xwit.man` `basename xwit._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" < xwit.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/\@\@$/\/' >xwit._man; fi rm -f xwit clang -o xwit -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xwit.o dsimple.o ClientWin.o -lXext -lX11