=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/games/spider", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for spider-1.1nb3 --- gfx.o --- --- spider.o --- --- gfx.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c gfx.c --- spider.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c spider.c --- gfx.o --- In file included from gfx.c:16: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] --- spider.o --- In file included from spider.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] --- gfx.o --- 34 | #else DEBUG | ^ --- spider.o --- 34 | #else DEBUG | ^ | // --- gfx.o --- | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] --- spider.o --- ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // --- gfx.o --- 63 | #endif DEBUG | ^ | // In file included from gfx.c:17: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] --- spider.o --- In file included from spider.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] --- gfx.o --- 95 | #endif KITLESS | ^ | // --- spider.o --- 95 | #endif KITLESS | ^ | // --- gfx.o --- In file included from gfx.c:87: ./rank.bm:15:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 15 | 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x6c, 0x00, 0x6c, 0x00, 0x6c, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 16 | 0x6c, 0x00, 0xc6, 0x00, 0xfe, 0x00, 0xfe, 0x00, 0xc6, 0x00, 0x83, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17 | 0x83, 0x01, 0x83, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:18:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 18 | 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x80, 0x01, 0xc0, 0x01, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 19 | 0xe0, 0x00, 0x70, 0x00, 0x38, 0x00, 0x1c, 0x00, 0x0e, 0x00, 0x87, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20 | 0xff, 0x01, 0xff, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:21:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 21 | 0xff, 0x01, 0xff, 0x01, 0xc3, 0x01, 0xe0, 0x00, 0x70, 0x00, 0x78, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 22 | 0xfc, 0x00, 0xc8, 0x01, 0x80, 0x01, 0x80, 0x01, 0x82, 0x01, 0xc7, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23 | 0xfe, 0x00, 0x7c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:24:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 24 | 0xe0, 0x00, 0xf0, 0x00, 0xf0, 0x00, 0xd8, 0x00, 0xd8, 0x00, 0xcc, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 25 | 0xcc, 0x00, 0xc6, 0x00, 0xc6, 0x00, 0xff, 0x01, 0xff, 0x01, 0xc0, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26 | 0xe0, 0x01, 0xe0, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:27:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 27 | 0xff, 0x00, 0xff, 0x00, 0x03, 0x00, 0x03, 0x00, 0x7b, 0x00, 0xff, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 28 | 0xc7, 0x01, 0x82, 0x01, 0x80, 0x01, 0x80, 0x01, 0x82, 0x01, 0xc7, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29 | 0xfe, 0x00, 0x7c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:30:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] --- spider.o --- spider.c:30:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 30 | card_init() | ^ | int --- gfx.o --- 30 | 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x00, 0x03, 0x00, 0x7b, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 31 | 0xff, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x83, 0x01, 0x83, 0x01, 0xc7, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | 0xfe, 0x00, 0x7c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } --- spider.o --- spider.c:65:5: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | add_card(tmp, tmp2, LOC_BEFORE, deck); | ^ --- gfx.o --- ./rank.bm:33:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] --- spider.o --- spider.c:75:2: warning: call to undeclared function 'shuffle_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | shuffle_cards(); | ^ --- gfx.o --- 33 | 0xff, 0x01, 0xff, 0x01, 0x83, 0x01, 0xc0, 0x00, 0xc0, 0x00, 0x60, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { --- spider.o --- spider.c:76:1: warning: non-void function does not return a value [-Wreturn-type] 76 | } | ^ --- gfx.o --- 34 | 0x60, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x18, 0x00, 0x18, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 | 0x18, 0x00, 0x18, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:36:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 36 | 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0xc7, 0x01, 0xfe, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 37 | 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x83, 0x01, 0xc7, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 | 0xfe, 0x00, 0x7c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:39:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 39 | 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x83, 0x01, 0x83, 0x01, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { --- spider.o --- spider.c:87:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 87 | compare(a1, a2) | ^ | int --- gfx.o --- 40 | 0xc7, 0x01, 0xfe, 0x01, 0xbc, 0x01, 0x80, 0x01, 0x82, 0x01, 0xc7, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- spider.o --- spider.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- 41 | 0xfe, 0x00, 0x7c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } ./rank.bm:42:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] --- spider.o --- spider.c:96:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 96 | remove_all_cards(cache) --- gfx.o --- 42 | 0xf3, 0x00, 0xfb, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { --- spider.o --- | ^ | int spider.c:105:3: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 105 | remove_card(tmp); | ^ --- gfx.o --- 43 | 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- spider.o --- spider.c:112:4: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | remove_card(tmp); | ^ --- gfx.o --- 44 | 0xfb, 0x01, 0xf3, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } --- spider.o --- spider.c:120:4: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | remove_card(tmp); | ^ --- gfx.o --- ./rank.bm:45:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] --- spider.o --- spider.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | remove_all_cards(cache) | ^ spider.c:126:1: warning: non-void function does not return a value [-Wreturn-type] 126 | } | ^ --- gfx.o --- 45 | 0xe0, 0x01, 0xe0, 0x01, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { 46 | 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc3, 0x00, 0xc3, 0x00, 0xe7, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- spider.o --- spider.c:131:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] --- gfx.o --- 47 | 0x7e, 0x00, 0x3c, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } --- spider.o --- 131 | shuffle_cards() | ^ | int --- gfx.o --- ./rank.bm:48:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 48 | 0x38, 0x00, 0x7c, 0x00, 0xee, 0x00, 0xc6, 0x00, 0xc6, 0x00, 0xc6, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { --- spider.o --- spider.c:149:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | add_card(shuffled_cards[i].card, deck->cards, LOC_START, deck); | ^ spider.c:153:2: warning: call to undeclared function 'make_deck_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- gfx.o --- 49 | 0xc6, 0x00, 0xc6, 0x00, 0xdf, 0x00, 0xff, 0x00, 0xf6, 0x00, 0xee, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | 0xfc, 0x01, 0xb8, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~ | } --- spider.o --- 153 | make_deck_cache(); | ^ --- gfx.o --- ./rank.bm:51:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] --- spider.o --- spider.c:168:2: warning: call to undeclared function 'init_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | init_cache(); | ^ spider.c:169:1: warning: non-void function does not return a value [-Wreturn-type] --- gfx.o --- 51 | 0xef, 0x01, 0xef, 0x01, 0xe6, 0x00, 0x76, 0x00, 0x3e, 0x00, 0x1e, 0x00, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { --- spider.o --- 169 | } | ^ --- gfx.o --- 52 | 0x1e, 0x00, 0x3e, 0x00, 0x36, 0x00, 0x76, 0x00, 0x66, 0x00, 0xe6, 0x00, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53 | 0xef, 0x01, 0xef, 0x01}; | ~~~~~~~~~~~~~~~~~~~~~~ | } --- spider.o --- spider.c:174:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 174 | deal_cards() | ^ | int spider.c:195:3: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 195 | remove_card(tmp[num]); | ^ spider.c:204:4: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | add_card(tmp[j], stack[i]->cards, LOC_END, stack[i]); | ^ spider.c:214:3: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | show_list(stack[i], stack[i]->cards); | ^ spider.c:216:1: warning: non-void function does not return a value [-Wreturn-type] 216 | } | ^ spider.c:231:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | show_message("Can't deal until all spaces are filled"); | ^ spider.c:232:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | spider_bell(dpy, 0); | ^ spider.c:238:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | show_message("No more cards in deck"); | ^ spider.c:239:3: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 239 | spider_bell(dpy, 0); | ^ spider.c:246:3: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 246 | remove_card(tmp); | ^ spider.c:248:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | add_card(tmp, stack[i]->cards, LOC_END, stack[i]); | ^ spider.c:250:4: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 250 | show_list(stack[i], stack[i]->cards); | ^ spider.c:252:4: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 252 | show_card(tmp); | ^ spider.c:265:3: warning: call to undeclared function 'record'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 265 | record (0, 0, 0, True); | ^ spider.c:267:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | show_message(buf); | ^ spider.c:277:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 277 | flip_card(card, state) | ^ | int spider.c:282:2: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 282 | show_card(card); | ^ spider.c:277:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | flip_card(card, state) | ^ spider.c:283:1: warning: non-void function does not return a value [-Wreturn-type] 283 | } | ^ spider.c:290:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 290 | add_card(new, old, location, list) | ^ | int spider.c:304:18: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | old = last_card(list); | ^ spider.c:344:12: warning: passing arguments to 'fix_coords' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | fix_coords(new, list, False); | ^ spider.c:290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | add_card(new, old, location, list) | ^ spider.c:345:1: warning: non-void function does not return a value [-Wreturn-type] 345 | } | ^ spider.c:369:25: warning: passing arguments to 'recompute_list_deltas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | recompute_list_deltas(list); | ^ spider.c:371:5: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 371 | show_list(list, list->cards); | ^ spider.c:359:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | fix_coords(new, list, display) | ^ spider.c:21:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | static void fix_coords(); | ^ spider.c:389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | recompute_list_deltas(list) | ^ In file included from spider.c:18: ./globals.h:74:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 74 | void recompute_list_deltas(); | ^ spider.c:431:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 431 | remove_card(card) | ^ | int spider.c:431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] spider.c:448:1: warning: non-void function does not return a value [-Wreturn-type] 448 | } | ^ spider.c:480:3: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 480 | show_list(card->list, card->list->cards); | ^ spider.c:482:3: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 482 | show_list(card->list, card->prev); | ^ spider.c:490:17: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | tmp = last_card(list); | ^ spider.c:507:4: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | show_card(tmp); | ^ spider.c:516:3: warning: call to undeclared function 'record'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 516 | record(from, dest, count, exposed); | ^ spider.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | move_to_list(card, list, log) | ^ In file included from spider.c:18: ./globals.h:72:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | void move_to_list(); | ^ --- gfx.o --- gfx.c:105:36: warning: suggest braces around initialization of subobject [-Wmissing-braces] 105 | static XRectangle cliprects[1] = { 0, 0, CARD_WIDTH + 1, 0}; | ^~~~~~~~~~~~~~~~~~~~~~~ | { } --- spider.o --- spider.c:578:19: warning: array subscript is of type 'char' [-Wchar-subscripts] --- gfx.o --- gfx.c:123:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] --- spider.o --- 578 | return (rnk_names[rank]); | ^~~~~ --- gfx.o --- 123 | gfx_init(d, scr) | ^ --- spider.o --- spider.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- | int --- spider.o --- 573 | rnk_name(rank) | ^ In file included from spider.c:18: ./globals.h:55:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | char *rnk_name(); | ^ --- gfx.o --- gfx.c:174:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] --- spider.o --- spider.c:592:20: warning: array subscript is of type 'char' [-Wchar-subscripts] 592 | return (rank_names[rank]); | ^~~~~ spider.c:587:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- 174 | #endif KITLESS | ^ | // --- spider.o --- 587 | rank_name(rank) | ^ In file included from spider.c:18: ./globals.h:54:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | char *rank_name(); | ^ spider.c:605:20: warning: array subscript is of type 'char' [-Wchar-subscripts] 605 | return (suit_names[suit]); | ^~~~~ spider.c:621:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 621 | #endif DEBUG | ^ | // spider.c:600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | suit_name(suit) | ^ In file included from spider.c:18: --- gfx.o --- gfx.c:256:2: warning: call to undeclared function 'make_card_maps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- spider.o --- ./globals.h:56:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | char *suit_name(); --- gfx.o --- 256 | make_card_maps(); | ^ --- spider.o --- | ^ --- gfx.o --- gfx.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | gfx_init(d, scr) | ^ gfx.c:257:1: warning: non-void function does not return a value [-Wreturn-type] --- spider.o --- spider.c:628:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- 257 | } | ^ --- spider.o --- 628 | last_card(list) | ^ In file included from spider.c:18: ./globals.h:67:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 67 | CardPtr last_card(); | ^ spider.c:647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 647 | can_move(card) | ^ In file included from spider.c:18: ./globals.h:63:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 63 | Bool can_move(); | ^ spider.c:670:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | can_move_to(card, list) | ^ In file included from spider.c:18: ./globals.h:64:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 64 | Bool can_move_to(); | ^ --- gfx.o --- gfx.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | make_red_map(bits, width, height) --- spider.o --- spider.c:689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- | ^ --- spider.o --- 689 | best_card_move(card) | ^ --- gfx.o --- gfx.c:297:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 297 | make_card_maps() | ^ | int --- spider.o --- In file included from spider.c:18: ./globals.h:66:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 66 | CardList best_card_move(); | ^ --- gfx.o --- gfx.c:310:3: warning: call to undeclared function 'rot_180'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- spider.o --- spider.c:739:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | show_message("Empty list"); | ^ --- gfx.o --- 310 | rot_180((unsigned char *)rank_bits[(int)r], new_bits, | ^ --- spider.o --- spider.c:740:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 740 | spider_bell(dpy, 0); | ^ --- gfx.o --- gfx.c:314:4: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 314 | new_bits, rank_width, rank_height); | ^~~~~~~~ --- spider.o --- spider.c:757:18: warning: passing arguments to 'move_to_pile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | move_to_pile(tmp); | ^ spider.c:765:17: warning: passing arguments to 'card_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here --- spider.o --- 765 | card_message("Nowhere to move the", tmp); | ^ spider.c:766:5: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- gfx.o --- 1603 | _Xconst char* /* data */, | ^ --- spider.o --- 766 | spider_bell(dpy, 0); | ^ spider.c:727:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 727 | best_list_move(list, first_card) | ^ In file included from spider.c:18: ./globals.h:71:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] --- gfx.o --- gfx.c:321:3: warning: call to undeclared function 'rot_180'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- spider.o --- 71 | void best_list_move(); | ^ --- gfx.o --- 321 | rot_180((unsigned char *)rank_bits[(int)r], new_bits, | ^ gfx.c:330:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 330 | new_bits, rank_width, rank_height); | ^~~~~~~~ --- spider.o --- spider.c:775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- 775 | move_to_pile(card) | ^ In file included from spider.c:18: ./globals.h:73:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 73 | void move_to_pile(); | ^ --- gfx.o --- gfx.c:348:2: warning: call to undeclared function 'flip_bits'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- spider.o --- spider.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | is_sequence(card) | ^ --- gfx.o --- 348 | flip_bits((unsigned char *)spade_bits, new_bits, spade_width, | ^ gfx.c:351:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 351 | new_bits, spade_width, spade_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- spider.c:883:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 883 | show_full_suits() | ^ --- gfx.o --- gfx.c:361:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- | int --- gfx.o --- 361 | new_bits, spade_sm_width, spade_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here --- spider.o --- spider.c:900:12: warning: array subscript is of type 'char' [-Wchar-subscripts] --- gfx.o --- 1603 | _Xconst char* /* data */, --- spider.o --- 900 | showing[tmp->rank][tmp->suit]++; | ^~~~~~~~~~ spider.c:900:23: warning: array subscript is of type 'char' [-Wchar-subscripts] --- gfx.o --- | ^ --- spider.o --- 900 | showing[tmp->rank][tmp->suit]++; | ^~~~~~~~~~ spider.c:917:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 917 | show_message("No suit has all 13 cards showing."); --- gfx.o --- gfx.c:388:4: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 388 | new_bits, heart_width, heart_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- | ^ --- gfx.o --- gfx.c:402:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- spider.c:931:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 931 | show_message(buf); | ^ --- gfx.o --- 402 | new_bits, heart_sm_width, heart_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here --- spider.o --- spider.c:933:1: warning: non-void function does not return a value [-Wreturn-type] 933 | } | ^ --- gfx.o --- 1603 | _Xconst char* /* data */, | ^ gfx.c:410:4: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 410 | new_bits, heart_sm_width, heart_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- spider.c:947:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 947 | show_message("Empty column."); | ^ spider.c:985:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- gfx.c:457:4: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- 985 | show_message(buf); | ^ --- gfx.o --- 457 | new_bits, diamond_width, diamond_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ gfx.c:471:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 471 | new_bits, diamond_sm_width, diamond_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- spider.c:989:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- gfx.c:479:4: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- 989 | col_locate(list, suit, rank, checksuit) | ^ --- gfx.o --- 479 | new_bits, diamond_sm_width, diamond_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- spider.c:1080:17: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- gfx.c:523:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- 1080 | show_message(buf); | ^ --- gfx.o --- 523 | new_bits, club_width, club_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here 1603 | _Xconst char* /* data */, | ^ --- spider.o --- spider.c:1093:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] --- gfx.o --- gfx.c:533:3: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] --- spider.o --- 1093 | if (num = col_locate(stack[i], suit, rank, checksuit)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spider.c:1093:11: note: place parentheses around the assignment to silence this warning --- gfx.o --- 533 | new_bits, club_sm_width, club_sm_height); | ^~~~~~~~ /var/tmp/work/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here --- spider.o --- 1093 | if (num = col_locate(stack[i], suit, rank, checksuit)) { | ^ | ( ) spider.c:1093:11: note: use '==' to turn this assignment into an equality comparison --- gfx.o --- 1603 | _Xconst char* /* data */, | ^ --- spider.o --- 1093 | if (num = col_locate(stack[i], suit, rank, checksuit)) { | ^ | == --- gfx.o --- gfx.c:547:1: warning: non-void function does not return a value [-Wreturn-type] 547 | } | ^ --- spider.o --- spider.c:1114:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1114 | show_message(buf); | ^ spider.c:1018:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1018 | locate(str) | ^ In file included from spider.c:18: ./globals.h:83:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | void locate(); | ^ spider.c:1132:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1132 | show_message(buf); | ^ spider.c:1125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1125 | advise_pile_move(list) | ^ --- gfx.o --- gfx.c:597:18: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 597 | tmp = last_card(deck); | ^ gfx.c:599:4: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] --- spider.o --- spider.c:1154:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- 599 | show_card(tmp); | ^ --- spider.o --- 1154 | show_message(buf); | ^ spider.c:1136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1136 | advise_move(card, from, to) | ^ spider.c:1181:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1181 | value_move(card, from, to) | ^ --- gfx.o --- gfx.c:619:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 619 | if (tmp = piles[i]->cards) { | ~~~~^~~~~~~~~~~~~~~~~ gfx.c:619:12: note: place parentheses around the assignment to silence this warning 619 | if (tmp = piles[i]->cards) { | ^ --- spider.o --- spider.c:1269:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- | ( ) --- spider.o --- 1269 | show_message("Its all over."); | ^ --- gfx.o --- gfx.c:619:12: note: use '==' to turn this assignment into an equality comparison --- spider.o --- spider.c:1271:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- gfx.o --- 619 | if (tmp = piles[i]->cards) { | ^ | == --- spider.o --- 1271 | show_message("Deal the next hand."); | ^ --- gfx.o --- gfx.c:625:6: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 625 | show_card(tmp); | ^ --- spider.o --- spider.c:1296:4: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1296 | show_list(list, list->cards); | ^ --- gfx.o --- gfx.c:660:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 660 | if (tmp = stack[i]->cards) { | ~~~~^~~~~~~~~~~~~~~~~ gfx.c:660:12: note: place parentheses around the assignment to silence this warning 660 | if (tmp = stack[i]->cards) { | ^ | ( ) gfx.c:660:12: note: use '==' to turn this assignment into an equality comparison 660 | if (tmp = stack[i]->cards) { | ^ | == gfx.c:684:8: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 684 | show_card(tmp); | ^ gfx.c:693:8: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 693 | show_card(tmp); | ^ gfx.c:720:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 720 | show_list(list, card) | ^ | int gfx.c:760:3: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 760 | show_card(tmp); | ^ gfx.c:720:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 720 | show_list(list, card) | ^ gfx.c:763:1: warning: non-void function does not return a value [-Wreturn-type] 763 | } | ^ gfx.c:768:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 768 | show_card(card) | ^ | int gfx.c:777:3: warning: call to undeclared function 'paint_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 777 | paint_card(card->x, card->y, card->rank, card->suit, delta); | ^ gfx.c:782:4: warning: call to undeclared function 'paint_cardback'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 782 | paint_cardback(card->x, card->y, CARD_HEIGHT); | ^ gfx.c:785:4: warning: call to undeclared function 'paint_cardback'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 785 | paint_cardback(card->x, card->y, | ^ gfx.c:768:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 768 | show_card(card) | ^ gfx.c:789:1: warning: non-void function does not return a value [-Wreturn-type] 789 | } | ^ gfx.c:791:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 791 | paint_cardback(x, y, delta) | ^ | int gfx.c:791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] gfx.c:825:1: warning: non-void function does not return a value [-Wreturn-type] 825 | } | ^ gfx.c:831:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 831 | paint_card(x, y, rank, suit, delta) | ^ | int gfx.c:903:3: warning: call to undeclared function 'draw_king'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 903 | draw_king(suit, x, y); | ^ gfx.c:906:3: warning: call to undeclared function 'draw_queen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 906 | draw_queen(suit, x, y); | ^ gfx.c:909:3: warning: call to undeclared function 'draw_jack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 909 | draw_jack(suit, x, y); | ^ gfx.c:913:3: warning: call to undeclared function 'draw_pip'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 913 | draw_pip(suit, MID_CARD_X + x, CARD_TEN_Y1 + y); | ^ gfx.c:937:3: warning: call to undeclared function 'draw_four_pips'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 937 | draw_four_pips(suit, x, y); | ^ gfx.c:944:3: warning: call to undeclared function 'draw_two_pips'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 944 | draw_two_pips(suit, x, y); | ^ gfx.c:953:2: warning: call to undeclared function 'draw_rank'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 953 | draw_rank(x, y, rank, suit); | ^ gfx.c:831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | paint_card(x, y, rank, suit, delta) | ^ gfx.c:964:1: warning: non-void function does not return a value [-Wreturn-type] 964 | } | ^ gfx.c:977:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 977 | draw_pip(suit, x, y) | ^ | int gfx.c:1006:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 1006 | XCopyPlane(dpy, suit_map[suit], table, cardgc, | ^~~~~ gfx.c:977:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 977 | draw_pip(suit, x, y) | ^ gfx.c:1009:1: warning: non-void function does not return a value [-Wreturn-type] 1009 | } | ^ gfx.c:1003:2: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1003 | default: | ^~~~~~~ gfx.c:1007:9: note: uninitialized use occurs here 1007 | 0, 0, w, h, | ^ gfx.c:981:6: note: initialize the variable 'w' to silence this warning 981 | int w, h; | ^ | = 0 gfx.c:1003:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1003 | default: | ^~~~~~~ gfx.c:1007:12: note: uninitialized use occurs here 1007 | 0, 0, w, h, | ^ gfx.c:981:9: note: initialize the variable 'h' to silence this warning 981 | int w, h; | ^ | = 0 gfx.c:1046:28: warning: array subscript is of type 'char' [-Wchar-subscripts] 1046 | XCopyPlane(dpy, suit_r_map[suit], table, cardgc, | ^~~~~ gfx.c:1043:2: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1043 | default: | ^~~~~~~ gfx.c:1047:9: note: uninitialized use occurs here 1047 | 0, 0, w, h, | ^ gfx.c:1018:6: note: initialize the variable 'w' to silence this warning 1018 | int w, h; | ^ | = 0 gfx.c:1043:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1043 | default: | ^~~~~~~ gfx.c:1047:12: note: uninitialized use occurs here 1047 | 0, 0, w, h, | ^ gfx.c:1018:9: note: initialize the variable 'h' to silence this warning 1018 | int w, h; | ^ | = 0 gfx.c:1081:29: warning: array subscript is of type 'char' [-Wchar-subscripts] 1081 | XCopyPlane(dpy, suit_lg_map[suit], table, cardgc, | ^~~~~ gfx.c:1078:2: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1078 | default: | ^~~~~~~ gfx.c:1082:9: note: uninitialized use occurs here 1082 | 0, 0, w, h, | ^ gfx.c:1056:6: note: initialize the variable 'w' to silence this warning 1056 | int w, h; | ^ | = 0 gfx.c:1078:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1078 | default: | ^~~~~~~ gfx.c:1082:12: note: uninitialized use occurs here 1082 | 0, 0, w, h, | ^ gfx.c:1056:9: note: initialize the variable 'h' to silence this warning 1056 | int w, h; | ^ | = 0 gfx.c:1089:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1089 | draw_two_pips(suit, x, y) | ^ | int gfx.c:1089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] gfx.c:1095:1: warning: non-void function does not return a value [-Wreturn-type] 1095 | } | ^ gfx.c:1100:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1100 | draw_four_pips(suit, x, y) | ^ | int gfx.c:1100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] gfx.c:1109:1: warning: non-void function does not return a value [-Wreturn-type] 1109 | } | ^ gfx.c:1147:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1147 | draw_jack(suit, x, y) | ^ | int gfx.c:1151:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 1151 | XCopyPlane(dpy, jack_map[suit], table, cardgc, | ^~~~~ gfx.c:1147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | draw_jack(suit, x, y) | ^ gfx.c:1160:1: warning: non-void function does not return a value [-Wreturn-type] 1160 | } | ^ gfx.c:1162:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1162 | draw_queen(suit, x, y) | ^ | int gfx.c:1166:27: warning: array subscript is of type 'char' [-Wchar-subscripts] 1166 | XCopyPlane(dpy, queen_map[suit], table, cardgc, | ^~~~~ gfx.c:1162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | draw_queen(suit, x, y) | ^ gfx.c:1175:1: warning: non-void function does not return a value [-Wreturn-type] 1175 | } | ^ gfx.c:1177:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1177 | draw_king(suit, x, y) | ^ | int gfx.c:1181:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 1181 | XCopyPlane(dpy, king_map[suit], table, cardgc, | ^~~~~ gfx.c:1177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1177 | draw_king(suit, x, y) | ^ gfx.c:1190:1: warning: non-void function does not return a value [-Wreturn-type] 1190 | } | ^ gfx.c:1192:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1192 | draw_rank(x, y, rank, suit) | ^ | int gfx.c:1200:31: warning: array subscript is of type 'char' [-Wchar-subscripts] 1200 | XCopyPlane(dpy, rank_map_red[rank], table, cardgc, | ^~~~~ gfx.c:1205:37: warning: array subscript is of type 'char' [-Wchar-subscripts] 1205 | XCopyPlane(dpy, rank_r_map_red[rank], table, cardgc, | ^~~~~ gfx.c:1210:27: warning: array subscript is of type 'char' [-Wchar-subscripts] 1210 | XCopyPlane(dpy, rank_map[rank], table, cardgc, | ^~~~~ gfx.c:1215:33: warning: array subscript is of type 'char' [-Wchar-subscripts] 1215 | XCopyPlane(dpy, rank_r_map[rank], table, cardgc, | ^~~~~ gfx.c:1242:29: warning: array subscript is of type 'char' [-Wchar-subscripts] 1242 | XCopyPlane(dpy, suit_sm_map[suit], table, cardgc, | ^~~~~ gfx.c:1247:35: warning: array subscript is of type 'char' [-Wchar-subscripts] 1247 | XCopyPlane(dpy, suit_sm_r_map[suit], table, cardgc, | ^~~~~ gfx.c:1318:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 1318 | #endif KITLESS | ^ | // gfx.c:1192:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1192 | draw_rank(x, y, rank, suit) | ^ gfx.c:1251:1: warning: non-void function does not return a value [-Wreturn-type] 1251 | } | ^ gfx.c:1239:3: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1239 | default: | ^~~~~~~ gfx.c:1243:9: note: uninitialized use occurs here 1243 | 0, 0, w, h, | ^ gfx.c:1197:6: note: initialize the variable 'w' to silence this warning 1197 | int w, h; | ^ | = 0 gfx.c:1239:3: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] 1239 | default: | ^~~~~~~ gfx.c:1243:12: note: uninitialized use occurs here 1243 | 0, 0, w, h, | ^ gfx.c:1197:9: note: initialize the variable 'h' to silence this warning 1197 | int w, h; | ^ | = 0 gfx.c:1328:17: warning: passing arguments to 'rank_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1328 | str, rank_name(card->rank), suit_name(card->suit)); | ^ gfx.c:1328:40: warning: passing arguments to 'suit_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1328 | str, rank_name(card->rank), suit_name(card->suit)); | ^ gfx.c:1329:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1329 | show_message(buf); | ^ gfx.c:1321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | card_message(str, card) | ^ In file included from gfx.c:17: ./globals.h:77:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | void card_message(); | ^ gfx.c:1340:18: warning: passing arguments to 'rank_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | str1, rank_name(card1->rank), suit_name(card1->suit), | ^ gfx.c:1340:42: warning: passing arguments to 'suit_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1340 | str1, rank_name(card1->rank), suit_name(card1->suit), | ^ gfx.c:1341:18: warning: passing arguments to 'rank_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1341 | str2, rank_name(card2->rank), suit_name(card2->suit)); | ^ gfx.c:1341:42: warning: passing arguments to 'suit_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1341 | str2, rank_name(card2->rank), suit_name(card2->suit)); | ^ gfx.c:1342:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1342 | show_message(buf); | ^ gfx.c:1333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1333 | card2_message(str1, card1, str2, card2) | ^ In file included from gfx.c:17: ./globals.h:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | void card2_message(); | ^ gfx.c:1348:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1348 | show_message(" "); | ^ gfx.c:1390:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1390 | flip_bits(src, dst, W, H) | ^ | int gfx.c:1390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] gfx.c:1402:1: warning: non-void function does not return a value [-Wreturn-type] 1402 | } | ^ gfx.c:1404:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1404 | rot_180(src, dst, W, H) | ^ | int gfx.c:1404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] gfx.c:1432:1: warning: non-void function does not return a value [-Wreturn-type] 1432 | } | ^ 131 warnings generated. --- spider.o --- 110 warnings generated. --- events.o --- --- windows.o --- --- events.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c events.c --- windows.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c windows.c --- events.o --- In file included from events.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 34 | #else DEBUG | ^ | // --- windows.o --- In file included from windows.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] --- events.o --- ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // --- windows.o --- 34 | #else DEBUG | ^ | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // --- events.o --- In file included from events.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 95 | #endif KITLESS | ^ | // --- windows.o --- In file included from windows.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] --- events.o --- events.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- windows.o --- 95 | #endif KITLESS | ^ | // --- events.o --- 119 | redraw_table(xev) | ^ In file included from events.c:18: ./globals.h:91:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 91 | void redraw_table(); | ^ --- windows.o --- windows.c:119:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 119 | #endif KITLESS | ^ | // windows.c:122:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 122 | table_init(win) | ^ | int windows.c:143:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 143 | #endif KITLESS | ^ | // windows.c:122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | table_init(win) | ^ windows.c:142:1: warning: non-void function does not return a value [-Wreturn-type] 142 | } | ^ --- events.o --- events.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | coords_to_list(x, y) | ^ events.c:25:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | static CardList coords_to_list(); | ^ events.c:170:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | coords_to_card(x, y) | ^ events.c:26:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | static CardPtr coords_to_card(); | ^ events.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | hit_deck(x, y) | ^ events.c:27:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | static Bool hit_deck(); | ^ events.c:235:16: warning: passing arguments to 'can_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | if (!can_move(current_card)) { | ^ events.c:236:16: warning: passing arguments to 'card_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | card_message("Can't move", current_card); | ^ events.c:237:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 237 | spider_bell(dpy, 0); | ^ events.c:246:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | show_message("Can't move removed cards."); | ^ events.c:247:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 247 | spider_bell(dpy, 0); | ^ events.c:249:4: warning: call to undeclared function 'show_full_suits'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | show_full_suits(); | ^ events.c:253:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | show_message("No cards to move."); | ^ events.c:211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | button_press(xev) | ^ In file included from events.c:18: ./globals.h:92:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 92 | void button_press(); | ^ events.c:275:5: warning: call to undeclared function 'deal_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 275 | deal_cards(); | ^ events.c:280:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | show_message("Can't move cards to deck"); | ^ events.c:281:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | spider_bell(dpy, 0); | ^ events.c:299:18: warning: passing arguments to 'best_list_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | best_list_move(list_hit, current_card); | ^ events.c:304:17: warning: passing arguments to 'can_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | (can_move(current_card)) && | ^ events.c:305:18: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | (last_card(current_card->list)->rank == Ace)) { | ^ events.c:306:17: warning: passing arguments to 'move_to_pile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | move_to_pile(current_card); | ^ events.c:308:17: warning: passing arguments to 'card_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | card_message("Can't remove", current_card); | ^ events.c:309:5: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 309 | spider_bell(dpy, 0); | ^ events.c:314:18: warning: passing arguments to 'can_move_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | if (can_move_to(current_card, list_hit)) { | ^ events.c:315:16: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | move_to_list(current_card, list_hit, True); | ^ events.c:318:14: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | last_card(list_hit)); | ^ events.c:317:17: warning: passing arguments to 'card2_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | card2_message("Can't move", current_card, "to", | ^ events.c:319:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 319 | spider_bell(dpy, 0); | ^ events.c:324:17: warning: passing arguments to 'best_list_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | best_list_move(list_hit, CARDNULL); | ^ events.c:327:19: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | tmp = last_card(current_list); | ^ events.c:329:27: warning: passing arguments to 'can_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | while (tmp && can_move(tmp)) { | ^ events.c:331:19: warning: passing arguments to 'move_to_pile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | move_to_pile(tmp); | ^ events.c:337:16: warning: passing arguments to 'card_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | card_message("Can't remove", tmp); | ^ events.c:338:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 338 | spider_bell(dpy, 0); | ^ events.c:343:16: warning: passing arguments to 'can_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | if (can_move(tmp)) { | ^ events.c:344:20: warning: passing arguments to 'can_move_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | if (can_move_to(tmp, list_hit)) { | ^ events.c:345:18: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | move_to_list(tmp, list_hit, True); | ^ events.c:352:16: warning: passing arguments to 'card_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | card_message("Can't move", tmp); | ^ events.c:354:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | show_message("No movable cards"); | ^ events.c:355:3: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 355 | spider_bell(dpy, 0); | ^ events.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | button_release(xev) | ^ In file included from events.c:18: ./globals.h:93:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 93 | void button_release(); | ^ events.c:385:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | show_message("Selection is unusable or unobtainable."); | ^ events.c:387:10: warning: passing arguments to 'locate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | locate(fname); | ^ events.c:393:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | show_message("Selection is unusable or unobtainable."); | ^ events.c:395:4: warning: call to undeclared function 'read_file_or_selection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | read_file_or_selection(fname); | ^ events.c:404:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | show_message("Selection is unusable or unobtainable."); | ^ events.c:413:4: warning: call to undeclared function 'compute_score'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 413 | compute_score()); | ^ events.c:414:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | show_message(buf); | ^ events.c:420:3: warning: call to undeclared function 'init_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 420 | init_cache(); /* reset move cache */ | ^ events.c:428:12: warning: passing arguments to 'show_play' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] --- windows.o --- 8 warnings generated. --- events.o --- 428 | show_play(0, 0, show_play_events, delay); | ^ events.c:446:4: warning: call to undeclared function 'deal_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 446 | deal_cards(); | ^ events.c:465:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | show_message("Haven't dealt yet."); | ^ events.c:469:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | show_message(buf); | ^ events.c:473:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | show_message(buf); | ^ events.c:478:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | show_message("Haven't dealt yet."); | ^ events.c:486:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | show_message(buf); | ^ events.c:364:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | key_press(xev) | ^ In file included from events.c:18: ./globals.h:90:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 90 | void key_press(); | ^ events.c:523:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | show_message(buf); | ^ events.c:537:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | show_message("Unable to grab pointer."); | ^ events.c:566:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | show_message("Click over the column whose contents you want to see."); | ^ events.c:568:2: warning: call to undeclared function 'flush_message'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 568 | flush_message(); | ^ events.c:574:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | show_message("That wasn't over a column!"); | ^ events.c:608:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 608 | spider_bell(d, level) | ^ | int events.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] events.c:614:1: warning: non-void function does not return a value [-Wreturn-type] 614 | } | ^ --- movelog.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c movelog.c --- events.o --- 73 warnings generated. --- util.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c util.c --- movelog.o --- In file included from movelog.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 34 | #else DEBUG | ^ | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // In file included from movelog.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 95 | #endif KITLESS | ^ | // movelog.c:39:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 39 | make_deck_cache() | ^ | int movelog.c:49:1: warning: non-void function does not return a value [-Wreturn-type] 49 | } | ^ movelog.c:51:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 51 | init_cache() | ^ | int movelog.c:58:1: warning: non-void function does not return a value [-Wreturn-type] 58 | } | ^ movelog.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 60 | grow_cache() | ^ | int movelog.c:72:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 72 | } | ^ movelog.c:74:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 74 | record(from, dest, num_cards, exposed) | ^ | int movelog.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] movelog.c:84:1: warning: non-void function does not return a value [-Wreturn-type] 84 | } | ^ movelog.c:86:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 86 | unencode(val, from, dest, num_cards, exposed) | ^ | int movelog.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] movelog.c:97:1: warning: non-void function does not return a value [-Wreturn-type] 97 | } | ^ movelog.c:106:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | show_message("No moves available to back up over."); | ^ movelog.c:107:3: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | spider_bell(dpy, 0); | ^ movelog.c:112:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | show_message("Cheater!"); | ^ movelog.c:114:3: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | spider_bell(dpy, 0); | ^ movelog.c:119:3: warning: call to undeclared function 'undo_deal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | undo_deal(); | ^ movelog.c:120:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | show_message("Cheater!"); | ^ movelog.c:122:3: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 122 | spider_bell(dpy, 0); | ^ movelog.c:129:4: warning: call to undeclared function 'undo_suit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | undo_suit(from - 1, exposed); | ^ movelog.c:131:4: warning: call to undeclared function 'undo_normal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | undo_normal(from - 1, dest - 1, num_cards, exposed); | ^ movelog.c:139:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 139 | undo_deal() | ^ | int movelog.c:145:18: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | tmp = last_card(stack[i]); | ^ movelog.c:146:3: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | remove_card(tmp); | ^ movelog.c:147:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | add_card(tmp, deck->cards, LOC_BEFORE, deck); | ^ movelog.c:148:3: warning: call to undeclared function 'flip_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | flip_card(tmp, Facedown); | ^ movelog.c:152:25: warning: passing arguments to 'recompute_list_deltas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | recompute_list_deltas(stack[i]); | ^ movelog.c:153:4: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | show_list(stack[i], stack[i]->cards); | ^ movelog.c:155:4: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 155 | show_list(stack[i], last_card(stack[i])); | ^ movelog.c:155:33: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | show_list(stack[i], last_card(stack[i])); | ^ movelog.c:160:1: warning: non-void function does not return a value [-Wreturn-type] 160 | } | ^ movelog.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 165 | undo_suit(from, exposed) | ^ | int movelog.c:172:3: warning: call to undeclared function 'flip_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | flip_card(last_card(stack[from]), Facedown); | ^ movelog.c:172:22: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | flip_card(last_card(stack[from]), Facedown); | ^ movelog.c:176:16: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | move_to_list(piles[i]->cards, stack[from], False); | ^ movelog.c:165:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | undo_suit(from, exposed) | ^ movelog.c:180:1: warning: non-void function does not return a value [-Wreturn-type] 180 | } | ^ movelog.c:182:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 182 | undo_normal(from, dest, num_cards, exposed) | ^ | int movelog.c:189:3: warning: call to undeclared function 'flip_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 189 | flip_card(last_card(stack[from]), Facedown); | ^ movelog.c:189:22: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | flip_card(last_card(stack[from]), Facedown); | ^ movelog.c:190:17: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | tmp = last_card(stack[dest]); | ^ movelog.c:197:14: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | move_to_list(tmp, stack[from], False); | ^ movelog.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | undo_normal(from, dest, num_cards, exposed) | ^ movelog.c:198:1: warning: non-void function does not return a value [-Wreturn-type] 198 | } | ^ movelog.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | hash_card(val) | ^ movelog.c:208:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 208 | static int hash_card(); | ^ movelog.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | read_sequence(str) --- util.o --- In file included from util.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] --- movelog.o --- | ^ --- util.o --- 34 | #else DEBUG | ^ | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // --- movelog.o --- movelog.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | write_sequence(fp, seq) | ^ movelog.c:299:20: warning: array subscript is of type 'char' [-Wchar-subscripts] 299 | *rank = flip_ranks[*rank]; | ^~~~~~ movelog.c:292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | int_to_card(val, suit, rank) | ^ movelog.c:309:36: warning: array subscript is of type 'char' [-Wchar-subscripts] 309 | val = card->suit * 13 + flip_ranks[card->rank]; | ^~~~~~~~~~~ movelog.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | find_card(cache, suit, rank) | ^ movelog.c:348:4: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | add_card(cache[i], deck->cards, LOC_END, deck); | ^ movelog.c:340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | recover(cache) | ^ movelog.c:373:2: warning: call to undeclared function 'remove_all_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 373 | remove_all_cards(cache); | ^ movelog.c:407:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 407 | add_card(card, deck->cards, LOC_END, deck); | ^ movelog.c:476:4: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 476 | add_card(card, stack[i]->cards, LOC_END, stack[i]); | ^ movelog.c:492:5: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | add_card(card, stack[i]->cards, LOC_END, | ^ movelog.c:535:5: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | add_card(card, piles[i]->cards, LOC_START, | ^ movelog.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | read_position(str) | ^ movelog.c:547:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | read_moves(str) | ^ movelog.c:564:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | write_moves(fp) | ^ movelog.c:585:25: warning: passing arguments to 'remove_newlines' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | fname = remove_newlines(fname); | ^ movelog.c:589:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | show_message("Overwriting existing file."); | ^ movelog.c:591:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | show_message("Cancelling save."); | ^ movelog.c:598:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | show_message(buf); | ^ movelog.c:650:35: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | *seqp++ = card_to_int(last_card(piles[i])); | ^ movelog.c:665:2: warning: call to undeclared function 'write_human'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 665 | write_human(fp); | ^ movelog.c:668:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 668 | show_message(buf); | ^ movelog.c:671:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 671 | write_human(fp) | ^ | int movelog.c:700:18: warning: passing arguments to 'rnk_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | rnk_name(tmps[i]->rank), | ^ movelog.c:701:28: warning: passing arguments to 'suit_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | tolower(*suit_name(tmps[i]->suit))); | ^ movelog.c:671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | write_human(fp) | ^ movelog.c:710:1: warning: non-void function does not return a value [-Wreturn-type] 710 | } | ^ movelog.c:712:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 712 | read_selection(buf) | ^ | int movelog.c:717:23: warning: passing arguments to 'remove_newlines' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | buf = remove_newlines(buf); | ^ movelog.c:724:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | show_message("Bogus data in selection."); | ^ movelog.c:727:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 727 | show_message("Position loaded from selection."); | ^ movelog.c:712:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | read_selection(buf) | ^ movelog.c:730:1: warning: non-void function does not return a value [-Wreturn-type] 730 | } | ^ movelog.c:732:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 732 | read_file_or_selection(fname) | ^ | int movelog.c:738:13: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'char'; dereference with * [-Wint-conversion] 738 | read_file(fname); | ^~~~~ | * ./globals.h:97:21: note: passing argument to parameter 'fname' here 97 | void read_file(char fname); | ^ movelog.c:732:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | read_file_or_selection(fname) | ^ movelog.c:740:1: warning: non-void function does not return a value [-Wreturn-type] 740 | } | ^ movelog.c:748:25: warning: passing arguments to 'remove_newlines' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | fname = remove_newlines(fname); | ^ movelog.c:748:8: warning: incompatible pointer to integer conversion assigning to 'char' from 'char *'; dereference with * [-Wint-conversion] 748 | fname = remove_newlines(fname); | ^ ~~~~~~~~~~~~~~~~~~~~~~ | * movelog.c:749:18: warning: incompatible integer to pointer conversion passing 'char' to parameter of type 'const char *'; take the address with & [-Wint-conversion] 749 | if ((fp = fopen(fname, "r")) == NULL) { | ^~~~~ | & /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:243:37: note: passing argument to parameter '__filename' here 243 | FILE *fopen(const char * __restrict __filename, const char * __restrict __mode) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fopen)); | ^ movelog.c:751:5: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] 750 | (void)sprintf(buf, "Can't open file \"%s\" for loading.", | ~~ | %c 751 | fname); | ^~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ movelog.c:752:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | show_message(buf); | ^ movelog.c:779:51: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] 779 | (void)sprintf(buf, "Saved game \"%s\" loaded.", fname); | ~~ ^~~~~ | %c /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ movelog.c:781:49: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] 781 | (void)sprintf(buf, "Bogus save file \"%s\".", fname); | ~~ ^~~~~ | %c /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ movelog.c:785:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 785 | show_message(buf); | ^ movelog.c:816:2: warning: call to undeclared function 'remove_all_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 816 | remove_all_cards(cache); | ^ movelog.c:827:16: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | show_message("Old deck is corrupted -- can't replay."); | ^ movelog.c:832:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 832 | add_card(card, deck->cards, LOC_END, deck); | ^ movelog.c:842:2: warning: call to undeclared function 'deal_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 842 | deal_cards(); | ^ movelog.c:858:17: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 858 | tmp = last_card(stack[from]); | ^ movelog.c:872:14: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 872 | move_to_list(tmp, piles[i], False); | ^ movelog.c:852:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | show_suit(from) | ^ movelog.c:884:17: warning: passing arguments to 'last_card' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 884 | tmp = last_card(stack[from]); | ^ movelog.c:890:14: warning: passing arguments to 'move_to_list' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | move_to_list(tmp, stack[dest], False); | ^ movelog.c:879:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | show_normal(from, dest, num) | ^ movelog.c:950:9: warning: call to undeclared function 'show_play_events'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 950 | (void) show_play_events(); | ^ movelog.c:952:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | show_message("Showing all moves -- hit any key or button to abort"); | ^ movelog.c:979:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 979 | show_message("Aborted -- cleaning up"); | ^ movelog.c:981:15: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 981 | show_message("Replay finished"); | ^ movelog.c:936:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | show_play(start, num_moves, event_check, delay_func) | ^ In file included from movelog.c:18: ./globals.h:82:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | void show_play(); | ^ --- util.o --- In file included from util.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 95 | #endif KITLESS | ^ | // util.c:83:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 83 | (void)strncpy(prop, text.ptr, end - start); | ^~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' 128 | __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) | ^~~~ util.c:129:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | can_get_help_files(helpfiles) | ^ In file included from util.c:18: ./globals.h:108:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 108 | Bool can_get_help_files(); | ^ util.c:157:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 157 | extern char *getenv(); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdlib.h:162:18: note: conflicting prototype is here 162 | char *_LIBC_CSTR getenv(const char *); | ^ util.c:185:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 185 | if (pwd = getpwnam(uname)) { | ~~~~^~~~~~~~~~~~~~~~~ util.c:185:12: note: place parentheses around the assignment to silence this warning 185 | if (pwd = getpwnam(uname)) { | ^ | ( ) util.c:185:12: note: use '==' to turn this assignment into an equality comparison 185 | if (pwd = getpwnam(uname)) { | ^ | == util.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | remove_newlines(str) | ^ In file included from util.c:18: ./globals.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | char *remove_newlines(); | ^ 10 warnings generated. --- version.o --- clang -DDATE="\"`date`\"" -c version.c --- movelog.o --- 111 warnings generated. --- xaw_ui.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c xaw_ui.c --- xaw_stubs.o --- 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 -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c xaw_stubs.c --- xaw_ui.o --- In file included from xaw_ui.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 34 | #else DEBUG | ^ | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // In file included from xaw_ui.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 95 | #endif KITLESS | ^ | // --- xaw_stubs.o --- In file included from xaw_stubs.c:16: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] 34 | #else DEBUG | ^ | // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 63 | #endif DEBUG | ^ | // --- xaw_ui.o --- xaw_ui.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | usage(arg) | ^ xaw_ui.c:145:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 145 | main(argc, argv) | ^ | int xaw_ui.c:152:10: warning: call to undeclared function 'xaw_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | nargs = xaw_init(argc, argv); | ^ xaw_ui.c:171:2: warning: call to undeclared function 'table_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | table_init(XtWindow(table_w)); | ^ xaw_ui.c:172:2: warning: call to undeclared function 'card_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | card_init(); | ^ xaw_ui.c:175:13: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'char'; dereference with * [-Wint-conversion] 175 | read_file(save_file); | ^~~~~~~~~ | * ./globals.h:97:21: note: passing argument to parameter 'fname' here 97 | void read_file(char fname); | ^ xaw_ui.c:145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | main(argc, argv) | ^ xaw_ui.c:182:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 182 | xaw_init(argc, argv) | ^ | int xaw_ui.c:243:2: warning: call to undeclared function 'gfx_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 243 | gfx_init(XtDisplay(toplevel), scr); | ^ xaw_ui.c:327:25: warning: passing arguments to 'can_get_help_files' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | if (!can_get_help_files(helpfiles)) { | ^ xaw_ui.c:416:2: warning: call to undeclared function 'create_confirmer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 416 | create_confirmer(); | ^ xaw_ui.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | xaw_init(argc, argv) | ^ xaw_ui.c:421:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 421 | create_confirmer() | ^ | int xaw_ui.c:450:55: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 450 | XtAddCallback(button, XtNcallback, confirm_callback, 1); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:455:55: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 455 | XtAddCallback(button, XtNcallback, confirm_callback, 2); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:456:1: warning: non-void function does not return a value [-Wreturn-type] 456 | } | ^ xaw_ui.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | show_message(buf) | ^ In file included from xaw_ui.c:18: ./globals.h:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | void show_message(); | ^ xaw_ui.c:474:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 474 | flush_message() | ^ | int xaw_ui.c:484:1: warning: non-void function does not return a value [-Wreturn-type] 484 | } | ^ xaw_ui.c:512:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 512 | XtAddCallback(button, XtNcallback, change_help, 1); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:517:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 517 | XtAddCallback(button, XtNcallback, change_help, 2); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:522:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 522 | XtAddCallback(button, XtNcallback, change_help, 3); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:527:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 527 | XtAddCallback(button, XtNcallback, change_help, 4); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:532:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 532 | XtAddCallback(button, XtNcallback, change_help, 5); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:537:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 537 | XtAddCallback(button, XtNcallback, change_help, 6); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:542:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] 542 | XtAddCallback(button, XtNcallback, change_help, 7); | ^ /var/tmp/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here 1258 | ); | ^ xaw_ui.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | create_help_popup(fname) | ^ In file included from xaw_ui.c:19: ./xaw_ui.h:48:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 48 | extern Widget create_help_popup(); | ^ --- xaw_stubs.o --- In file included from xaw_stubs.c:17: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] 95 | #endif KITLESS | ^ | // xaw_stubs.c:37:3: warning: call to undeclared function 'compute_score'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | compute_score()); | ^ xaw_stubs.c:38:14: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | show_message(buf); | ^ xaw_stubs.c:30:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | score_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:32:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | extern void score_handler(), | ^ xaw_stubs.c:47:6: warning: call to undeclared function 'newgame_confirmer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | if (newgame_confirmer()) { | ^ xaw_stubs.c:49:3: warning: call to undeclared function 'shuffle_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | shuffle_cards(); | ^ xaw_stubs.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | newgame_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:39:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | newgame_handler(), | ^ xaw_stubs.c:59:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 59 | switch ((int) call_data) { | ^~~~~~~~~~~~~~~ xaw_stubs.c:65:4: warning: call to undeclared function 'init_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | init_cache(); /* reset move cache */ | ^ xaw_stubs.c:69:13: warning: passing arguments to 'show_play' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | show_play(0, 0, show_play_events, delay); | ^ xaw_stubs.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | backup_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:33:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | backup_handler(), | ^ xaw_stubs.c:76:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | expand_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:34:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | expand_handler(), | ^ xaw_stubs.c:90:27: warning: passing arguments to 'create_help_popup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | help = create_help_popup(helpfiles[0]); | ^ xaw_stubs.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | help_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:37:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 37 | help_handler(), | ^ xaw_stubs.c:104:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 104 | switch ((int) call_data) { | ^~~~~~~~~~~~~~~ xaw_stubs.c:111:22: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 111 | fname = helpfiles[(int)call_data - 1]; | ^~~~~~~~~~~~~~ xaw_stubs.c:97:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | change_help(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:38:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | change_help(), | ^ xaw_stubs.c:141:26: warning: passing arguments to 'remove_newlines' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | fname = remove_newlines(fname); | ^ xaw_stubs.c:142:9: warning: passing arguments to 'locate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | locate(fname); | ^ xaw_stubs.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | locate_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:35:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | locate_handler(), | ^ xaw_stubs.c:157:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 157 | switch ((int) call_data) { | ^~~~~~~~~~~~~~~ xaw_stubs.c:161:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 161 | } else if (fname = get_selection()) { | ~~~~~~^~~~~~~~~~~~~~~~~ xaw_stubs.c:161:21: note: place parentheses around the assignment to silence this warning 161 | } else if (fname = get_selection()) { | ^ | ( ) xaw_stubs.c:161:21: note: use '==' to turn this assignment into an equality comparison 161 | } else if (fname = get_selection()) { | ^ | == xaw_stubs.c:164:17: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | show_message("Bogus filename."); | ^ xaw_stubs.c:169:15: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'char'; dereference with * [-Wint-conversion] 169 | read_file(fname); | ^~~~~ | * ./globals.h:97:21: note: passing argument to parameter 'fname' here 97 | void read_file(char fname); | ^ xaw_stubs.c:171:17: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | show_message("Bogus filename."); | ^ xaw_stubs.c:177:5: warning: call to undeclared function 'read_selection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | read_selection(fname); | ^ xaw_stubs.c:179:17: warning: passing arguments to 'show_message' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | show_message("Bogus primary selection."); | ^ xaw_stubs.c:148:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | file_handler(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:36:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | file_handler(), | ^ xaw_stubs.c:199:14: warning: passing arguments to 'redraw_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | redraw_table(xev); | ^ xaw_stubs.c:191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | xaw_redraw_table(w, data, xev, ctd) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:42:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 42 | extern void xaw_redraw_table(), | ^ xaw_stubs.c:213:14: warning: passing arguments to 'button_press' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | button_press(xev); | ^ xaw_stubs.c:205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | xaw_button_press(w, data, xev, ctd) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:43:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | xaw_button_press(), | ^ xaw_stubs.c:227:16: warning: passing arguments to 'button_release' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | button_release(xev); | ^ xaw_stubs.c:219:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | xaw_button_release(w, data, xev, ctd) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:44:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | xaw_button_release(), | ^ xaw_stubs.c:251:25: warning: passing arguments to 'recompute_list_deltas' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | recompute_list_deltas(stack[i]); | ^ xaw_stubs.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | xaw_resize(w, data, xev, ctd) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:45:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | xaw_resize(), | ^ xaw_stubs.c:266:11: warning: passing arguments to 'key_press' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | key_press(xev); | ^ xaw_stubs.c:269:3: warning: call to undeclared function 'shuffle_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 269 | shuffle_cards(); | ^ xaw_stubs.c:258:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | xaw_key_press(w, data, xev, ctd) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:46:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | xaw_key_press(); | ^ xaw_stubs.c:305:6: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 305 | if ((int)call_data == 1) | ^~~~~~~~~~~~~~ xaw_stubs.c:301:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | confirm_callback(w, call_data, client_data) | ^ In file included from xaw_stubs.c:18: ./xaw_ui.h:40:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 40 | confirm_callback(); | ^ xaw_stubs.c:314:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | do_confirmer(label) | ^ xaw_stubs.c:377:26: warning: passing arguments to 'remove_newlines' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | fname = remove_newlines(fname); | ^ xaw_stubs.c:378:9: warning: passing arguments to 'locate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | locate(fname); | ^ --- xaw_ui.o --- 32 warnings generated. --- spider._man --- rm -f spider._man --- xaw_stubs.o --- 60 warnings generated. --- spider._man --- if test -z "" ; then cd `dirname spider` && ln -s `basename spider.man` `basename spider._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" < spider.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/\@\@$/\/' >spider._man; fi --- spider --- rm -f spider clang -o spider -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib gfx.o spider.o events.o windows.o movelog.o util.o version.o xaw_ui.o xaw_stubs.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11