=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for spider-1.1nb3 cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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 ^ // gfx.c:123:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] gfx_init(d, scr) ^~~~~~~~ gfx.c:174:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // gfx.c:256:2: warning: implicit declaration of function 'make_card_maps' is invalid in C99 [-Wimplicit-function-declaration] make_card_maps(); ^ gfx.c:257:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:297:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] make_card_maps() ^~~~~~~~~~~~~~ gfx.c:310:3: warning: implicit declaration of function 'rot_180' is invalid in C99 [-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 with different sign [-Wpointer-sign] new_bits, rank_width, rank_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:330:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] new_bits, rank_width, rank_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:348:2: warning: implicit declaration of function 'flip_bits' is invalid in C99 [-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 with different sign [-Wpointer-sign] new_bits, spade_width, spade_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, spade_sm_width, spade_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, heart_width, heart_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, heart_sm_width, heart_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, heart_sm_width, heart_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, diamond_width, diamond_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, diamond_sm_width, diamond_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, diamond_sm_width, diamond_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, club_width, club_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619: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 with different sign [-Wpointer-sign] new_bits, club_sm_width, club_sm_height); ^~~~~~~~ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Xlib.h:1619:29: note: passing argument to parameter here _Xconst char* /* data */, ^ gfx.c:547:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:599:4: warning: implicit declaration of function 'show_card' is invalid in C99 [-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: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:720:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] show_list(list, card) ^~~~~~~~~ gfx.c:763:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:768:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] show_card(card) ^~~~~~~~~ gfx.c:777:3: warning: implicit declaration of function 'paint_card' is invalid in C99 [-Wimplicit-function-declaration] paint_card(card->x, card->y, card->rank, card->suit, delta); ^ gfx.c:782:4: warning: implicit declaration of function 'paint_cardback' is invalid in C99 [-Wimplicit-function-declaration] paint_cardback(card->x, card->y, CARD_HEIGHT); ^ gfx.c:789:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:791:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] paint_cardback(x, y, delta) ^~~~~~~~~~~~~~ gfx.c:825:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:831:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] paint_card(x, y, rank, suit, delta) ^~~~~~~~~~ gfx.c:903:3: warning: implicit declaration of function 'draw_king' is invalid in C99 [-Wimplicit-function-declaration] draw_king(suit, x, y); ^ gfx.c:906:3: warning: implicit declaration of function 'draw_queen' is invalid in C99 [-Wimplicit-function-declaration] draw_queen(suit, x, y); ^ gfx.c:909:3: warning: implicit declaration of function 'draw_jack' is invalid in C99 [-Wimplicit-function-declaration] draw_jack(suit, x, y); ^ gfx.c:913:3: warning: implicit declaration of function 'draw_pip' is invalid in C99 [-Wimplicit-function-declaration] draw_pip(suit, MID_CARD_X + x, CARD_TEN_Y1 + y); ^ gfx.c:937:3: warning: implicit declaration of function 'draw_four_pips' is invalid in C99 [-Wimplicit-function-declaration] draw_four_pips(suit, x, y); ^ gfx.c:944:3: warning: implicit declaration of function 'draw_two_pips' is invalid in C99 [-Wimplicit-function-declaration] draw_two_pips(suit, x, y); ^ gfx.c:953:2: warning: implicit declaration of function 'draw_rank' is invalid in C99 [-Wimplicit-function-declaration] draw_rank(x, y, rank, suit); ^ gfx.c:964:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:977:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_pip(suit, x, y) ^~~~~~~~ gfx.c:1009:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1089:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_two_pips(suit, x, y) ^~~~~~~~~~~~~ gfx.c:1095:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1100:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_four_pips(suit, x, y) ^~~~~~~~~~~~~~ gfx.c:1109:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1147:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_jack(suit, x, y) ^~~~~~~~~ gfx.c:1160:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1162:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_queen(suit, x, y) ^~~~~~~~~~ gfx.c:1175:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1177:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_king(suit, x, y) ^~~~~~~~~ gfx.c:1190:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1192:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] draw_rank(x, y, rank, suit) ^~~~~~~~~ gfx.c:1318:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // gfx.c:1251:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1390:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] flip_bits(src, dst, W, H) ^~~~~~~~~ gfx.c:1402:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ gfx.c:1404:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] rot_180(src, dst, W, H) ^~~~~~~ gfx.c:1432:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 62 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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' [-Wimplicit-int] card_init() ^~~~~~~~~ spider.c:65:5: warning: implicit declaration of function 'add_card' is invalid in C99 [-Wimplicit-function-declaration] add_card(tmp, tmp2, LOC_BEFORE, deck); ^ spider.c:75:2: warning: implicit declaration of function 'shuffle_cards' is invalid in C99 [-Wimplicit-function-declaration] shuffle_cards(); ^ spider.c:76:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:87:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] compare(a1, a2) ^~~~~~~ spider.c:96:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] remove_all_cards(cache) ^~~~~~~~~~~~~~~~ spider.c:105:3: warning: implicit declaration of function 'remove_card' is invalid in C99 [-Wimplicit-function-declaration] remove_card(tmp); ^ spider.c:126:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:131:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] shuffle_cards() ^~~~~~~~~~~~~ spider.c:153:2: warning: implicit declaration of function 'make_deck_cache' is invalid in C99 [-Wimplicit-function-declaration] make_deck_cache(); ^ spider.c:168:2: warning: implicit declaration of function 'init_cache' is invalid in C99 [-Wimplicit-function-declaration] init_cache(); ^ spider.c:169:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:174:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] deal_cards() ^~~~~~~~~~ spider.c:214:3: warning: implicit declaration of function 'show_list' is invalid in C99 [-Wimplicit-function-declaration] show_list(stack[i], stack[i]->cards); ^ spider.c:216:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:232:4: warning: implicit declaration of function 'spider_bell' is invalid in C99 [-Wimplicit-function-declaration] spider_bell(dpy, 0); ^ spider.c:252:4: warning: implicit declaration of function 'show_card' is invalid in C99 [-Wimplicit-function-declaration] show_card(tmp); ^ spider.c:265:3: warning: implicit declaration of function 'record' is invalid in C99 [-Wimplicit-function-declaration] record (0, 0, 0, True); ^ spider.c:277:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] flip_card(card, state) ^~~~~~~~~ spider.c:283:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:290:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] add_card(new, old, location, list) ^~~~~~~~ spider.c:345:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:431:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] remove_card(card) ^~~~~~~~~~~ spider.c:448:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ spider.c:621:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif DEBUG ^ // spider.c:883:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] show_full_suits() ^~~~~~~~~~~~~~~ spider.c:933:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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)) { ^ == 31 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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:237:4: warning: implicit declaration of function 'spider_bell' is invalid in C99 [-Wimplicit-function-declaration] spider_bell(dpy, 0); ^ events.c:249:4: warning: implicit declaration of function 'show_full_suits' is invalid in C99 [-Wimplicit-function-declaration] show_full_suits(); ^ events.c:275:5: warning: implicit declaration of function 'deal_cards' is invalid in C99 [-Wimplicit-function-declaration] deal_cards(); ^ events.c:395:4: warning: implicit declaration of function 'read_file_or_selection' is invalid in C99 [-Wimplicit-function-declaration] read_file_or_selection(fname); ^ events.c:413:4: warning: implicit declaration of function 'compute_score' is invalid in C99 [-Wimplicit-function-declaration] compute_score()); ^ events.c:420:3: warning: implicit declaration of function 'init_cache' is invalid in C99 [-Wimplicit-function-declaration] init_cache(); /* reset move cache */ ^ events.c:568:2: warning: implicit declaration of function 'flush_message' is invalid in C99 [-Wimplicit-function-declaration] flush_message(); ^ events.c:608:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] spider_bell(d, level) ^~~~~~~~~~~ events.c:614:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 12 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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' [-Wimplicit-int] table_init(win) ^~~~~~~~~~ windows.c:143:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif KITLESS ^ // windows.c:142:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 7 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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' [-Wimplicit-int] make_deck_cache() ^~~~~~~~~~~~~~~ movelog.c:49:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:51:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] init_cache() ^~~~~~~~~~ movelog.c:58:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] grow_cache() ^~~~~~~~~~ movelog.c:72:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ movelog.c:74:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] record(from, dest, num_cards, exposed) ^~~~~~ movelog.c:84:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:86:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] unencode(val, from, dest, num_cards, exposed) ^~~~~~~~ movelog.c:97:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:107:3: warning: implicit declaration of function 'spider_bell' is invalid in C99 [-Wimplicit-function-declaration] spider_bell(dpy, 0); ^ movelog.c:119:3: warning: implicit declaration of function 'undo_deal' is invalid in C99 [-Wimplicit-function-declaration] undo_deal(); ^ movelog.c:129:4: warning: implicit declaration of function 'undo_suit' is invalid in C99 [-Wimplicit-function-declaration] undo_suit(from - 1, exposed); ^ movelog.c:131:4: warning: implicit declaration of function 'undo_normal' is invalid in C99 [-Wimplicit-function-declaration] undo_normal(from - 1, dest - 1, num_cards, exposed); ^ movelog.c:139:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] undo_deal() ^~~~~~~~~ movelog.c:146:3: warning: implicit declaration of function 'remove_card' is invalid in C99 [-Wimplicit-function-declaration] remove_card(tmp); ^ movelog.c:147:3: warning: implicit declaration of function 'add_card' is invalid in C99 [-Wimplicit-function-declaration] add_card(tmp, deck->cards, LOC_BEFORE, deck); ^ movelog.c:148:3: warning: implicit declaration of function 'flip_card' is invalid in C99 [-Wimplicit-function-declaration] flip_card(tmp, Facedown); ^ movelog.c:153:4: warning: implicit declaration of function 'show_list' is invalid in C99 [-Wimplicit-function-declaration] show_list(stack[i], stack[i]->cards); ^ movelog.c:160:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:165:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] undo_suit(from, exposed) ^~~~~~~~~ movelog.c:180:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:182:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] undo_normal(from, dest, num_cards, exposed) ^~~~~~~~~~~ movelog.c:198:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:373:2: warning: implicit declaration of function 'remove_all_cards' is invalid in C99 [-Wimplicit-function-declaration] remove_all_cards(cache); ^ movelog.c:665:2: warning: implicit declaration of function 'write_human' is invalid in C99 [-Wimplicit-function-declaration] write_human(fp); ^ movelog.c:671:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] write_human(fp) ^~~~~~~~~~~ movelog.c:710:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:712:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] read_selection(buf) ^~~~~~~~~~~~~~ movelog.c:730:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ movelog.c:732:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] read_file_or_selection(fname) ^~~~~~~~~~~~~~~~~~~~~~ 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:740:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 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) { ^~~~~ & /usr/include/stdio.h:230:37: note: passing argument to parameter here FILE *fopen(const char * __restrict , const char * __restrict); ^ movelog.c:751:5: warning: format specifies type 'char *' but the argument has type 'char' [-Wformat] fname); ^~~~~ 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 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 movelog.c:842:2: warning: implicit declaration of function 'deal_cards' is invalid in C99 [-Wimplicit-function-declaration] deal_cards(); ^ movelog.c:950:9: warning: implicit declaration of function 'show_play_events' is invalid in C99 [-Wimplicit-function-declaration] (void) show_play_events(); ^ 43 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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 with different sign [-Wpointer-sign] (void)strncpy(prop, text.ptr, end - start); ^~~~ /usr/include/string.h:64:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ 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)) { ^ == 5 warnings generated. cc -DDATE="\"`date`\"" -c version.c cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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:145:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ xaw_ui.c:152:10: warning: implicit declaration of function 'xaw_init' is invalid in C99 [-Wimplicit-function-declaration] nargs = xaw_init(argc, argv); ^ xaw_ui.c:171:2: warning: implicit declaration of function 'table_init' is invalid in C99 [-Wimplicit-function-declaration] table_init(XtWindow(table_w)); ^ xaw_ui.c:172:2: warning: implicit declaration of function 'card_init' is invalid in C99 [-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:182:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] xaw_init(argc, argv) ^~~~~~~~ xaw_ui.c:243:2: warning: implicit declaration of function 'gfx_init' is invalid in C99 [-Wimplicit-function-declaration] gfx_init(XtDisplay(toplevel), scr); ^ xaw_ui.c:416:2: warning: implicit declaration of function 'create_confirmer' is invalid in C99 [-Wimplicit-function-declaration] create_confirmer(); ^ xaw_ui.c:421:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] create_confirmer() ^~~~~~~~~~~~~~~~ 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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246:1: note: passing argument to parameter here ); ^ xaw_ui.c:456:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ xaw_ui.c:474:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] flush_message() ^~~~~~~~~~~~~ xaw_ui.c:484:1: warning: control reaches end of non-void function [-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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246: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); ^ /usr/pkgsrc/work/games/spider/work/.buildlink/include/X11/Intrinsic.h:1246:1: note: passing argument to parameter here ); ^ 24 warnings generated. cc -O -I. -I/usr/pkg/include -I /usr/X11R7/include -DXAW -DROUND_CARDS -DHELPDIR="\"/usr/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: implicit declaration of function 'compute_score' is invalid in C99 [-Wimplicit-function-declaration] compute_score()); ^ xaw_stubs.c:47:6: warning: implicit declaration of function 'newgame_confirmer' is invalid in C99 [-Wimplicit-function-declaration] if (newgame_confirmer()) { ^ xaw_stubs.c:49:3: warning: implicit declaration of function 'shuffle_cards' is invalid in C99 [-Wimplicit-function-declaration] shuffle_cards(); ^ xaw_stubs.c:65:4: warning: implicit declaration of function 'init_cache' is invalid in C99 [-Wimplicit-function-declaration] init_cache(); /* reset move cache */ ^ 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: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:177:5: warning: implicit declaration of function 'read_selection' is invalid in C99 [-Wimplicit-function-declaration] read_selection(fname); ^ 10 warnings generated. bmake: don't know how to make /usr/pkg/lib/libXaw.a. Stop bmake: stopped in /usr/pkgsrc/work/games/spider/work/spider *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/games/spider *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/spider