WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xlife-5.0nb6 /usr/bin/touch /Users/pbulk/build/math/xlife/work/collect.man /Users/pbulk/build/math/xlife/work/lifesearchdumb.man clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:95:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void displayline(line,x,y,oline) ^ cell.c:384:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ cell.c:421:12: warning: unused variable 'yy' [-Wunused-variable] int sc,yy; ^ cell.c:415:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void trdisplayline(line,x,y,oline) ^ cell.c:709:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 6 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:20: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (cp = getenv("LIFEPATH")) ^ 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: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] loadscript = (LoadReq *)malloc(sizeof(LoadReq)); ^ file.c:76:29: note: include the header or explicitly provide a declaration for 'malloc' file.c:87:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *checktilda(stng) ^ file.c:118:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *addlifeext(buf) ^ 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:152:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *seppatdir(filename,filefield) ^ file.c:175:1: warning: non-void function does not return a value [-Wreturn-type] } ^ file.c:222:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] loadqueue->loadtime-tentative.generations); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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__) ^~~~~~~~~~~ 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: call to undeclared function 'do_loadfile'; ISO C99 and later do not support implicit function declarations [-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:196:10: warning: unused variable 'errstr' [-Wunused-variable] char errstr[80],thispat[PATNAMESIZ],badpat[PATNAMESIZ], *cp; ^ file.c:257:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int add_loadreq(loadqueue, loadtime, patname, relpath, ^ In file included from file.c:34: ./data.h:27: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] GLOBAL int add_loadreq(); ^ file.c:294:1: warning: non-void function does not return a value [-Wreturn-type] } ^ file.c:296:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void parse_patname(patname,patfield) ^ file.c:342:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(*loadqueue); ^ file.c:342:5: note: include the header or explicitly provide a declaration for 'free' file.c:456:37: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] &xoff, &yoff, &rotate, &flip, &loadtime); ^~~~~~~~~ file.c:318:9: warning: variable 'relpath' set but not used [-Wunused-but-set-variable] int relpath, rxx, rxy, ryx, ryy; ^ file.c:312:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int do_loadfile(loadqueue, context) ^ file.c:601:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static get_rot_flip(rxx,rxy,ryx,ryy,rot,flip) ~~~~~~ ^ int file.c:601:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file.c:616:1: warning: non-void function does not return a value [-Wreturn-type] } ^ file.c:683:7: warning: format specifies type 'int' but the argument has type 'coord_t' (aka 'unsigned long') [-Wformat] ptr->hotx-savex, ^~~~~~~~~~~~~~~ file.c:684:7: warning: format specifies type 'int' but the argument has type 'coord_t' (aka '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:638:18: warning: unused variable 'ans' [-Wunused-variable] static char *ans; ^ file.c:695:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static add_include_entry(patname,loadtime,hotx,hoty,xx,xy,yx,yy) ~~~~~~ ^ int file.c:695:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file.c:719:1: warning: non-void function does not return a value [-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)) ^ == file.c:723:16: warning: unused variable 'nptr' [-Wunused-variable] tile *ptr,*nptr; ^ file.c:882:7: warning: unused variable 'outbuf' [-Wunused-variable] char outbuf[80]; ^ 36 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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: call to undeclared function 'redrawscreen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] redrawscreen(); ^ 2 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:39:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] static float payoffs[2][2] = {1, 0, 0, 0}; ^~~~ { } generate.c:39:37: warning: suggest braces around initialization of subobject [-Wmissing-braces] static float payoffs[2][2] = {1, 0, 0, 0}; ^~~~ { } generate.c:59:17: warning: unused variable 'tptr' [-Wunused-variable] tile *cptr,*tptr,*cptrup,*cptrdn,*cptrlf,*cptrrt; ^ 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 'coord_t' (aka 'unsigned long') [-Wformat] cptr, cptr->x - xpos, cptr->y - ypos); ^~~~~~~~~~~~~~ generate.c:737:29: warning: format specifies type 'int' but the argument has type 'coord_t' (aka '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: call to undeclared function 'newstate'; ISO C99 and later do not support implicit function declarations [-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:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:575:4: note: expanded from macro 'H_EDGE' (h[r][0] | h[r][1] | h[r][2] | h[r][3] \ ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:575:14: note: expanded from macro 'H_EDGE' (h[r][0] | h[r][1] | h[r][2] | h[r][3] \ ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:575:24: note: expanded from macro 'H_EDGE' (h[r][0] | h[r][1] | h[r][2] | h[r][3] \ ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:575:34: note: expanded from macro 'H_EDGE' (h[r][0] | h[r][1] | h[r][2] | h[r][3] \ ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:576:5: note: expanded from macro 'H_EDGE' | h[r][4] | h[r][5] | h[r][6] | h[r][7]) ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:576:15: note: expanded from macro 'H_EDGE' | h[r][4] | h[r][5] | h[r][6] | h[r][7]) ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:576:25: note: expanded from macro 'H_EDGE' | h[r][4] | h[r][5] | h[r][6] | h[r][7]) ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:700:13: warning: array index 8 is past the end of the array (which contains 8 elements) [-Warray-bounds] if (H_EDGE(cptr->cells.nstate.ocell, BOXSIZE)) ^ ~~~~~~~ generate.c:576:35: note: expanded from macro 'H_EDGE' | h[r][4] | h[r][5] | h[r][6] | h[r][7]) ^ ~ ./tile.h:42:2: note: array 'ocell' declared here cell_t ocell[BOXSIZE][BOXSIZE]; ^ generate.c:1083:52: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] if ((err = parse_recurse(ep + 1, ecount + 1)) == E_NOCLOSE ^ ~~~~~~~~~ generate.c:1084:11: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] || err == E_BADCHAR || err == E_WRONGNUM) ^ ~~~~~~~~~ generate.c:1084:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] || err == E_BADCHAR || err == E_WRONGNUM) ^ ~~~~~~~~~~ generate.c:1097:2: warning: call to undeclared function 'make_transition'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] make_transition(sofar[0],sofar[1],sofar[2],sofar[3],sofar[4],sofar[5]); ^ generate.c:1049:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *parse_recurse(buf, ecount) ^ generate.c:1111:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int make_transition(s, a, b, c, d, t) ^ generate.c:1136:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int newstate(s, a, b, c, d) ^ generate.c:1149:39: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] if ((err = parse_recurse(buf, 0)) == E_NOCLOSE ^ ~~~~~~~~~ generate.c:1150:10: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] || err == E_WRONGNUM || err == E_BADCHAR) ^ ~~~~~~~~~~ generate.c:1150:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] || err == E_WRONGNUM || err == E_BADCHAR) ^ ~~~~~~~~~ generate.c:1189:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-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 ^ // 46 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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: call to undeclared function 'Button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Button(); ^ key.c:52:26: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoExpose(ClassifyWin(event.xexpose.window)); ^ key.c:79:24: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch(ClassifyWin(event.xkey.window)) ^ 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: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-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:140:7: note: include the header or explicitly provide a declaration for 'isdigit' ./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: call to undeclared function 'newstate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((ns = newstate(stoi(s), stoi(n1), stoi(n2), stoi(n3), stoi(n4))) == BADSTATE) ^ key.c:173:22: warning: passing arguments to 'parse_rule' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (err = parse_rule(outbuf)) ^ 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: call to undeclared function 'make_transition'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) make_transition(s, n1, n2, n3, n4, stoi(ns)); ^ 10 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:40: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 *); ^ main.c:85:1: warning: non-void function does not return a value [-Wreturn-type] } ^ main.c:125:20: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ClassifyWin(event.xmotion.window) == LIFEWIN) ^ main.c:178:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int DoKeySymIn(keysym) ^ main.c:257:10: warning: unused variable 'pstring' [-Wunused-variable] char pstring[50]; ^ main.c:254:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void DoKeyIn(kbuf) ^ main.c:474:20: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ClassifyWin(event.xbutton.window) == INPUTWIN) ^ main.c:478:20: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ClassifyWin(event.xbutton.window) == LIFEWIN) ^ main.c:530:20: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (ClassifyWin(event.xbutton.window) == LIFEWIN ^ main.c:535:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int 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); ^~~~~~~~~~~~ /Users/pbulk/build/math/xlife/work/.buildlink/include/X11/Xlib.h:2871: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); ^~~~~~~~~~~~~ /Users/pbulk/build/math/xlife/work/.buildlink/include/X11/Xlib.h:2873: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 where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] cursor_data = XCreateBitmapFromData(disp, mainw, cursor_data_bits, cursor_data_width, cursor_data_height); ^~~~~~~~~~~~~~~~ /Users/pbulk/build/math/xlife/work/.buildlink/include/X11/Xlib.h:1603: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 where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] cursor_mask = XCreateBitmapFromData(disp, mainw, cursor_mask_bits, cursor_mask_width, cursor_mask_height); ^~~~~~~~~~~~~~~~ /Users/pbulk/build/math/xlife/work/.buildlink/include/X11/Xlib.h:1603:29: note: passing argument to parameter here _Xconst char* /* data */, ^ main.c:750:20: warning: passing arguments to 'add_loadreq' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_loadreq(&loadqueue,0,initpat,0, ^ main.c:793:23: warning: passing arguments to 'ClassifyWin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoExpose(ClassifyWin(event.xexpose.window)); ^ main.c:546:24: warning: unused variable 'dummy' [-Wunused-variable] XColor white,black,dummy; ^ main.c:535: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) ^ 19 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:49:9: warning: unused variable 't' [-Wunused-variable] int t; ^ 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)) ^ == 7 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:170:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tile *createtile(context, x,y, hv) ^ 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:216:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static tile *findtile(context, x, y, hv) ^ 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:414:9: warning: variable 'state' is uninitialized when used here [-Wuninitialized] if (state==HIDE) ^~~~~ tile.c:411:14: note: initialize the variable 'state' to silence this warning int state; ^ = 0 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 'coord_t' (aka 'unsigned long') [-Wformat] ptr->x+dx, ptr->y+dy, val); ^~~~~~~~~ tile.c:654:24: warning: format specifies type 'int' but the argument has type 'coord_t' (aka 'unsigned long') [-Wformat] ptr->x+dx, ptr->y+dy, val); ^~~~~~~~~ tile.c:658:24: warning: format specifies type 'int' but the argument has type 'coord_t' (aka '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 'coord_t' (aka '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 'coord_t' (aka '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 'coord_t' (aka '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 'coord_t' (aka '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 'coord_t' (aka '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)) ^ == tile.c:701:9: warning: unused variable 'ptr' [-Wunused-variable] tile *ptr; ^ 26 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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:38:21: note: treat the string as an argument to avoid this fprintf(stderr, s); ^ "%s", utils.c:42:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ClassifyWin(win) ^ In file included from utils.c:24: In file included from ./defs.h:178: ./data.h:72: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] GLOBAL int ClassifyWin(); ^ utils.c:57:1: warning: non-void function does not return a value in all control paths [-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 'coord_t' (aka 'unsigned long') [-Wformat] x - xorigin, y - yorigin, ^~~~~~~~~~~ /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__) ^~~~~~~~~~~ utils.c:177:20: warning: format specifies type 'int' but the argument has type 'coord_t' (aka 'unsigned long') [-Wformat] x - xorigin, y - yorigin, ^~~~~~~~~~~ /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__) ^~~~~~~~~~~ utils.c:191:14: warning: call to undeclared library function 'toupper' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] buf[0] = toupper(buf[0]); ^ utils.c:191:14: note: include the header or explicitly provide a declaration for 'toupper' 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:279: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 previous declaration [-Wdeprecated-non-prototype] extern char *ctime(); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/time.h:110:7: note: conflicting prototype is here char *ctime(const time_t *); ^ utils.c:285:52: warning: passing 'unsigned long *' to parameter of type 'const time_t *' (aka 'const long *') converts between pointers to integer types with different sign [-Wpointer-sign] leader, pw->pw_name, pw->pw_gecos, machine,ctime(&timeval)); ^~~~~~~~ utils.c:292:6: warning: unused variable 'j' [-Wunused-variable] int j, left; ^ 14 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c lifeconv.c lifeconv.c:51:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void mark(x, y) ^ lifeconv.c:131:15: 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 *strchr(); ^ lifeconv.c:178:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ lifeconv.c:69:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int cvimage(name, ifp, mode, ofp) ^ lifeconv.c:228:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int lifeconv.c:251:13: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] (void) mktemp(tmpfile); ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/stdlib.h:210:1: note: 'mktemp' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.") ^ /Applications/Xcode-15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ lifeconv.c:259:8: warning: unused variable 'oldname' [-Wunused-variable] char oldname[BUFSIZ]; ^ lifeconv.c:228: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) ^ 8 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c collect.c In file included from collect.c:31: ./defs.h:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif __GNUCC__ ^ // collect.c:51:20: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (cp = getenv("LIFEPATH")) ^ collect.c:51:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = getenv("LIFEPATH")) ~~~^~~~~~~~~~~~~~~~~~~~ collect.c:51:12: note: place parentheses around the assignment to silence this warning if (cp = getenv("LIFEPATH")) ^ ( ) collect.c:51:12: note: use '==' to turn this assignment into an equality comparison if (cp = getenv("LIFEPATH")) ^ == collect.c:58:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ collect.c:58:3: note: include the header or explicitly provide a declaration for 'exit' collect.c:62:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] (cp = strtok((char *)NULL, ":")); ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ collect.c:62:10: note: place parentheses around the assignment to silence this warning (cp = strtok((char *)NULL, ":")); ^ ( ) collect.c:62:10: note: use '==' to turn this assignment into an equality comparison (cp = strtok((char *)NULL, ":")); ^ == collect.c:77:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *checktilda(stng) ^ collect.c:38: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 *checktilda(); ^ collect.c:103:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *addlifeext(buf) ^ collect.c:112:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *deletelifeext(buf) ^ collect.c:130:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (colptr=strchr(filename,':')) (*colptr)='\0'; ~~~~~~^~~~~~~~~~~~~~~~~~~~~ collect.c:130:14: note: place parentheses around the assignment to silence this warning if (colptr=strchr(filename,':')) (*colptr)='\0'; ^ ( ) collect.c:130:14: note: use '==' to turn this assignment into an equality comparison if (colptr=strchr(filename,':')) (*colptr)='\0'; ^ == collect.c:122:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char *seppatdir(filename,filefield) ^ collect.c:146:1: warning: non-void function does not return a value [-Wreturn-type] } ^ collect.c:148:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] collect_loadreq(seenlist,loadqueue) ^ int collect.c:155:9: warning: call to undeclared function 'do_loadfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!do_loadfile(seenlist,&loadqueue,1)) ^ collect.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] collect_loadreq(seenlist,loadqueue) ^ collect.c:164:1: warning: non-void function does not return a value [-Wreturn-type] } ^ collect.c:184:21: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] newreq=(LoadReq *)malloc(sizeof(LoadReq)); ^ collect.c:184:21: note: include the header or explicitly provide a declaration for 'malloc' collect.c:166:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int add_loadreq(loadqueue, patname, relpath, loadtime) ^ In file included from collect.c:32: ./data.h:27: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] GLOBAL int add_loadreq(); ^ collect.c:193:1: warning: non-void function does not return a value [-Wreturn-type] } ^ collect.c:195:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int seen(seenlist, patname) ^ collect.c:219:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void parse_patname(patname,patfield) ^ collect.c:252:5: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(*loadqueue); ^ collect.c:252:5: note: include the header or explicitly provide a declaration for 'free' collect.c:361:64: warning: format specifies type 'int *' but the argument has type 'unsigned long *' [-Wformat] &xoff, &yoff, &rotate, &flip, &loadtime); ^~~~~~~~~ collect.c:389:63: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] xoff, yoff, rotate, flip, loadtime); ^~~~~~~~ collect.c:392:63: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] xoff, yoff, rotate, flip, loadtime); ^~~~~~~~ collect.c:244:9: warning: unused variable 'x' [-Wunused-variable] int x,y, linect = 0; ^ collect.c:244:11: warning: unused variable 'y' [-Wunused-variable] int x,y, linect = 0; ^ collect.c:244:14: warning: unused variable 'linect' [-Wunused-variable] int x,y, linect = 0; ^ collect.c:233:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int do_loadfile(seenlist,loadqueue,ismain) ^ collect.c:409:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int collect.c:409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 32 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c search.c In file included from search.c:8: ./lifesrc.h:186:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] extern char *malloc(); ^ ./lifesrc.h:186:14: note: 'malloc' is a builtin with type 'void *(unsigned long)' search.c:138:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ search.c:138:3: note: include the header or explicitly provide a declaration for 'exit' search.c:158:20: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, gen); ^ search.c:169:14: warning: passing arguments to 'linkcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linkcell(cell); ^ search.c:178:26: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell->past = findcell(row, col, ^ search.c:180:28: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell->future = findcell(row, col, ^ search.c:188:26: warning: passing arguments to 'symcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell->csym = symcell(cell); ^ search.c:200:20: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, genmax-1); ^ search.c:203:28: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell->future = findcell(nrow, ncol, 0); ^ search.c:204:13: warning: passing arguments to 'linkcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linkcell(cell->future); ^ search.c:206:20: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, 0); ^ search.c:209:26: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell->past = findcell(nrow, ncol, genmax-1); ^ search.c:210:13: warning: passing arguments to 'linkcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linkcell(cell->past); ^ search.c:226:20: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, gen); ^ search.c:231:20: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(rowmax + 1 - row, col, gen); ^ search.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setcell(cell, state, free) ^ search.c:107:15: 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 STATUS setcell(); ^ search.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] getdesc(cell) ^ search.c:112: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 getdesc(); ^ search.c:319:18: warning: parameter 'sum' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] sumtodesc(state, sum) ^ search.c:319:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sumtodesc(state, sum) ^ search.c:113: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 sumtodesc(); ^ search.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] consistify(cell) ^ search.c:108:15: 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 STATUS consistify(); ^ search.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] consistify10(cell) ^ search.c:109:15: 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 STATUS consistify10(); ^ search.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] proceed(cell, state, free) ^ In file included from search.c:8: ./lifesrc.h:171:15: 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 STATUS proceed(); ^ search.c:614:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] go(cell, state, free) ^ search.c:111:15: 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 STATUS go(); ^ search.c:662:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] choose(cell) ^ search.c:101: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 STATE choose(); ^ search.c:699:13: warning: passing arguments to 'dumpstate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dumpstate(dumpfile); ^ search.c:704:12: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(curgen); ^ search.c:740:22: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cellg0 = findcell(row, col, 0); ^ search.c:741:22: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cellgn = findcell(row, col, gen); ^ search.c:781:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return findcell(nrow, col, cell->gen); ^ search.c:784:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return findcell(row, ncol, cell->gen); ^ search.c:792:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return findcell(nrow, ncol, cell->gen); ^ search.c:800:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return findcell(row, ncol, cell->gen); ^ search.c:802:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return findcell(nrow, col, cell->gen); ^ search.c:761:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] symcell(cell) ^ search.c:103: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 CELL *symcell(); ^ search.c:823:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row - 1, col - 1, gen); ^ search.c:827:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row - 1, col, gen); ^ search.c:831:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row - 1, col + 1, gen); ^ search.c:835:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row, col - 1, gen); ^ search.c:839:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row, col + 1, gen); ^ search.c:843:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row + 1, col - 1, gen); ^ search.c:847:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row + 1, col, gen); ^ search.c:851:21: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] paircell = findcell(row + 1, col + 1, gen); ^ search.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] linkcell(cell) ^ search.c:99: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 linkcell(); ^ search.c:865:20: warning: parameter 'gen' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] findcell(row, col, gen) ^ search.c:865:15: warning: parameter 'col' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] findcell(row, col, gen) ^ search.c:865:10: warning: parameter 'row' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] findcell(row, col, gen) ^ search.c:865:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findcell(row, col, gen) ^ In file included from search.c:8: ./lifesrc.h:172: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 CELL *findcell(); ^ search.c:918:29: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newcells = (CELL *) malloc(sizeof(CELL) * ALLOCSIZE); ^ search.c:979:17: warning: passing arguments to 'implication' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] implication(state, OFFcount, ONcount); ^ search.c:1006:16: warning: passing arguments to 'transition' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] transition(state, OFFcount, ONcount); ^ search.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] transition(state, OFFcount, ONcount) ^ search.c:100: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 STATE transition(); ^ search.c:1065:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] implication(state, OFFcount, ONcount) ^ search.c:102: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 FLAGS implication(); ^ 65 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c interact.c In file included from interact.c:6: ./lifesrc.h:186:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] extern char *malloc(); ^ ./lifesrc.h:186:14: note: 'malloc' is a builtin with type 'void *(unsigned long)' interact.c:23:6: warning: parameter 'argc' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ interact.c:23:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc, argv) ^ int interact.c:31:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] exit(1); ^ interact.c:31:3: note: include the header or explicitly provide a declaration for 'exit' interact.c:43:14: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rowmax = atoi(str); ^ interact.c:83:20: warning: passing arguments to 'atol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dumpfreq = atol(str) * DUMPMULT; ^ interact.c:92:20: warning: passing arguments to 'atol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] viewfreq = atol(str) * VIEWMULT; ^ interact.c:164:16: warning: passing arguments to 'loadstate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (loadstate(loadfile) != OK) { ^ interact.c:171:16: warning: passing arguments to 'readfile' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (readfile(initfile) != OK) { ^ interact.c:188:11: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(0); ^ interact.c:201:13: warning: passing arguments to 'dumpstate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dumpstate(dumpfile); ^ interact.c:221:12: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(0); ^ interact.c:222:13: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Object %ld found.\n", ++foundcount); ^ interact.c:223:12: warning: passing arguments to 'writegen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writegen(outputfile, TRUE); ^ interact.c:27:9: warning: unused variable 'status' [-Wunused-variable] STATUS status; ^ interact.c:23: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) ^ interact.c:254:10: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(curgen); ^ interact.c:257:10: warning: passing arguments to 'ttyread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyread("> ", buf, LINESIZE); ^ interact.c:269:13: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen((curgen + genmax - 1) % genmax); ^ interact.c:273:13: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen((curgen + 1) % genmax); ^ interact.c:277:15: warning: passing arguments to 'getsetting' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsetting(cp); ^ interact.c:281:16: warning: passing arguments to 'confirm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (confirm("Clear all unknown cells? ")) ^ interact.c:286:20: warning: passing arguments to 'atol' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] viewfreq = atol(cp) * VIEWMULT; ^ interact.c:287:13: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(curgen); ^ interact.c:291:13: warning: passing arguments to 'writegen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writegen(cp, FALSE); ^ interact.c:295:14: warning: passing arguments to 'dumpstate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dumpstate(cp); ^ interact.c:305:16: warning: passing arguments to 'confirm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (confirm("Really quit? ")) { ^ interact.c:317:16: warning: passing arguments to 'getsetting' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsetting(cmd); ^ interact.c:320:14: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Unknown command\n"); ^ interact.c:341:13: warning: passing arguments to 'getstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cp = getstr(cp, "Cell to set (row col [state]): "); ^ interact.c:345:14: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] row = getnum(&cp, -1); ^ interact.c:348:14: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] col = getnum(&cp, -1); ^ interact.c:351:16: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] state = getnum(&cp, 1); ^ interact.c:356:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Bad input line format\n"); ^ interact.c:363:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Illegal cell value\n"); ^ interact.c:367:22: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (proceed(findcell(row, col, curgen), state, FALSE) != OK) { ^ interact.c:367:13: warning: passing arguments to 'proceed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (proceed(findcell(row, col, curgen), state, FALSE) != OK) { ^ interact.c:368:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Inconsistent state for cell\n"); ^ interact.c:373:10: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(curgen); ^ interact.c:334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsetting(cp) ^ interact.c:13: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 getsetting(); ^ interact.c:390:19: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, curgen); ^ interact.c:394:15: warning: passing arguments to 'proceed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (proceed(cell, OFF, FALSE) != OK) ^ interact.c:396:14: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Inconsistent state for cell\n"); ^ interact.c:403:10: warning: passing arguments to 'printgen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(curgen); ^ interact.c:412:10: warning: parameter 'gen' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] printgen(gen) ^ interact.c:431:22: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] count += (findcell(row, col, gen)->state == ON); ^ interact.c:438:11: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf("%s (gen %d, cells %d) -g%d", msg, gen, count, genmax); ^ interact.c:440:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -tr%d", rowtrans); ^ interact.c:442:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -tc%d", coltrans); ^ interact.c:444:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -sr"); ^ interact.c:446:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -sc"); ^ interact.c:448:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -p"); ^ interact.c:450:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -a"); ^ interact.c:452:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -m%d", maxcount); ^ interact.c:454:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -v%ld", viewfreq / VIEWMULT); ^ interact.c:456:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -d%ld %s", dumpfreq / DUMPMULT, dumpfile); ^ interact.c:458:12: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf(" -o %s", outputfile); ^ interact.c:459:11: warning: passing arguments to 'ttyprintf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyprintf("\n"); ^ interact.c:463:19: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, gen); ^ interact.c:474:12: warning: passing arguments to 'ttywrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttywrite(msg, (colmax < 40) + 1); ^ interact.c:476:11: warning: passing arguments to 'ttywrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttywrite("\n", 1); ^ interact.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] printgen(gen) ^ In file included from interact.c:6: ./lifesrc.h:168: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] extern void printgen(); ^ interact.c:501:15: warning: passing arguments to 'getstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file = getstr(file, "Write object to file: "); ^ interact.c:507:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Cannot create \"%s\"\n", file); ^ interact.c:521:19: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, curgen); ^ interact.c:547:19: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, curgen); ^ interact.c:562:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Error writing \"%s\"\n", file); ^ interact.c:564:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("\"%s\" written\n", file); ^ interact.c:490:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writegen(file, append) ^ interact.c:15: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 writegen(); ^ interact.c:580:15: warning: passing arguments to 'getstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file = getstr(file, "Dump state to file: "); ^ interact.c:586:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Cannot create \"%s\"\n", file); ^ interact.c:602:27: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(fp, "T %d %d\n", baseset - settable, nextset - settable); ~~ ^~~~~~~~~~~~~~~~~~ %ld interact.c:602:47: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(fp, "T %d %d\n", baseset - settable, nextset - settable); ~~ ^~~~~~~~~~~~~~~~~~ %ld interact.c:606:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Error writing \"%s\"\n", file); ^ interact.c:610:11: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("State dumped to \"%s\"\n", file); ^ interact.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] dumpstate(file) ^ In file included from interact.c:6: ./lifesrc.h:169: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] extern void dumpstate(); ^ interact.c:633:15: warning: passing arguments to 'getstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file = getstr(file, "Load state from file: "); ^ interact.c:639:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Cannot open state file \"%s\"\n", file); ^ interact.c:646:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Missing version line in file \"%s\"\n", file); ^ interact.c:652:12: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (getnum(&cp, 0) != DUMPVERSION) { ^ interact.c:653:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Unknown version in state file \"%s\"\n", file); ^ interact.c:660:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Missing init line in state file\n"); ^ interact.c:665:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rowmax = getnum(&cp, 0); ^ interact.c:666:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colmax = getnum(&cp, 0); ^ interact.c:667:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] genmax = getnum(&cp, 0); ^ interact.c:668:19: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rowtrans = getnum(&cp, 0); ^ interact.c:669:19: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] coltrans = getnum(&cp, 0); ^ interact.c:670:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rowsym = getnum(&cp, 0); ^ interact.c:671:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] colsym = getnum(&cp, 0); ^ interact.c:672:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parent = getnum(&cp, 0); ^ interact.c:673:21: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] allobjects = getnum(&cp, 0); ^ interact.c:674:19: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] maxcount = getnum(&cp, 0); ^ interact.c:675:20: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cellcount = getnum(&cp, 0); ^ interact.c:676:20: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curstatus = getnum(&cp, 0); ^ interact.c:688:15: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] row = getnum(&cp, 0); ^ interact.c:689:15: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] col = getnum(&cp, 0); ^ interact.c:690:15: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gen = getnum(&cp, 0); ^ interact.c:691:17: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] state = getnum(&cp, 0); ^ interact.c:692:16: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free = getnum(&cp, 0); ^ interact.c:694:18: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cell = findcell(row, col, gen); ^ interact.c:701:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Missing table line in state file\n"); ^ interact.c:706:28: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] baseset = &settable[getnum(&cp, 0)]; ^ interact.c:707:28: warning: passing arguments to 'getnum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nextset = &settable[getnum(&cp, 0)]; ^ interact.c:711:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Missing end of file line in state file\n"); ^ interact.c:717:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Error reading \"%s\"\n", file); ^ interact.c:721:11: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("State loaded from \"%s\"\n", file); ^ interact.c:620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadstate(file) ^ interact.c:16:15: 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 STATUS loadstate(); ^ interact.c:744:15: warning: passing arguments to 'getstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] file = getstr(file, "Read initial object from file: "); ^ interact.c:750:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Cannot open \"%s\"\n", file); ^ interact.c:778:15: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Bad file format in line %d\n", ^ interact.c:784:24: warning: passing arguments to 'findcell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (proceed(findcell(row, col, gen), state, FALSE) ^ interact.c:784:15: warning: passing arguments to 'proceed' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (proceed(findcell(row, col, gen), state, FALSE) ^ interact.c:787:14: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Inconsistent state for cell %d %d\n", ^ interact.c:796:12: warning: passing arguments to 'ttystatus' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttystatus("Error reading \"%s\"\n", file); ^ interact.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] readfile(file) ^ interact.c:17:15: 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 STATUS readfile(); ^ interact.c:816:10: warning: passing arguments to 'ttyread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttyread(prompt, buf, LINESIZE); ^ interact.c:809:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getstr(str, prompt) ^ interact.c:20: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 char *getstr(); ^ interact.c:830: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(prompt) ^ interact.c:18: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 BOOL confirm(); ^ interact.c:848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getnum(cpp, defnum) ^ interact.c:19: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 long getnum(); ^ 128 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c dumbtty.c dumbtty.c:20:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyopen() ^ int dumbtty.c:48:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttycheck() ^ int dumbtty.c:71:16: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ttywrite(buf, strlen(buf)); ^ dumbtty.c:71:16: note: include the header or explicitly provide a declaration for 'strlen' dumbtty.c:71:10: warning: passing arguments to 'ttywrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttywrite(buf, strlen(buf)); ^ dumbtty.c:88:10: warning: passing arguments to 'ttywrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttywrite(buf, strlen(buf)); ^ dumbtty.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] ttywrite(buf, count) ^ dumbtty.c:14: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] extern void ttywrite(); ^ dumbtty.c:133:22: warning: parameter 'buflen' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyread(prompt, buf, buflen) ^ dumbtty.c:133:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyread(prompt, buf, buflen) ^ int dumbtty.c:133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 10 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/include -c cursestty.c cursestty.c:23:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyopen() ^ int cursestty.c:59:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttycheck() ^ int cursestty.c:110:14: warning: parameter 'len' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttywrite(cp, len) ^ cursestty.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttywrite(cp, len) ^ cursestty.c:17: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] extern void ttywrite(); ^ cursestty.c:146:22: warning: parameter 'buflen' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyread(prompt, buf, buflen) ^ cursestty.c:146:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ttyread(prompt, buf, buflen) ^ int cursestty.c:146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 8 warnings generated. rm -f xlife._man if test -z "" ; then cd `dirname xlife` && ln -s `basename xlife.man` `basename xlife._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" < xlife.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/\@\@$/\/' >xlife._man; fi rm -f lifeconv._man if test -z "" ; then cd `dirname lifeconv` && ln -s `basename lifeconv.man` `basename lifeconv._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" < lifeconv.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/\@\@$/\/' >lifeconv._man; fi rm -f collect._man if test -z "" ; then cd `dirname collect` && ln -s `basename collect.man` `basename collect._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" < collect.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/\@\@$/\/' >collect._man; fi rm -f lifesearch._man if test -z "" ; then cd `dirname lifesearch` && ln -s `basename lifesearch.man` `basename lifesearch._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" < lifesearch.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/\@\@$/\/' >lifesearch._man; fi rm -f lifesearchdumb._man if test -z "" ; then cd `dirname lifesearchdumb` && ln -s `basename lifesearchdumb.man` `basename lifesearchdumb._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" < lifesearchdumb.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/\@\@$/\/' >lifesearchdumb._man; fi clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DLIFEDIR=\"/opt/pkg/share/xlife/\" -I/opt/pkg/include/ncurses -I/opt/pkg/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: call to undeclared function 'redrawscreen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] redrawscreen(); ^ 2 warnings generated. rm -f lifeconv clang -o lifeconv -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib lifeconv.o rm -f collect clang -o collect -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib collect.o rm -f lifesearch clang -o lifesearch -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib search.o interact.o dumbtty.o -lcurses -ltermcap rm -f lifesearchdumb clang -o lifesearchdumb -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib search.o interact.o cursestty.o -lcurses -ltermcap rm -f xlife clang -o xlife -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib cell.o data.o file.o file_misc.o generate.o gentab.o help.o key.o main.o tentative.o tile.o utils.o -lXext -lX11