WARNING: [license.mk] Every package should define a LICENSE. ===> Building for spider-1.1nb3 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 In file included from gfx.c:16: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from gfx.c:17: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // In file included from gfx.c:87: ./rank.bm:15:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x6c, 0x00, 0x6c, 0x00, 0x6c, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:18:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x80, 0x01, 0xc0, 0x01, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:21:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xff, 0x01, 0xff, 0x01, 0xc3, 0x01, 0xe0, 0x00, 0x70, 0x00, 0x78, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:24:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xe0, 0x00, 0xf0, 0x00, 0xf0, 0x00, 0xd8, 0x00, 0xd8, 0x00, 0xcc, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:27:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xff, 0x00, 0xff, 0x00, 0x03, 0x00, 0x03, 0x00, 0x7b, 0x00, 0xff, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:30:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x00, 0x03, 0x00, 0x7b, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:33:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xff, 0x01, 0xff, 0x01, 0x83, 0x01, 0xc0, 0x00, 0xc0, 0x00, 0x60, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:36:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0xc7, 0x01, 0xfe, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:39:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x7c, 0x00, 0xfe, 0x00, 0xc7, 0x01, 0x83, 0x01, 0x83, 0x01, 0x83, 0x01, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:42:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xf3, 0x00, 0xfb, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, 0x9b, 0x01, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:45:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xe0, 0x01, 0xe0, 0x01, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:48:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0x38, 0x00, 0x7c, 0x00, 0xee, 0x00, 0xc6, 0x00, 0xc6, 0x00, 0xc6, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ./rank.bm:51:4: warning: suggest braces around initialization of subobject [-Wmissing-braces] 0xef, 0x01, 0xef, 0x01, 0xe6, 0x00, 0x76, 0x00, 0x3e, 0x00, 0x1e, 0x00, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { gfx.c:105:36: warning: suggest braces around initialization of subobject [-Wmissing-braces] static XRectangle cliprects[1] = { 0, 0, CARD_WIDTH + 1, 0}; ^~~~~~~~~~~~~~~~~~~~~~~ { } gfx.c:123:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] gfx_init(d, scr) ^ int gfx.c:174:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // 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] make_card_maps(); ^ gfx.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gfx_init(d, scr) ^ gfx.c:257:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:266:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_red_map(bits, width, height) ^ gfx.c:297:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] make_card_maps() ^ int gfx.c:310:3: warning: call to undeclared function 'rot_180'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rot_180((unsigned char *)rank_bits[(int)r], new_bits, ^ 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] new_bits, rank_width, rank_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:321:3: warning: call to undeclared function 'rot_180'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] new_bits, rank_width, rank_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:348:2: warning: call to undeclared function 'flip_bits'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] new_bits, spade_width, spade_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, spade_sm_width, spade_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, heart_width, heart_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, heart_sm_width, heart_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _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] new_bits, heart_sm_width, heart_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, diamond_width, diamond_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _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] new_bits, diamond_sm_width, diamond_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, diamond_sm_width, diamond_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, club_width, club_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 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] new_bits, club_sm_width, club_sm_height); ^~~~~~~~ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:547:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] 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] show_card(tmp); ^ gfx.c:619:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = piles[i]->cards) { ~~~~^~~~~~~~~~~~~~~~~ gfx.c:619:12: note: place parentheses around the assignment to silence this warning if (tmp = piles[i]->cards) { ^ ( ) gfx.c:619:12: note: use '==' to turn this assignment into an equality comparison if (tmp = piles[i]->cards) { ^ == gfx.c:625:6: warning: call to undeclared function 'show_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_card(tmp); ^ gfx.c:660:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = stack[i]->cards) { ~~~~^~~~~~~~~~~~~~~~~ gfx.c:660:12: note: place parentheses around the assignment to silence this warning if (tmp = stack[i]->cards) { ^ ( ) gfx.c:660:12: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] show_list(list, card) ^ gfx.c:763:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:768:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] show_card(card) ^ gfx.c:789:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:791:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] gfx.c:825:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:831:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] 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] 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] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] paint_card(x, y, rank, suit, delta) ^ gfx.c:964:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:977:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] draw_pip(suit, x, y) ^ int gfx.c:1006:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] draw_pip(suit, x, y) ^ gfx.c:1009:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1003:2: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1007:9: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:981:6: note: initialize the variable 'w' to silence this warning int w, h; ^ = 0 gfx.c:1003:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1007:12: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:981:9: note: initialize the variable 'h' to silence this warning int w, h; ^ = 0 gfx.c:1046:28: warning: array subscript is of type 'char' [-Wchar-subscripts] 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] default: ^~~~~~~ gfx.c:1047:9: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1018:6: note: initialize the variable 'w' to silence this warning int w, h; ^ = 0 gfx.c:1043:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1047:12: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1018:9: note: initialize the variable 'h' to silence this warning int w, h; ^ = 0 gfx.c:1081:29: warning: array subscript is of type 'char' [-Wchar-subscripts] 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] default: ^~~~~~~ gfx.c:1082:9: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1056:6: note: initialize the variable 'w' to silence this warning int w, h; ^ = 0 gfx.c:1078:2: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1082:12: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1056:9: note: initialize the variable 'h' to silence this warning 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] 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 C2x [-Wdeprecated-non-prototype] gfx.c:1095:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1100:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] gfx.c:1109:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1147:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] draw_jack(suit, x, y) ^ int gfx.c:1151:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] draw_jack(suit, x, y) ^ gfx.c:1160:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1162:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] draw_queen(suit, x, y) ^ int gfx.c:1166:27: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] draw_queen(suit, x, y) ^ gfx.c:1175:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1177:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] draw_king(suit, x, y) ^ int gfx.c:1181:26: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] draw_king(suit, x, y) ^ gfx.c:1190:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1192:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] draw_rank(x, y, rank, suit) ^ int gfx.c:1200:31: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, rank_map_red[rank], table, cardgc, ^~~~~ gfx.c:1205:37: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, rank_r_map_red[rank], table, cardgc, ^~~~~ gfx.c:1210:27: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, rank_map[rank], table, cardgc, ^~~~~ gfx.c:1215:33: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, rank_r_map[rank], table, cardgc, ^~~~~ gfx.c:1242:29: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, suit_sm_map[suit], table, cardgc, ^~~~~ gfx.c:1247:35: warning: array subscript is of type 'char' [-Wchar-subscripts] XCopyPlane(dpy, suit_sm_r_map[suit], table, cardgc, ^~~~~ gfx.c:1318:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #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 C2x [-Wdeprecated-non-prototype] draw_rank(x, y, rank, suit) ^ gfx.c:1251:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1239:3: warning: variable 'w' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1243:9: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1197:6: note: initialize the variable 'w' to silence this warning int w, h; ^ = 0 gfx.c:1239:3: warning: variable 'h' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ gfx.c:1243:12: note: uninitialized use occurs here 0, 0, w, h, ^ gfx.c:1197:9: note: initialize the variable 'h' to silence this warning 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] show_message(" "); ^ gfx.c:1390:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] gfx.c:1402:1: warning: non-void function does not return a value [-Wreturn-type] } ^ gfx.c:1404:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] gfx.c:1432:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 131 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c spider.c In file included from spider.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from spider.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // spider.c:30:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] card_init() ^ int spider.c:65:5: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_card(tmp, tmp2, LOC_BEFORE, deck); ^ spider.c:75:2: warning: call to undeclared function 'shuffle_cards'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] shuffle_cards(); ^ spider.c:76:1: warning: non-void function does not return a value [-Wreturn-type] } ^ spider.c:87:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] compare(a1, a2) ^ int spider.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spider.c:96:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] remove_all_cards(cache) ^ 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] remove_card(tmp); ^ spider.c:112:4: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] remove_card(tmp); ^ spider.c:120:4: warning: call to undeclared function 'remove_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] remove_card(tmp); ^ spider.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_all_cards(cache) ^ spider.c:126:1: warning: non-void function does not return a value [-Wreturn-type] } ^ spider.c:131:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] shuffle_cards() ^ int spider.c:149:3: warning: call to undeclared function 'add_card'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] make_deck_cache(); ^ spider.c:168:2: warning: call to undeclared function 'init_cache'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] init_cache(); ^ spider.c:169:1: warning: non-void function does not return a value [-Wreturn-type] } ^ spider.c:174:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] 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] 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] show_list(stack[i], stack[i]->cards); ^ spider.c:216:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] flip_card(card, state) ^ spider.c:283:1: warning: non-void function does not return a value [-Wreturn-type] } ^ spider.c:290:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] add_card(new, old, location, list) ^ spider.c:345:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] spider.c:448:1: warning: non-void function does not return a value [-Wreturn-type] } ^ spider.c:480:3: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void move_to_list(); ^ spider.c:578:19: warning: array subscript is of type 'char' [-Wchar-subscripts] return (rnk_names[rank]); ^~~~~ spider.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *rnk_name(); ^ spider.c:592:20: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *rank_name(); ^ spider.c:605:20: warning: array subscript is of type 'char' [-Wchar-subscripts] return (suit_names[suit]); ^~~~~ spider.c:621:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #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 C2x [-Wdeprecated-non-prototype] suit_name(suit) ^ In file included from spider.c:18: ./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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *suit_name(); ^ spider.c:628:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] Bool can_move_to(); ^ spider.c:689:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] best_card_move(card) ^ 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] CardList best_card_move(); ^ 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 C2x [-Wdeprecated-non-prototype] show_message("Empty list"); ^ spider.c:740:4: warning: call to undeclared function 'spider_bell'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] spider_bell(dpy, 0); ^ 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void best_list_move(); ^ spider.c:775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] move_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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void move_to_pile(); ^ spider.c:794:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_sequence(card) ^ spider.c:883:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] show_full_suits() ^ int spider.c:900:12: warning: array subscript is of type 'char' [-Wchar-subscripts] showing[tmp->rank][tmp->suit]++; ^~~~~~~~~~ spider.c:900:23: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] show_message("No suit has all 13 cards showing."); ^ 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 C2x [-Wdeprecated-non-prototype] show_message(buf); ^ spider.c:933:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] show_message(buf); ^ spider.c:989:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] col_locate(list, suit, rank, checksuit) ^ 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 C2x [-Wdeprecated-non-prototype] show_message(buf); ^ spider.c:1093:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (num = col_locate(stack[i], suit, rank, checksuit)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spider.c:1093:11: note: place parentheses around the assignment to silence this warning if (num = col_locate(stack[i], suit, rank, checksuit)) { ^ ( ) spider.c:1093:11: note: use '==' to turn this assignment into an equality comparison if (num = col_locate(stack[i], suit, rank, checksuit)) { ^ == 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] advise_pile_move(list) ^ 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] value_move(card, from, to) ^ 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 C2x [-Wdeprecated-non-prototype] show_message("Its all over."); ^ 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 C2x [-Wdeprecated-non-prototype] show_message("Deal the next hand."); ^ spider.c:1296:4: warning: call to undeclared function 'show_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_list(list, list->cards); ^ 110 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c events.c In file included from events.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from events.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // events.c:119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void redraw_table(); ^ events.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] events.c:614:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 73 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c windows.c In file included from windows.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from windows.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // windows.c:119:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // windows.c:122:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] table_init(win) ^ int windows.c:143:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #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 C2x [-Wdeprecated-non-prototype] table_init(win) ^ windows.c:142:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 8 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c movelog.c In file included from movelog.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from movelog.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // movelog.c:39:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] make_deck_cache() ^ int movelog.c:49:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:51:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] init_cache() ^ int movelog.c:58:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] grow_cache() ^ int movelog.c:72:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ movelog.c:74:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] movelog.c:84:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:86:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] movelog.c:97:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] show_list(stack[i], last_card(stack[i])); ^ movelog.c:160:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:165:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] undo_suit(from, exposed) ^ movelog.c:180:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:182:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] undo_normal(from, dest, num_cards, exposed) ^ movelog.c:198:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] read_sequence(str) ^ movelog.c:260:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_sequence(fp, seq) ^ movelog.c:299:20: warning: array subscript is of type 'char' [-Wchar-subscripts] *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 C2x [-Wdeprecated-non-prototype] int_to_card(val, suit, rank) ^ movelog.c:309:36: warning: array subscript is of type 'char' [-Wchar-subscripts] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] write_human(fp) ^ movelog.c:710:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:712:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] read_selection(buf) ^ movelog.c:730:1: warning: non-void function does not return a value [-Wreturn-type] } ^ movelog.c:732:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] read_file(fname); ^~~~~ * ./globals.h:97:21: note: passing argument to parameter 'fname' here 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 C2x [-Wdeprecated-non-prototype] read_file_or_selection(fname) ^ movelog.c:740:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x [-Wdeprecated-non-prototype] fname = remove_newlines(fname); ^ movelog.c:748:8: warning: incompatible pointer to integer conversion assigning to 'char' from 'char *'; dereference with * [-Wint-conversion] 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] if ((fp = fopen(fname, "r")) == NULL) { ^~~~~ & /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdio.h:145:37: note: passing argument to parameter '__filename' here 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] fname); ^~~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __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 C2x [-Wdeprecated-non-prototype] show_message(buf); ^ movelog.c:779:51: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] (void)sprintf(buf, "Saved game \"%s\" loaded.", fname); ~~ ^~~~~ %c /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __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] (void)sprintf(buf, "Bogus save file \"%s\".", fname); ~~ ^~~~~ %c /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void show_play(); ^ 111 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c util.c In file included from util.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from util.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #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] (void)strncpy(prop, text.ptr, end - start); ^~~~ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' __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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *getenv(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:147:7: note: conflicting prototype is here char *getenv(const char *); ^ util.c:185:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pwd = getpwnam(uname)) { ~~~~^~~~~~~~~~~~~~~~~ util.c:185:12: note: place parentheses around the assignment to silence this warning if (pwd = getpwnam(uname)) { ^ ( ) util.c:185:12: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] char *remove_newlines(); ^ 10 warnings generated. clang -DDATE="\"`date`\"" -c version.c 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 In file included from xaw_ui.c:17: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from xaw_ui.c:18: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // xaw_ui.c:136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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] card_init(); ^ xaw_ui.c:175:13: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'char'; dereference with * [-Wint-conversion] read_file(save_file); ^~~~~~~~~ * ./globals.h:97:21: note: passing argument to parameter 'fname' here 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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] XtAddCallback(button, XtNcallback, confirm_callback, 1); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:455:55: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, confirm_callback, 2); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:456:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xaw_ui.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] flush_message() ^ int xaw_ui.c:484:1: warning: non-void function does not return a value [-Wreturn-type] } ^ xaw_ui.c:512:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 1); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:517:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 2); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:522:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 3); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:527:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 4); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:532:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 5); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:537:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 6); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:542:50: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion] XtAddCallback(button, XtNcallback, change_help, 7); ^ /Users/pbulk/build/games/spider/work/.buildlink/include/X11/Intrinsic.h:1258:1: note: passing argument to parameter here ); ^ xaw_ui.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] extern Widget create_help_popup(); ^ 32 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I. -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXAW -DROUND_CARDS -DHELPDIR="\"/opt/pkg/share/doc/spider\"" -c xaw_stubs.c In file included from xaw_stubs.c:16: ./defs.h:34:7: warning: extra tokens at end of #else directive [-Wextra-tokens] #else DEBUG ^ // ./defs.h:63:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // In file included from xaw_stubs.c:17: ./globals.h:95:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] newgame_handler(), ^ xaw_stubs.c:59:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] help_handler(), ^ xaw_stubs.c:104:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] locate_handler(), ^ xaw_stubs.c:157:10: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] switch ((int) call_data) { ^~~~~~~~~~~~~~~ xaw_stubs.c:161:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } else if (fname = get_selection()) { ~~~~~~^~~~~~~~~~~~~~~~~ xaw_stubs.c:161:21: note: place parentheses around the assignment to silence this warning } else if (fname = get_selection()) { ^ ( ) xaw_stubs.c:161:21: note: use '==' to turn this assignment into an equality comparison } 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 C2x [-Wdeprecated-non-prototype] 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] read_file(fname); ^~~~~ * ./globals.h:97:21: note: passing argument to parameter 'fname' here 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] xaw_key_press(); ^ xaw_stubs.c:305:6: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] locate(fname); ^ 60 warnings generated. rm -f 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 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