WARNING: [license.mk] Every package should define a LICENSE. ===> Building for asnap-1.0nb2 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 asnap.c asnap.c:52:48: warning: parameter 'init_cursor' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] Window create_event_window(a_display,a_window, init_cursor) ^ asnap.c:52: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 create_event_window(a_display,a_window, init_cursor) ^ asnap.c:86: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 draw_box(a_display, a_window, a_gc, x1, y1, x2, y2) ^ asnap.c:129:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get_region(a_display, a_window, x, y, width, height) ^ int asnap.c:176:6: 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); ^ asnap.c:176:6: note: include the header or explicitly provide a declaration for 'exit' asnap.c:188:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] XRefreshKeyboardMapping(&event); ^~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here ); ^ asnap.c:220:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] XRefreshKeyboardMapping(&event); ^~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here ); ^ asnap.c:281:25: warning: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *width = (unsigned int)abs(last_x - init_x); ^ asnap.c:281:25: note: include the header or explicitly provide a declaration for 'abs' asnap.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_region(a_display, a_window, x, y, width, height) ^ asnap.c:290:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ asnap.c:332:37: warning: incompatible pointer types passing 'int *' to parameter of type 'Window *' (aka 'unsigned long *') [-Wincompatible-pointer-types] XGetGeometry (a_display, a_window, &junk_root, &junk_left, &junk_top, ^~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2633:31: note: passing argument to parameter here Window* /* root_return */, ^ asnap.c:333:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &junk_width, &junk_height, &junk_border_width, depth); ^~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2636:37: note: passing argument to parameter here unsigned int* /* width_return */, ^ asnap.c:333:22: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &junk_width, &junk_height, &junk_border_width, depth); ^~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2637:38: note: passing argument to parameter here unsigned int* /* height_return */, ^ asnap.c:333:36: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &junk_width, &junk_height, &junk_border_width, depth); ^~~~~~~~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2638:44: note: passing argument to parameter here unsigned int* /* border_width_return */, ^ asnap.c:318:6: warning: unused variable 'return_flag' [-Wunused-variable] int return_flag; ^ asnap.c:304: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 get_pixmap_region(a_display, a_screen, a_window, a_gc, x, y, ^ asnap.c:352: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 my_X_error_handler(display, myerr) ^ asnap.c:381:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] usage() ^ int asnap.c:406:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] process_args(argc, argv) ^ int asnap.c:426:19: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] border_width = atoi(argv[++i]); ^ asnap.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] process_args(argc, argv) ^ asnap.c:491:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:511:32: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!(*colors = (XColor *) malloc (sizeof(XColor) * ncolors))) ^ asnap.c:511:32: note: include the header or explicitly provide a declaration for 'malloc' asnap.c:496: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 Get_XColors(dpy, win_info, colors) ^ asnap.c:526: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 Image_Size(image, format) ^ asnap.c:536:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] _swapshort (bp, n) ^ int asnap.c:536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asnap.c:549:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:551:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] _swaplong (bp, n) ^ int asnap.c:551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asnap.c:570:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:572:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] write_atk_bytes (file, curbyte, curcount) ^ int asnap.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asnap.c:619:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:622:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] process_atk_byte (pcurcount, pcurbyte, file, newbyte, eolflag) ^ int asnap.c:629:9: warning: unused variable 'curcount' [-Wunused-variable] int curcount = *pcurcount; ^ asnap.c:630:19: warning: unused variable 'curbyte' [-Wunused-variable] unsigned char curbyte = *pcurbyte; ^ asnap.c:622:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] process_atk_byte (pcurcount, pcurbyte, file, newbyte, eolflag) ^ asnap.c:655:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:657:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] save_as_atk_file (display, screen, win_info, pixmap, width, height, depth) ^ int asnap.c:690:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (crunch_to_bw = (image->depth > 1)) ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ asnap.c:690:22: note: place parentheses around the assignment to silence this warning if (crunch_to_bw = (image->depth > 1)) ^ ( ) asnap.c:690:22: note: use '==' to turn this assignment into an equality comparison if (crunch_to_bw = (image->depth > 1)) ^ == asnap.c:703:41: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] fprintf(output, "%ld %ld %ld %ld ", RASTERVERSION, ~~~ ^~~~~~~~~~~~~ %d asnap.c:700:23: note: expanded from macro 'RASTERVERSION' #define RASTERVERSION 2 ^ asnap.c:704:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 0, DEFAULTSCALE, DEFAULTSCALE); ^ asnap.c:704:10: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 0, DEFAULTSCALE, DEFAULTSCALE); ^~~~~~~~~~~~ asnap.c:699:22: note: expanded from macro 'DEFAULTSCALE' #define DEFAULTSCALE (1<<16) ^~~~~~~ asnap.c:704:24: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 0, DEFAULTSCALE, DEFAULTSCALE); ^~~~~~~~~~~~ asnap.c:699:22: note: expanded from macro 'DEFAULTSCALE' #define DEFAULTSCALE (1<<16) ^~~~~~~ asnap.c:706:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 0, 0, width, height); /* subraster */ ^ asnap.c:706:10: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 0, 0, width, height); /* subraster */ ^ asnap.c:706:13: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 0, 0, width, height); /* subraster */ ^~~~~ asnap.c:706:20: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] 0, 0, width, height); /* subraster */ ^~~~~~ asnap.c:707:43: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] fprintf(output, "bits %ld %ld %ld\n", 1, width, height); ~~~ ^ %d asnap.c:707:46: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] fprintf(output, "bits %ld %ld %ld\n", 1, width, height); ~~~ ^~~~~ %u asnap.c:707:53: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] fprintf(output, "bits %ld %ld %ld\n", 1, width, height); ~~~ ^~~~~~ %u asnap.c:657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_as_atk_file (display, screen, win_info, pixmap, width, height, depth) ^ asnap.c:740:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ asnap.c:744:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] save_as_xwd_file (display, screen, win_info, pixmap, width, height, depth) ^ int asnap.c:854:21: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if(ncolors > 0) free(colors); ^ asnap.c:854:21: note: include the header or explicitly provide a declaration for 'free' asnap.c:754:9: warning: unused variable 'win_name_size' [-Wunused-variable] int win_name_size; ^ asnap.c:757:11: warning: unused variable 'win_name' [-Wunused-variable] char *win_name; ^ asnap.c:759:9: warning: unused variable 'absx' [-Wunused-variable] int absx, absy, x, y; ^ asnap.c:759:15: warning: unused variable 'absy' [-Wunused-variable] int absx, absy, x, y; ^ asnap.c:759:21: warning: unused variable 'x' [-Wunused-variable] int absx, absy, x, y; ^ asnap.c:759:24: warning: unused variable 'y' [-Wunused-variable] int absx, absy, x, y; ^ asnap.c:760:9: warning: unused variable 'dwidth' [-Wunused-variable] int dwidth, dheight; ^ asnap.c:760:17: warning: unused variable 'dheight' [-Wunused-variable] int dwidth, dheight; ^ asnap.c:761:9: warning: unused variable 'bw' [-Wunused-variable] int bw; ^ asnap.c:744:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] save_as_xwd_file (display, screen, win_info, pixmap, width, height, depth) ^ asnap.c:860:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ asnap.c:862:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] save_in_cut_buffer (display, screen, pixmap, width, height, depth) ^ int asnap.c:862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asnap.c:868:1: warning: non-void function does not return a value [-Wreturn-type] } ^ asnap.c:870:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] exitXsnap(the_display, snapshot, snap_pixmap, copy_gc) ^ int asnap.c:870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asnap.c:884:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int asnap.c:957:26: warning: too few arguments in call to 'get_pixmap_region' ®_height, FALSE); ^ asnap.c:1002:20: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &y_return, &width_return, ^~~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here unsigned int* /* width_return */, ^ asnap.c:1003:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &height_return); ^~~~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here ); ^ asnap.c:1065:20: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &y_return, &width_return, ^~~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2871:37: note: passing argument to parameter here unsigned int* /* width_return */, ^ asnap.c:1066:9: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &height_return); ^~~~~~~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:2873:1: note: passing argument to parameter here ); ^ asnap.c:1134:28: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'Window' (aka 'unsigned long') [-Wint-conversion] exitXsnap (the_display, NULL, snap_pixmap, copy_gc); ^~~~ /System/Volumes/Data/Applications/Xcode-15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL' # define NULL ((void*)0) ^~~~~~~~~~ asnap.c:1145:28: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XMappingEvent *' [-Wincompatible-pointer-types] XRefreshKeyboardMapping(&an_event); ^~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xlib.h:3079:1: note: passing argument to parameter here ); ^ asnap.c:1148:34: warning: incompatible pointer types passing 'XEvent *' (aka 'union _XEvent *') to parameter of type 'XKeyEvent *' [-Wincompatible-pointer-types] string_length = XLookupString(&an_event, buffer, ^~~~~~~~~ /Users/pbulk/build/x11/asnap/work/.buildlink/include/X11/Xutil.h:535:35: note: passing argument to parameter here XKeyEvent* /* event_struct */, ^ asnap.c:908:6: warning: unused variable 'icon_x' [-Wunused-variable] int icon_x, icon_y; ^ asnap.c:908:14: warning: unused variable 'icon_y' [-Wunused-variable] int icon_x, icon_y; ^ asnap.c:909:6: warning: unused variable 'snap_x' [-Wunused-variable] int snap_x, snap_y; ^ asnap.c:909:14: warning: unused variable 'snap_y' [-Wunused-variable] int snap_x, snap_y; ^ asnap.c:910:15: warning: unused variable 'snap_width' [-Wunused-variable] unsigned int snap_width, snap_height; ^ asnap.c:910:27: warning: unused variable 'snap_height' [-Wunused-variable] unsigned int snap_width, snap_height; ^ asnap.c:884:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc, argv) ^ 88 warnings generated. rm -f asnap._man if test -z "" ; then cd `dirname asnap` && ln -s `basename asnap.man` `basename asnap._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" < asnap.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/\@\@$/\/' >asnap._man; fi rm -f asnap clang -o asnap -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib asnap.o -lXext -lX11