=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for xlife-5.0nb5 /usr/bin/touch /usr/pkgsrc/work/math/xlife/work/collect.man /usr/pkgsrc/work/math/xlife/work/lifesearchdumb.man cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c cell.c In file included from cell.c:25: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // cell.c:384:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ cell.c:709:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 3 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c data.c In file included from data.c:30: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // 1 warning generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c file.c In file included from file.c:33: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // file.c:59:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = getenv("LIFEPATH")) ~~~^~~~~~~~~~~~~~~~~~~~ file.c:59:12: note: place parentheses around the assignment to silence this warning if (cp = getenv("LIFEPATH")) ^ ( ) file.c:59:12: note: use '==' to turn this assignment into an equality comparison if (cp = getenv("LIFEPATH")) ^ == file.c:67:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] (cp = strtok((char *)NULL, ":")); ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:67:10: note: place parentheses around the assignment to silence this warning (cp = strtok((char *)NULL, ":")); ^ ( ) file.c:67:10: note: use '==' to turn this assignment into an equality comparison (cp = strtok((char *)NULL, ":")); ^ == file.c:76:29: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned int)' loadscript = (LoadReq *)malloc(sizeof(LoadReq)); ^ file.c:76:29: note: please include the header or explicitly provide a declaration for 'malloc' file.c:160:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (colptr=strchr(filename,':')) (*colptr)='\0'; ~~~~~~^~~~~~~~~~~~~~~~~~~~~ file.c:160:15: note: place parentheses around the assignment to silence this warning if (colptr=strchr(filename,':')) (*colptr)='\0'; ^ ( ) file.c:160:15: note: use '==' to turn this assignment into an equality comparison if (colptr=strchr(filename,':')) (*colptr)='\0'; ^ == file.c:175:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ file.c:222:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] loadqueue->loadtime-tentative.generations); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:228:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (quitload=breakreq()) ~~~~~~~~^~~~~~~~~~~ file.c:228:18: note: place parentheses around the assignment to silence this warning if (quitload=breakreq()) ^ ( ) file.c:228:18: note: use '==' to turn this assignment into an equality comparison if (quitload=breakreq()) ^ == file.c:237:7: warning: implicit declaration of function 'do_loadfile' is invalid in C99 [-Wimplicit-function-declaration] if (!do_loadfile(&loadqueue, &tentative)) ^ file.c:239:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (quitload = (quitload || breakreq())) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:239:15: note: place parentheses around the assignment to silence this warning if (quitload = (quitload || breakreq())) ^ ( ) file.c:239:15: note: use '==' to turn this assignment into an equality comparison if (quitload = (quitload || breakreq())) ^ == file.c:294:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ file.c:342:5: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] free(*loadqueue); ^ file.c:456:37: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] &xoff, &yoff, &rotate, &flip, &loadtime); ^~~~~~~~~ file.c:601:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static get_rot_flip(rxx,rxy,ryx,ryy,rot,flip) ~~~~~~ ^ file.c:616:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ file.c:683:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->hotx-savex, ^~~~~~~~~~~~~~~ file.c:684:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->hoty-savey, ^~~~~~~~~~~~~~~ file.c:685:17: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] rot,flip, ptr->loadtime-mingener); ^~~~~~~~~~~~~~~~~~~~~~ file.c:695:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static add_include_entry(patname,loadtime,hotx,hoty,xx,xy,yx,yy) ~~~~~~ ^ file.c:719:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ file.c:741:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (state = getcell(&ptr->cells, dx, dy)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:741:17: note: place parentheses around the assignment to silence this warning if (state = getcell(&ptr->cells, dx, dy)) ^ ( ) file.c:741:17: note: use '==' to turn this assignment into an equality comparison if (state = getcell(&ptr->cells, dx, dy)) ^ == 21 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c file_misc.c In file included from file_misc.c:24: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // file_misc.c:87:5: warning: implicit declaration of function 'redrawscreen' is invalid in C99 [-Wimplicit-function-declaration] redrawscreen(); ^ 2 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c generate.c In file included from generate.c:34: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // generate.c:682:40: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] "\nEvolving generation %d\n", context->generations); ~~ ^~~~~~~~~~~~~~~~~~~~ %lu generate.c:737:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] cptr, cptr->x - xpos, cptr->y - ypos); ^~~~~~~~~~~~~~ generate.c:737:29: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] cptr, cptr->x - xpos, cptr->y - ypos); ^~~~~~~~~~~~~~ generate.c:759:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:759:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y)) ^ ( ) generate.c:759:12: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y)) ^ == generate.c:767:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:767:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y)) ^ ( ) generate.c:767:12: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y)) ^ == generate.c:775:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x, cptr->y-BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:775:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x, cptr->y-BOXSIZE)) ^ ( ) generate.c:775:12: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x, cptr->y-BOXSIZE)) ^ == generate.c:783:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x, cptr->y+BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:783:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x, cptr->y+BOXSIZE)) ^ ( ) generate.c:783:12: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x, cptr->y+BOXSIZE)) ^ == generate.c:792:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y-BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:792:17: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y-BOXSIZE)) ^ ( ) generate.c:792:17: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y-BOXSIZE)) ^ == generate.c:795:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y-BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:795:17: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y-BOXSIZE)) ^ ( ) generate.c:795:17: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y-BOXSIZE)) ^ == generate.c:798:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y+BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:798:17: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y+BOXSIZE)) ^ ( ) generate.c:798:17: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x+BOXSIZE, cptr->y+BOXSIZE)) ^ == generate.c:801:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y+BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:801:17: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y+BOXSIZE)) ^ ( ) generate.c:801:17: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x-BOXSIZE, cptr->y+BOXSIZE)) ^ == generate.c:868:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (newval = hold[i][j]) ~~~~~~~^~~~~~~~~~~~ generate.c:868:18: note: place parentheses around the assignment to silence this warning if (newval = hold[i][j]) ^ ( ) generate.c:868:18: note: use '==' to turn this assignment into an equality comparison if (newval = hold[i][j]) ^ == generate.c:885:16: warning: implicit declaration of function 'newstate' is invalid in C99 [-Wimplicit-function-declaration] newval = newstate(hold[i][j], ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:578:4: note: expanded from macro 'V_EDGE' (h[0][r] | h[1][r] | h[2][r] | h[3][r] \ ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:578:14: note: expanded from macro 'V_EDGE' (h[0][r] | h[1][r] | h[2][r] | h[3][r] \ ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:578:24: note: expanded from macro 'V_EDGE' (h[0][r] | h[1][r] | h[2][r] | h[3][r] \ ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:578:34: note: expanded from macro 'V_EDGE' (h[0][r] | h[1][r] | h[2][r] | h[3][r] \ ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:579:5: note: expanded from macro 'V_EDGE' | h[4][r] | h[5][r] | h[6][r] | h[7][r]) ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:579:15: note: expanded from macro 'V_EDGE' | h[4][r] | h[5][r] | h[6][r] | h[7][r]) ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:579:25: note: expanded from macro 'V_EDGE' | h[4][r] | h[5][r] | h[6][r] | h[7][r]) ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:694:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (V_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:579:35: note: expanded from macro 'V_EDGE' | h[4][r] | h[5][r] | h[6][r] | h[7][r]) ^ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:1097:2: warning: implicit declaration of function 'make_transition' is invalid in C99 [-Wimplicit-function-declaration] make_transition(sofar[0],sofar[1],sofar[2],sofar[3],sofar[4],sofar[5]); ^ generate.c:1189:15: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] edebug = atoi(buf + 6); ^ generate.c:1276:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // generate.c:1315:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // 26 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c gentab.c In file included from gentab.c:23: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // 1 warning generated. sed help.h cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c help.c In file included from help.c:23: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // help.c:52:5: warning: implicit declaration of function 'redrawscreen' is invalid in C99 [-Wimplicit-function-declaration] redrawscreen(); ^ 2 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c key.c In file included from key.c:23: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // key.c:46:6: warning: implicit declaration of function 'Button' is invalid in C99 [-Wimplicit-function-declaration] Button(); ^ key.c:106:28: warning: array index 255 is past the end of the array (which contains 255 elements) [-Warray-bounds] if (buflen > INPBUFLEN) inpbuf[INPBUFLEN] = 0; ^ ~~~~~~~~~ ./data.h:101:1: note: array 'inpbuf' declared here GLOBAL char inpbuf[INPBUFLEN]; ^ ./defs.h:175:16: note: expanded from macro 'GLOBAL' #define GLOBAL extern ^ key.c:140:7: warning: implicit declaration of function 'isdigit' is invalid in C99 [-Wimplicit-function-declaration] || !is_state(s) ^ ./defs.h:121:21: note: expanded from macro 'is_state' #define is_state(c) isdigit(c) /* is char a valid state indicator? */ ^ key.c:147:16: warning: implicit declaration of function 'newstate' is invalid in C99 [-Wimplicit-function-declaration] if ((ns = newstate(stoi(s), stoi(n1), stoi(n2), stoi(n3), stoi(n4))) == BADSTATE) ^ key.c:173:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (err = parse_rule(outbuf)) ~~~~^~~~~~~~~~~~~~~~~~~~ key.c:173:10: note: place parentheses around the assignment to silence this warning if (err = parse_rule(outbuf)) ^ ( ) key.c:173:10: note: use '==' to turn this assignment into an equality comparison if (err = parse_rule(outbuf)) ^ == key.c:206:12: warning: implicit declaration of function 'make_transition' is invalid in C99 [-Wimplicit-function-declaration] (void) make_transition(s, n1, n2, n3, n4, stoi(ns)); ^ 7 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c main.c In file included from main.c:32: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // main.c:85:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.c:535:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c:598:5: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &hints.width,&hints.height); ^~~~~~~~~~~~ /usr/pkgsrc/work/math/xlife/work/.buildlink/include/X11/Xlib.h:2873:37: note: passing argument to parameter here unsigned int* /* width_return */, ^ main.c:598:18: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &hints.width,&hints.height); ^~~~~~~~~~~~~ /usr/pkgsrc/work/math/xlife/work/.buildlink/include/X11/Xlib.h:2875:1: note: passing argument to parameter here ); ^ main.c:673:54: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cursor_data = XCreateBitmapFromData(disp, mainw, cursor_data_bits, cursor_data_width, cursor_data_height); ^~~~~~~~~~~~~~~~ /usr/pkgsrc/work/math/xlife/work/.buildlink/include/X11/Xlib.h:1619:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:674:54: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cursor_mask = XCreateBitmapFromData(disp, mainw, cursor_mask_bits, cursor_mask_width, cursor_mask_height); ^~~~~~~~~~~~~~~~ /usr/pkgsrc/work/math/xlife/work/.buildlink/include/X11/Xlib.h:1619:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 7 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c tentative.c In file included from tentative.c:23: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // tentative.c:40:7: warning: use of unary operator that may be intended as compound assignment (-=) t =- tyx; tyx = txx; txx = t; ^~ tentative.c:41:7: warning: use of unary operator that may be intended as compound assignment (-=) t =- tyy; tyy = txy; txy = t; ^~ tentative.c:51:9: warning: use of unary operator that may be intended as compound assignment (-=) tyx =- tyx; ^~ tentative.c:52:9: warning: use of unary operator that may be intended as compound assignment (-=) tyy =- tyy; ^~ tentative.c:96:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (state = getcell(&ptr->cells, dx, dy)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tentative.c:96:18: note: place parentheses around the assignment to silence this warning else if (state = getcell(&ptr->cells, dx, dy)) ^ ( ) tentative.c:96:18: note: use '==' to turn this assignment into an equality comparison else if (state = getcell(&ptr->cells, dx, dy)) ^ == 6 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c tile.c In file included from tile.c:65: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // tile.c:180:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // tile.c:185:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // tile.c:225:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // tile.c:247:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // tile.c:264:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif PROF ^ // tile.c:285:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = findtile(context, hx, hy, hv)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:285:13: note: place parentheses around the assignment to silence this warning if (ptr = findtile(context, hx, hy, hv)) ^ ( ) tile.c:285:13: note: use '==' to turn this assignment into an equality comparison if (ptr = findtile(context, hx, hy, hv)) ^ == tile.c:304:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = findtile(context, x, y, hv)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:304:13: note: place parentheses around the assignment to silence this warning if (ptr = findtile(context, x, y, hv)) ^ ( ) tile.c:304:13: note: use '==' to turn this assignment into an equality comparison if (ptr = findtile(context, x, y, hv)) ^ == tile.c:650:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&ptr->cells, dx, dy)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:650:12: note: place parentheses around the assignment to silence this warning if (val = getcell(&ptr->cells, dx, dy)) ^ ( ) tile.c:650:12: note: use '==' to turn this assignment into an equality comparison if (val = getcell(&ptr->cells, dx, dy)) ^ == tile.c:654:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx, ptr->y+dy, val); ^~~~~~~~~ tile.c:654:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx, ptr->y+dy, val); ^~~~~~~~~ tile.c:658:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] "%d %d\n", ptr->x+dx,ptr->y+dy); ~~ ^~~~~~~~~ %lu tile.c:658:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] "%d %d\n", ptr->x+dx,ptr->y+dy); ~~ ^~~~~~~~~ %lu tile.c:655:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:671:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:681:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&ptr->cells, dx, dy)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:681:12: note: place parentheses around the assignment to silence this warning if (val = getcell(&ptr->cells, dx, dy)) ^ ( ) tile.c:681:12: note: use '==' to turn this assignment into an equality comparison if (val = getcell(&ptr->cells, dx, dy)) ^ == tile.c:685:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx-xmin, ptr->y+dy-ymin, ^~~~~~~~~~~~~~ tile.c:685:29: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx-xmin, ptr->y+dy-ymin, ^~~~~~~~~~~~~~ tile.c:690:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx-xmin, ptr->y+dy-ymin); ^~~~~~~~~~~~~~ tile.c:690:29: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ptr->x+dx-xmin, ptr->y+dy-ymin); ^~~~~~~~~~~~~~ tile.c:687:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:704:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = lookcell(pp, x, y)) ~~~~^~~~~~~~~~~~~~~~~~~~ tile.c:704:11: note: place parentheses around the assignment to silence this warning if (val = lookcell(pp, x, y)) ^ ( ) tile.c:704:11: note: use '==' to turn this assignment into an equality comparison if (val = lookcell(pp, x, y)) ^ == 22 warnings generated. cc -O -I/usr/pkg/include -I /usr/X11R7/include -DLIFEDIR=\"/usr/pkg/share/xlife/\" -I/usr/X11R7/include -c utils.c In file included from utils.c:24: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // utils.c:38:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf(stderr, s); ^ utils.c:57:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ utils.c:90:19: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] sc = (1 << scale -1) - (scale > 2); ~~ ~~~~~~^~ utils.c:90:19: note: place parentheses around the '-' expression to silence this warning sc = (1 << scale -1) - (scale > 2); ^ ( ) utils.c:101:19: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] sc = (1 << scale -1) - 1; ~~ ~~~~~~^~ utils.c:101:19: note: place parentheses around the '-' expression to silence this warning sc = (1 << scale -1) - 1; ^ ( ) utils.c:177:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] x - xorigin, y - yorigin, ^~~~~~~~~~~ utils.c:177:20: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] x - xorigin, y - yorigin, ^~~~~~~~~~~ utils.c:191:14: warning: implicit declaration of function 'toupper' is invalid in C99 [-Wimplicit-function-declaration] buf[0] = toupper(buf[0]); ^ utils.c:240:24: warning: format specifies type 'int *' but the argument has type 'u_long *' (aka 'unsigned long *') [-Wformat] sscanf(outbuf,"%d",&count); ~~ ^~~~~~ %ld utils.c:285:52: warning: incompatible pointer types passing 'unsigned long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] leader, pw->pw_name, pw->pw_gecos, machine,ctime(&timeval)); ^~~~~~~~ 10 warnings generated. bmake: don't know how to make /usr/pkg/lib/libXaw.a. Stop bmake: stopped in /usr/pkgsrc/work/math/xlife/work *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/math/xlife *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/math/xlife