WARNING: [license.mk] Every package should define a LICENSE. ===> Building for w9wm-0.4.2nb1 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c 9wm.c 9wm.c:156:14: warning: passing arguments to 'fatal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fatal("can't open display"); ^ 9wm.c:176:21: warning: passing arguments to 'sendcmessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcmessage(root, exit_9wm, 0L); ^ 9wm.c:181:21: warning: passing arguments to 'sendcmessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcmessage(root, restart_9wm, 0L); ^ 9wm.c:250:15: warning: passing arguments to 'initb2menu' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initb2menu(numvirtuals); ^ 9wm.c:263:17: warning: passing arguments to 'getevent' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getevent(&ev); ^ 9wm.c:275:28: warning: passing arguments to 'shapenotify' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shapenotify((XShapeEvent *)&ev); ^ 9wm.c:306:19: warning: passing arguments to 'button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button(&ev.xbutton); ^ 9wm.c:315:19: warning: passing arguments to 'mapreq' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mapreq(&ev.xmaprequest); ^ 9wm.c:318:16: warning: passing arguments to 'configurereq' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] configurereq(&ev.xconfigurerequest); ^ 9wm.c:321:25: warning: passing arguments to 'circulatereq' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] circulatereq(&ev.xcirculaterequest); ^ 9wm.c:324:18: warning: passing arguments to 'unmap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unmap(&ev.xunmap); ^ 9wm.c:327:22: warning: passing arguments to 'newwindow' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newwindow(&ev.xcreatewindow); ^ 9wm.c:330:20: warning: passing arguments to 'destroy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy(ev.xdestroywindow.window); ^ 9wm.c:333:23: warning: passing arguments to 'clientmesg' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clientmesg(&ev.xclient); ^ 9wm.c:336:17: warning: passing arguments to 'cmap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmap(&ev.xcolormap); ^ 9wm.c:339:21: warning: passing arguments to 'property' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] property(&ev.xproperty); ^ 9wm.c:351:18: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enter(&ev.xcrossing); ^ 9wm.c:354:21: warning: passing arguments to 'reparent' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reparent(&ev.xreparent); ^ 9wm.c:75: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) ^ 9wm.c:394:13: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(tmp); ^ 9wm.c:417:8: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ 9wm.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcmessage(w, a, x) ^ In file included from 9wm.c:12: ./fns.h:3:9: 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 sendcmessage(); ^ 9wm.c:472:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendconfig(c) ^ In file included from 9wm.c:12: ./fns.h:5:9: 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 sendconfig(); ^ 9wm.c:503:22: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(wins[i], 1); ^ 9wm.c:511:23: warning: passing arguments to 'manage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] manage(c, 1); ^ 9wm.c:526:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:528:18: warning: passing arguments to 'gravitate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, 1); ^ 9wm.c:546:18: warning: passing arguments to 'gravitate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, 0); ^ 9wm.c:518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] configurereq(e) ^ In file included from 9wm.c:12: ./fns.h:7:9: 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 configurereq(); ^ 9wm.c:585:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:594:24: warning: passing arguments to 'manage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!manage(c, 0)) ^ 9wm.c:604:18: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, NormalState); ^ 9wm.c:606:23: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ 9wm.c:609:16: warning: passing arguments to 'unhidec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unhidec(c, 1); ^ 9wm.c:579:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mapreq(e) ^ In file included from 9wm.c:12: ./fns.h:8:9: 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 mapreq(); ^ 9wm.c:621:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:626:24: warning: passing arguments to 'unhidec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unhidec(c, 0); ^ 9wm.c:627:25: warning: passing arguments to 'withdraw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] withdraw(c); ^ 9wm.c:635:25: warning: passing arguments to 'withdraw' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] withdraw(c); ^ 9wm.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] unmap(e) ^ In file included from 9wm.c:12: ./fns.h:10:9: 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 unmap(); ^ 9wm.c:644:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] circulatereq(e) ^ In file included from 9wm.c:12: ./fns.h:9:9: 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 circulatereq(); ^ 9wm.c:659:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 1); ^ 9wm.c:651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newwindow(e) ^ In file included from 9wm.c:12: ./fns.h:11:9: 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 newwindow(); ^ 9wm.c:676:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(w, 0); ^ 9wm.c:680:13: warning: passing arguments to 'rmclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rmclient(c); ^ 9wm.c:670:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] destroy(w) ^ In file included from 9wm.c:12: ./fns.h:12:9: 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 destroy(); ^ 9wm.c:707:22: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:710:21: warning: passing arguments to 'hide' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hide(c); ^ 9wm.c:689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clientmesg(e) ^ In file included from 9wm.c:12: ./fns.h:14:9: 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 clientmesg(); ^ 9wm.c:730:22: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:734:26: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(c); ^ 9wm.c:742:38: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(c); ^ 9wm.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmap(e) ^ In file included from 9wm.c:12: ./fns.h:15:9: 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 cmap(); ^ 9wm.c:759:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:767:30: warning: passing arguments to 'getprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->iconname = getprop(c->window, XA_WM_ICON_NAME); ^ 9wm.c:768:17: warning: passing arguments to 'setlabel' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlabel(c); ^ 9wm.c:769:16: warning: passing arguments to 'renamec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] renamec(c, c->label); ^ 9wm.c:774:26: warning: passing arguments to 'getprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->name = getprop(c->window, XA_WM_NAME); ^ 9wm.c:775:17: warning: passing arguments to 'setlabel' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlabel(c); ^ 9wm.c:776:16: warning: passing arguments to 'renamec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] renamec(c, c->label); ^ 9wm.c:779:17: warning: passing arguments to 'gettrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettrans(c); ^ 9wm.c:783:27: warning: passing arguments to 'getiprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->hold = getiprop(c->window, _9wm_hold_mode); ^ 9wm.c:785:24: warning: passing arguments to 'draw_border' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_border(c, 1); ^ 9wm.c:788:17: warning: passing arguments to 'getcmaps' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getcmaps(c); ^ 9wm.c:790:22: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(c); ^ 9wm.c:753:9: warning: variable 'delete' set but not used [-Wunused-but-set-variable] int delete; ^ 9wm.c:749:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] property(e) ^ In file included from 9wm.c:12: ./fns.h:16:9: 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 property(); ^ 9wm.c:804:22: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 1); ^ 9wm.c:815:22: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:817:21: warning: passing arguments to 'rmclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rmclient(c); ^ 9wm.c:795:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reparent(e) ^ In file included from 9wm.c:12: ./fns.h:19:9: 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 reparent(); ^ 9wm.c:828:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:832:13: warning: passing arguments to 'setshape' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setshape(c); ^ 9wm.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] shapenotify(e) ^ In file included from 9wm.c:12: ./fns.h:17:9: 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 shapenotify(); ^ 9wm.c:845:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ 9wm.c:848:15: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ 9wm.c:837:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enter(e) ^ In file included from 9wm.c:12: ./fns.h:18:9: 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 enter(); ^ 9wm.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getevent(e) ^ 9wm.c:63:32: 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 usage(), sighandler(), getevent(); ^ 93 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c manage.c manage.c:29:23: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] c->is9term = (strcmp(c->class, "9term") == 0); ^ manage.c:29:23: note: include the header or explicitly provide a declaration for 'strcmp' manage.c:36:26: warning: passing arguments to 'getprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->iconname = getprop(c->window, XA_WM_ICON_NAME); ^ manage.c:37:22: warning: passing arguments to 'getprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->name = getprop(c->window, XA_WM_NAME); ^ manage.c:38:13: warning: passing arguments to 'setlabel' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlabel(c); ^ manage.c:44:13: warning: passing arguments to 'getcmaps' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getcmaps(c); ^ manage.c:45:13: warning: passing arguments to 'getproto' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getproto(c); ^ manage.c:46:13: warning: passing arguments to 'gettrans' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettrans(c); ^ manage.c:48:27: warning: passing arguments to 'getiprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c->hold = getiprop(c->window, _9wm_hold_mode); ^ manage.c:52:18: warning: passing arguments to 'getstate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!getstate(c->window, &state)) ^ manage.c:93:18: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(0); ^ manage.c:94:29: warning: passing arguments to 'drag' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!(fixsize ? drag(c) : sweep(c)) && c->is9term) { ^ manage.c:94:40: warning: passing arguments to 'sweep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!(fixsize ? drag(c) : sweep(c)) && c->is9term) { ^ manage.c:96:21: warning: passing arguments to 'rmclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rmclient(c); ^ manage.c:97:22: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(current); ^ manage.c:102:18: warning: passing arguments to 'gravitate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, 0); ^ manage.c:119:17: warning: passing arguments to 'setshape' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setshape(c); ^ manage.c:125:13: warning: passing arguments to 'hide' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hide(c); ^ manage.c:130:19: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ manage.c:132:19: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ manage.c:134:22: warning: passing arguments to 'setactive' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setactive(c, 0); ^ manage.c:135:18: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, NormalState); ^ manage.c:138:18: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(current); ^ manage.c:13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] manage(c, mapped) ^ In file included from manage.c:10: ./fns.h:25:9: 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] int manage(); ^ manage.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettrans(c) ^ In file included from manage.c:10: ./fns.h:40:9: 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 gettrans(); ^ manage.c:161:14: warning: passing arguments to 'gravitate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, 1); ^ manage.c:163:14: warning: passing arguments to 'gravitate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, 0); ^ manage.c:165:14: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, WithdrawnState); ^ manage.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] withdraw(c) ^ In file included from manage.c:10: ./fns.h:27:9: 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 withdraw(); ^ manage.c:174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gravitate(c, invert) ^ In file included from manage.c:10: ./fns.h:28:9: 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 gravitate(); ^ manage.c:251:14: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(0); ^ manage.c:256:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] installcmap(cmap) ^ manage.c:281:49: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if (c->trans != None && (cc = getclient(c->trans, 0)) != 0 && cc->ncmapwins != 0) ^ manage.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(c) ^ In file included from manage.c:10: ./fns.h:30:9: 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 cmapfocus(); ^ manage.c:300:17: warning: passing arguments to '_getprop' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] n = _getprop(c->window, wm_colormaps, XA_WINDOW, 100L, (unsigned char **)&cw); ^ manage.c:288:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getcmaps(c) ^ In file included from manage.c:10: ./fns.h:31:9: 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 getcmaps(); ^ manage.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlabel(c) ^ In file included from manage.c:10: ./fns.h:38:9: 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 setlabel(); ^ manage.c:341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setshape(c) ^ In file included from manage.c:10: ./fns.h:26:9: 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 setshape(); ^ manage.c:357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _getprop(w, a, type, len, p) ^ In file included from manage.c:10: ./fns.h:32:9: 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] int _getprop(); ^ manage.c:379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getprop(w, a) ^ In file included from manage.c:10: ./fns.h:33:10: 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] char *getprop(); ^ manage.c:398:34: warning: incompatible pointer types passing 'char ***' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types] if (_getprop(w, a, type, 1L, &p) <= 0) ^~ manage.c:402:12: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] return (int)x; ^~~~~~ manage.c:391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get1prop(w, a, type) ^ manage.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] getwprop(w, a) ^ In file included from manage.c:10: ./fns.h:34:9: 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 getwprop(); ^ manage.c:414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getiprop(w, a) ^ In file included from manage.c:10: ./fns.h:35:9: 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] int getiprop(); ^ manage.c:422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, state) ^ In file included from manage.c:10: ./fns.h:37:9: 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 setstate9(); ^ manage.c:443:45: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types] if (_getprop(w, wm_state, wm_state, 2L, (char**)&p) <= 0) ^~~~~~~~~~ manage.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] getstate(w, state) ^ In file included from manage.c:10: ./fns.h:36:9: 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] int getstate(); ^ manage.c:462:54: warning: incompatible pointer types passing 'char **' to parameter of type 'unsigned char **' [-Wincompatible-pointer-types] if ((n = _getprop(w, wm_protocols, XA_ATOM, 20L, (char**)&p)) <= 0) ^~~~~~~~~~ manage.c:452:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getproto(c) ^ In file included from manage.c:10: ./fns.h:39:9: 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 getproto(); ^ 64 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c menu.c menu.c:80:18: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(e->window, 0); ^ menu.c:92:19: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:100:22: warning: passing arguments to 'menuhit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((n = menuhit(e, &progs)) != -1) ^ menu.c:106:7: 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(1); ^ menu.c:106:7: note: include the header or explicitly provide a declaration for 'exit' menu.c:117:19: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:122:24: warning: passing arguments to 'menuhit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] menuhit(e, &egg); ^ menu.c:124:17: warning: passing arguments to 'button2' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button2(e); ^ menu.c:132:19: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:136:20: warning: passing arguments to 'button3' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button3(e); ^ menu.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button(e) ^ In file included from menu.c:11: ./fns.h:43:9: 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 button(); ^ menu.c:147:14: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(0); ^ menu.c:148:21: warning: passing arguments to 'menuhit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if ((n = menuhit(e, &b2menu)) == -1) ^ menu.c:150:14: warning: passing arguments to 'switch_to' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch_to(n); ^ menu.c:152:18: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(current); ^ menu.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button2(e) ^ In file included from menu.c:11: ./fns.h:44:9: 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 button2(); ^ menu.c:156:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initb2menu(n) ^ In file included from menu.c:11: ./fns.h:56: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 initb2menu(); ^ menu.c:168:14: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(0); ^ menu.c:169:24: warning: passing arguments to 'menuhit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch (n = menuhit(e, &b3menu)) { ^ menu.c:174:26: warning: passing arguments to 'selectwin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reshape(selectwin(1, 0)); ^ menu.c:174:16: warning: passing arguments to 'reshape' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reshape(selectwin(1, 0)); ^ menu.c:177:23: warning: passing arguments to 'selectwin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move(selectwin(0, 0)); ^ menu.c:177:13: warning: passing arguments to 'move' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move(selectwin(0, 0)); ^ menu.c:181:22: warning: passing arguments to 'selectwin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = selectwin(1, &shift); ^ menu.c:182:15: warning: passing arguments to 'delete' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delete(c, shift); ^ menu.c:185:23: warning: passing arguments to 'selectwin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hide(selectwin(1, 0)); ^ menu.c:185:13: warning: passing arguments to 'hide' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hide(selectwin(1, 0)); ^ menu.c:188:15: warning: passing arguments to 'unhide' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unhide(n - B3FIXED, 1); ^ menu.c:194:18: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(current); ^ menu.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button3(e) ^ In file included from menu.c:11: ./fns.h:45:9: 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 button3(); ^ menu.c:208:14: warning: passing arguments to 'switch_to_c' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch_to_c(n,clients); ^ menu.c:201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch_to(n) ^ In file included from menu.c:11: ./fns.h:54: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 switch_to(); ^ menu.c:228:16: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, IconicState); ^ menu.c:244:13: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, NormalState); ^ menu.c:246:12: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch_to_c(n,c) ^ In file included from menu.c:11: ./fns.h:55: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 switch_to_c(); ^ menu.c:288:14: warning: passing arguments to 'sweep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (sweep(c) == 0) ^ menu.c:290:11: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:295:19: warning: passing arguments to 'sendconfig' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendconfig(c); ^ menu.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reshape(c) ^ In file included from menu.c:11: ./fns.h:47:9: 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 reshape(); ^ menu.c:306:13: warning: passing arguments to 'drag' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (drag(c) == 0) ^ menu.c:308:11: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.c:311:15: warning: passing arguments to 'sendconfig' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendconfig(c); ^ menu.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] move(c) ^ In file included from menu.c:11: ./fns.h:48:9: 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 move(); ^ menu.c:322:21: warning: passing arguments to 'sendcmessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcmessage(c->window, wm_protocols, wm_delete); ^ menu.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] delete(c, shift) ^ In file included from menu.c:11: ./fns.h:49:9: 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 delete(); ^ menu.c:339:14: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, IconicState); ^ menu.c:328:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hide(c) ^ In file included from menu.c:11: ./fns.h:50:9: 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 hide(); ^ menu.c:370:18: warning: passing arguments to 'setstate9' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setstate9(c, NormalState); ^ menu.c:371:15: warning: passing arguments to 'active' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c); ^ menu.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] unhide(n, map) ^ In file included from menu.c:11: ./fns.h:51:9: 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 unhide(); ^ menu.c:384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unhidec(c, map) ^ In file included from menu.c:11: ./fns.h:52:9: 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 unhidec(); ^ menu.c:400:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] renamec(c, name) ^ In file included from menu.c:11: ./fns.h:53:9: 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 renamec(); ^ 65 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c client.c client.c:37:25: warning: passing arguments to 'sendcmessage' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcmessage(c->window, wm_protocols, wm_take_focus); ^ client.c:38:18: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(c); ^ client.c:43:16: warning: passing arguments to 'draw_border' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_border(c, on); ^ client.c:16:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setactive(c, on) ^ In file included from client.c:10: ./fns.h:59:9: 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 setactive(); ^ client.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_border(c, active) ^ In file included from client.c:10: ./fns.h:60:9: 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 draw_border(); ^ client.c:88:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] active(c) ^ In file included from client.c:10: ./fns.h:61:9: 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 active(); ^ client.c:141:14: warning: passing arguments to 'cmapfocus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmapfocus(0); ^ client.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getclient(w, create) ^ In file included from client.c:10: ./fns.h:63:10: 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] Client *getclient(); ^ client.c:199:16: warning: passing arguments to 'unhidec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unhidec(c, 0); ^ client.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rmclient(c) ^ In file included from client.c:10: ./fns.h:64:9: 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 rmclient(); ^ 15 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c grab.c grab.c:11:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nobuttons(e) /* Einstuerzende */ ^ grab.c:21:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] grab(w, mask, curs, t) ^ grab.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungrab(e) ^ grab.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_text(been_here, wide, high, n, cur, m) ^ In file included from grab.c:8: ./fns.h:70:9: 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 draw_text(); ^ grab.c:138:17: warning: passing arguments to 'setmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmouse(e->x, e->y); ^ grab.c:86:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int menuhit(e, m) ^ In file included from grab.c:8: ./fns.h:69:9: 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] int menuhit(); ^ grab.c:217:18: warning: passing arguments to 'graberror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] graberror("selectwin", status); /* */ ^ grab.c:232:30: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] c = getclient(w, 0); ^ grab.c:246:29: warning: passing arguments to 'getclient' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return getclient(w, 0); ^ grab.c:205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] selectwin(release, shift) ^ In file included from grab.c:8: ./fns.h:71:10: 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] Client *selectwin(); ^ grab.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] sweepcalc(c, x, y) ^ grab.c:299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dragcalc(c, x, y) ^ grab.c:309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drawbound(c) ^ grab.c:355:15: 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] recalc(c, e0->x, e0->y); ^ grab.c:358:17: warning: passing arguments to 'getmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getmouse(&cx, &cy); ^ grab.c:365:21: warning: passing arguments to 'getmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getmouse(&rx, &ry); ^ grab.c:369: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] recalc(c, rx, ry); ^ grab.c:386: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] recalc(c, ev.xbutton.x, ev.xbutton.y); ^ grab.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sweepdrag(c, e0, recalc) ^ grab.c:422:18: warning: passing arguments to 'graberror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] graberror("sweep", status); /* */ ^ grab.c:433:17: warning: passing arguments to 'setmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmouse(e->x+c->min_dx, e->y+c->min_dy); ^ grab.c:413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sweep(c) ^ In file included from grab.c:8: ./fns.h:72:9: 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] int sweep(); ^ grab.c:445:17: warning: passing arguments to 'setmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmouse(c->x-BORDER, c->y-BORDER); ^ grab.c:447:17: warning: passing arguments to 'getmouse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getmouse(&c->x, &c->y); /* start at current mouse pos */ ^ grab.c:450:18: warning: passing arguments to 'graberror' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] graberror("drag", status); /* */ ^ grab.c:439:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drag(c) ^ In file included from grab.c:8: ./fns.h:73:9: 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] int drag(); ^ grab.c:457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getmouse(x, y) ^ In file included from grab.c:8: ./fns.h:74:9: 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 getmouse(); ^ grab.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] setmouse(x, y) ^ In file included from grab.c:8: ./fns.h:75:9: 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 setmouse(); ^ 35 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c cursor.c cursor.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] getcursor(c) ^ 1 warning generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DSHAPE -I/opt/pkg/include -c error.c error.c:19:5: 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(1); ^ error.c:19:5: note: include the header or explicitly provide a declaration for 'exit' error.c:13:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fatal(s) ^ In file included from error.c:8: ./fns.h:79:9: 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.c:23:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] handler(d, e) ^ In file included from error.c:8: ./fns.h:78:9: 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] int handler(); ^ error.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] graberror(f, err) ^ In file included from error.c:8: ./fns.h:80:9: 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 graberror(); ^ error.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] showhints(c, size) ^ In file included from error.c:8: ./fns.h:81:9: 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 showhints(); ^ 9 warnings generated. rm -f w9wm._man if test -z "" ; then cd `dirname w9wm` && ln -s `basename w9wm.man` `basename w9wm._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" < w9wm.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/\@\@$/\/' >w9wm._man; fi rm -f w9wm clang -o w9wm -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib 9wm.o manage.o menu.o client.o grab.o cursor.o error.o -lXext -lX11