WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xdu-3.0nb8 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 xdu.c xdu.c:38:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] extern nodeinfo(), helpinfo(); ~~~~~~ ^ int xdu.c:38:20: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] extern nodeinfo(), helpinfo(); ~~~~~~ ^ int xdu.c:42:7: 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] char *strdup(); ^ xdu.c:99:22: warning: call to undeclared library function 'calloc' with type 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] np = (struct node *)calloc(1,sizeof(struct node)); ^ xdu.c:99:22: note: include the header or explicitly provide a declaration for 'calloc' xdu.c:102:3: 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); ^ xdu.c:102:3: note: include the header or explicitly provide a declaration for 'exit' xdu.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makenode(name,size) ^ xdu.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findnode(treep, x, y) ^ xdu.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] numchildren(nodep) ^ xdu.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fix_tree(top) ^ xdu.c:199:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc,argv) ^ int xdu.c:206:8: warning: passing arguments to 'xsetup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xsetup(&argc,argv); ^ xdu.c:208:7: warning: call to undeclared function 'isatty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (isatty(fileno(stdin))) { ^ xdu.c:209:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, usage); ^~~~~ xdu.c:209:20: note: treat the string as an argument to avoid this fprintf(stderr, usage); ^ "%s", xdu.c:212:14: warning: passing arguments to 'parse_file' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_file("-"); ^ xdu.c:215:13: warning: passing arguments to 'parse_file' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_file(argv[1]); ^ xdu.c:217:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, usage); ^~~~~ xdu.c:217:19: note: treat the string as an argument to avoid this fprintf(stderr, usage); ^ "%s", xdu.c:224:11: warning: passing arguments to 'sorttree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sorttree(&top, order); ^ xdu.c:199: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) ^ xdu.c:254:15: warning: call to undeclared library function 'strtol' with type 'long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] size = (int)strtol( buf, &name, 10 ); ^ xdu.c:254:15: note: include the header or explicitly provide a declaration for 'strtol' xdu.c:255:11: warning: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ( isspace(*name) ) name++; ^ xdu.c:255:11: note: include the header or explicitly provide a declaration for 'isspace' xdu.c:257:14: warning: passing arguments to 'parse_entry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_entry(name,size); ^ xdu.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_file(filename) ^ xdu.c:44: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 parse_file(); ^ xdu.c:289:9: warning: passing arguments to 'addtree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addtree(&top,path,size); ^ xdu.c:264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parse_entry(name,size) ^ xdu.c:45: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 parse_entry(); ^ xdu.c:300:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compare(n1,n2,order) ^ xdu.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] insertchild(nodep,childp,order) ^ xdu.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addtree(top, path, size) ^ xdu.c:43: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 addtree(); ^ xdu.c:435:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%s %d\n", np->name, np->size); ~~ ^~~~~~~~ %ld xdu.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dumptree(np,level) ^ xdu.c:46:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void dumptree(); ^ xdu.c:442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sorttree(np, order) ^ xdu.c:48: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 sorttree(); ^ xdu.c:481:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] drawnode(nodep, rect) ^ int xdu.c:503:2: warning: call to undeclared function 'drawchildren'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] drawchildren(nodep, subrect); ^ xdu.c:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] drawnode(nodep, rect) ^ xdu.c:504:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:510:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] drawchildren(nodep, rect) ^ int xdu.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xdu.c:562:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clearrects(nodep) ^ xdu.c:47: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 clearrects(); ^ xdu.c:588:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] pwd() ^ int xdu.c:614:35: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%s %d (%.2f%%)\n", path, topp->size, ~~ ^~~~~~~~~~ %ld xdu.c:616:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] press(x,y) ^ xdu.c:37:12: 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] extern int press(), reset(), repaint(), setorder(), reorder(); ^ xdu.c:639:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:648:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.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] repaint(width,height) ^ xdu.c:37:30: 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] extern int press(), reset(), repaint(), setorder(), reorder(); ^ xdu.c:667:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.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] setorder(op) ^ xdu.c:37:41: 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] extern int press(), reset(), repaint(), setorder(), reorder(); ^ xdu.c:709:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reorder(op) ^ xdu.c:37:53: 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] extern int press(), reset(), repaint(), setorder(), reorder(); ^ xdu.c:718:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:730:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%-8d %s\n", np->size, np->name); ~~~~ ^~~~~~~~ %-8ld xdu.c:732:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xdu.c:749:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 63 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 xwin.c xwin.c:158: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 a_quit(w, event, params, num_params) ^ xwin.c:107: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 a_quit(); ^ xwin.c:174:7: warning: passing arguments to 'press' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] press(event->xbutton.x, event->xbutton.y); ^ xwin.c:168: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 a_goto(w, event, params, num_params) ^ xwin.c:105: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 a_goto(); ^ xwin.c:177: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 a_reset(w, event, params, num_params) ^ xwin.c:106: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 a_reset(); ^ xwin.c:195:10: warning: passing arguments to 'reorder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reorder(*params); ^ xwin.c:186: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 a_reorder(w, event, params, num_params) ^ xwin.c:108: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 a_reorder(); ^ xwin.c:199: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 a_size(w, event, params, num_params) ^ xwin.c:109: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 a_size(); ^ xwin.c:212: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 a_ncol(w, event, params, num_params) ^ xwin.c:110: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 a_ncol(); ^ xwin.c:233: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 a_info(w, event, params, num_params) ^ xwin.c:111: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 a_info(); ^ xwin.c:242: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 a_help(w, event, params, num_params) ^ xwin.c:112: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 a_help(); ^ xwin.c:252: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 a_removehelp(w, event, params, num_params) ^ xwin.c:113: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 a_removehelp(); ^ xwin.c:263: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 c_resize(w, data, event, continue_to_dispatch) ^ xwin.c:273: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 c_repaint(w, data, event, continue_to_dispatch) ^ xwin.c:347:10: warning: passing arguments to 'setorder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setorder(res.order); ^ xwin.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] xsetup(argcp, argv) ^ xwin.c:48:12: 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] extern int xsetup(); ^ xwin.c:349:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwin.c:351:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] xmainloop() ^ int xwin.c:357:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] xclear() ^ int xwin.c:360:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwin.c:362:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] xrepaint() ^ int xwin.c:368:9: warning: passing arguments to 'repaint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] repaint(xwa.width, xwa.height); ^ xwin.c:369:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwin.c:371:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] xrepaint_noclear() ^ int xwin.c:376:9: warning: passing arguments to 'repaint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] repaint(xwa.width, xwa.height); ^ xwin.c:377:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xwin.c:284:15: warning: unused variable 'WorkingCursor' [-Wunused-variable] static Cursor WorkingCursor; ^ xwin.c:290:11: warning: unused variable 'cleargc' [-Wunused-variable] static GC cleargc; ^ 37 warnings generated. rm -f xdu._man if test -z "" ; then cd `dirname xdu` && ln -s `basename xdu.man` `basename xdu._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" < xdu.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/\@\@$/\/' >xdu._man; fi rm -f xdu clang -o xdu -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib xdu.o xwin.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11