>>> Building on exopi-2 under games/xlife BDEPENDS = [devel/imake;archivers/bzip2;devel/gmake;devel/imake-cf] DIST = [games/xlife:xlife-6.7.6.tar.bz2] FULLPKGNAME = xlife-6.7.6 (Junk lock obtained for exopi-2 at 1764445522.62) >>> Running depends in games/xlife at 1764445522.66 last junk was in graphics/p5-Graphics-Primitive /usr/sbin/pkg_add -aI -Drepair imake-1.0.10 imake-cf-1.0.8 was: /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 gmake-4.4.1p0 imake-1.0.10 imake-cf-1.0.8 /usr/sbin/pkg_add -aI -Drepair imake-1.0.10 imake-cf-1.0.8 >>> Running show-prepare-results in games/xlife at 1764445524.55 ===> games/xlife ===> Building from scratch xlife-6.7.6 ===> xlife-6.7.6 depends on: imake-* -> imake-1.0.10 ===> xlife-6.7.6 depends on: imake-cf-* -> imake-cf-1.0.8 ===> xlife-6.7.6 depends on: gmake-* -> gmake-4.4.1p0 ===> xlife-6.7.6 depends on: bzip2-* -> bzip2-1.0.8p0 ===> Verifying specs: X11 c m ===> found X11.19.0 c.102.2 m.10.1 bzip2-1.0.8p0 gmake-4.4.1p0 imake-1.0.10 imake-cf-1.0.8 (Junk lock released for exopi-2 at 1764445525.49) distfiles size=153025 >>> Running build in games/xlife at 1764445525.55 ===> games/xlife ===> Checking files for xlife-6.7.6 `/exopi-cvs/ports/distfiles/xlife-6.7.6.tar.bz2' is up to date. >> (SHA256) all files: OK ===> Extracting for xlife-6.7.6 ===> Patching for xlife-6.7.6 ===> Applying OpenBSD patch patch-Imakefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: Imakefile |--- Imakefile.orig |+++ Imakefile -------------------------- Patching file Imakefile using Plan A... Hunk #1 succeeded at 52. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for xlife-6.7.6 ===> Configuring for xlife-6.7.6 imake -DPorts -DUseInstalled -I/usr/local/lib/X11/config make Makefiles make includes cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c cell.c warning: optimization level '-O5' is not supported; using '-O3' instead cell.c:57:54: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 57 | return (ptr->twostate.live2 & 1 << (ydx - 4)*8 + xdx) != 0; | ~~ ~~~~~~~~~~~~^~~~~ cell.c:57:54: note: place parentheses around the '+' expression to silence this warning 57 | return (ptr->twostate.live2 & 1 << (ydx - 4)*8 + xdx) != 0; | ^ | ( ) cell.c:59:48: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 59 | return (ptr->twostate.live1 & 1 << ydx*8 + xdx) != 0; | ~~ ~~~~~~^~~~~ cell.c:59:48: note: place parentheses around the '+' expression to silence this warning 59 | return (ptr->twostate.live1 & 1 << ydx*8 + xdx) != 0; | ^ | ( ) cell.c:198:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 198 | if (ns = ptr->nstate.cell[i][j]) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:198:32: note: place parentheses around the assignment to silence this warning 198 | if (ns = ptr->nstate.cell[i][j]) { | ^ | ( ) cell.c:198:32: note: use '==' to turn this assignment into an equality comparison 198 | if (ns = ptr->nstate.cell[i][j]) { | ^ | == cell.c:213:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 213 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cell.c:213:32: note: place parentheses around the assignment to silence this warning 213 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ^ | ( ) cell.c:213:32: note: use '==' to turn this assignment into an equality comparison 213 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ^ | == cell.c:351:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 351 | if (ns = ptr->nstate.cell[i][j]) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:351:32: note: place parentheses around the assignment to silence this warning 351 | if (ns = ptr->nstate.cell[i][j]) { | ^ | ( ) cell.c:351:32: note: use '==' to turn this assignment into an equality comparison 351 | if (ns = ptr->nstate.cell[i][j]) { | ^ | == cell.c:364:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 364 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cell.c:364:32: note: place parentheses around the assignment to silence this warning 364 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ^ | ( ) cell.c:364:32: note: use '==' to turn this assignment into an equality comparison 364 | if (ns = ptr->nstate.cell[(i << -scale) + k][(j << -scale) + l]) { | ^ | == cell.c:372:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 372 | if (ns = ptr->nstate.cell[i][j]) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:372:26: note: place parentheses around the assignment to silence this warning 372 | if (ns = ptr->nstate.cell[i][j]) { | ^ | ( ) cell.c:372:26: note: use '==' to turn this assignment into an equality comparison 372 | if (ns = ptr->nstate.cell[i][j]) { | ^ | == 8 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c clipboard.c warning: optimization level '-O5' is not supported; using '-O3' instead clipboard.c:69:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 69 | if (c = (*cp - '@' + dc)%mod) | ~~^~~~~~~~~~~~~~~~~~~~~~ clipboard.c:69:19: note: place parentheses around the assignment to silence this warning 69 | if (c = (*cp - '@' + dc)%mod) | ^ | ( ) clipboard.c:69:19: note: use '==' to turn this assignment into an equality comparison 69 | if (c = (*cp - '@' + dc)%mod) | ^ | == clipboard.c:138:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 138 | if (val = getcell(&tp->cells, x, y)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ clipboard.c:138:21: note: place parentheses around the assignment to silence this warning 138 | if (val = getcell(&tp->cells, x, y)) { | ^ | ( ) clipboard.c:138:21: note: use '==' to turn this assignment into an equality comparison 138 | if (val = getcell(&tp->cells, x, y)) { | ^ | == clipboard.c:182:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 182 | if (q = bounding_box(pp)) { | ~~^~~~~~~~~~~~~~~~~~ clipboard.c:182:10: note: place parentheses around the assignment to silence this warning 182 | if (q = bounding_box(pp)) { | ^ | ( ) clipboard.c:182:10: note: use '==' to turn this assignment into an equality comparison 182 | if (q = bounding_box(pp)) { | ^ | == clipboard.c:192:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 192 | if (p = clipboard.first) { | ~~^~~~~~~~~~~~~~~~~ clipboard.c:192:10: note: place parentheses around the assignment to silence this warning 192 | if (p = clipboard.first) { | ^ | ( ) clipboard.c:192:10: note: use '==' to turn this assignment into an equality comparison 192 | if (p = clipboard.first) { | ^ | == 5 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c collect.c warning: optimization level '-O5' is not supported; using '-O3' instead collect.c:138:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 138 | while (p = strstr(patfile, "./")) /* removes exessive part */ | ~~^~~~~~~~~~~~~~~~~~~~~~~ collect.c:138:13: note: place parentheses around the assignment to silence this warning 138 | while (p = strstr(patfile, "./")) /* removes exessive part */ | ^ | ( ) collect.c:138:13: note: use '==' to turn this assignment into an equality comparison 138 | while (p = strstr(patfile, "./")) /* removes exessive part */ | ^ | == 2 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c colors.c warning: optimization level '-O5' is not supported; using '-O3' instead 1 warning generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c data.c warning: optimization level '-O5' is not supported; using '-O3' instead data.c:33:11: warning: call to undeclared library function 'isalnum' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 33 | return isalnum(c) || c == '~' || c == '@'; | ^ data.c:33:11: note: include the header or explicitly provide a declaration for 'isalnum' data.c:37:8: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | if (isdigit(c)) return c - '0'; | ^ data.c:37:8: note: include the header or explicitly provide a declaration for 'isdigit' data.c:38:8: warning: call to undeclared library function 'isupper' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 38 | if (isupper(c)) return c - '7'; | ^ data.c:38:8: note: include the header or explicitly provide a declaration for 'isupper' data.c:39:8: warning: call to undeclared library function 'islower' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | if (islower(c)) return c - 61; | ^ data.c:39:8: note: include the header or explicitly provide a declaration for 'islower' 5 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c file.c warning: optimization level '-O5' is not supported; using '-O3' instead file.c:103:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 103 | if (cp = getenv("LIFEPATH")) { | ~~~^~~~~~~~~~~~~~~~~~~~ file.c:103:11: note: place parentheses around the assignment to silence this warning 103 | if (cp = getenv("LIFEPATH")) { | ^ | ( ) file.c:103:11: note: use '==' to turn this assignment into an equality comparison 103 | if (cp = getenv("LIFEPATH")) { | ^ | == file.c:109:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 109 | } while (cp = strtok(0, ":")); | ~~~^~~~~~~~~~~~~~~~ file.c:109:19: note: place parentheses around the assignment to silence this warning 109 | } while (cp = strtok(0, ":")); | ^ | ( ) file.c:109:19: note: use '==' to turn this assignment into an equality comparison 109 | } while (cp = strtok(0, ":")); | ^ | == file.c:166:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 166 | if (pw = getpwnam(full)) | ~~~^~~~~~~~~~~~~~~~ file.c:166:17: note: place parentheses around the assignment to silence this warning 166 | if (pw = getpwnam(full)) | ^ | ( ) file.c:166:17: note: use '==' to turn this assignment into an equality comparison 166 | if (pw = getpwnam(full)) | ^ | == file.c:161:30: warning: unsequenced modification and access to 'i' [-Wunsequenced] 161 | full[i - 1] = stng[i++]; | ~ ^ file.c:193:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 193 | if (savefl = fopen(add_opt_ext(fn, LOADEXT), "w")) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:193:15: note: place parentheses around the assignment to silence this warning 193 | if (savefl = fopen(add_opt_ext(fn, LOADEXT), "w")) { | ^ | ( ) file.c:193:15: note: use '==' to turn this assignment into an equality comparison 193 | if (savefl = fopen(add_opt_ext(fn, LOADEXT), "w")) { | ^ | == file.c:196:7: warning: call to undeclared function 'setcurdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 196 | setcurdir("."); /* update widget's file list */ | ^ file.c:214:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 214 | if (colptr = strchr(filename, ':')) *colptr = '\0'; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ file.c:214:15: note: place parentheses around the assignment to silence this warning 214 | if (colptr = strchr(filename, ':')) *colptr = '\0'; | ^ | ( ) file.c:214:15: note: use '==' to turn this assignment into an equality comparison 214 | if (colptr = strchr(filename, ':')) *colptr = '\0'; | ^ | == file.c:246:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 246 | else if (t < strlen(cp)) | ^ file.c:262:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 262 | if (cp = strrchr(loadqueue->patname, '/')) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:262:11: note: place parentheses around the assignment to silence this warning 262 | if (cp = strrchr(loadqueue->patname, '/')) | ^ | ( ) file.c:262:11: note: use '==' to turn this assignment into an equality comparison 262 | if (cp = strrchr(loadqueue->patname, '/')) | ^ | == file.c:277:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 277 | if (quitload = breakreq()) | ~~~~~~~~~^~~~~~~~~~~~ file.c:277:23: note: place parentheses around the assignment to silence this warning 277 | if (quitload = breakreq()) | ^ | ( ) file.c:277:23: note: use '==' to turn this assignment into an equality comparison 277 | if (quitload = breakreq()) | ^ | == file.c:489:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 489 | if (dp = opendir(*dirp)) { | ~~~^~~~~~~~~~~~~~~~ file.c:489:17: note: place parentheses around the assignment to silence this warning 489 | if (dp = opendir(*dirp)) { | ^ | ( ) file.c:489:17: note: use '==' to turn this assignment into an equality comparison 489 | if (dp = opendir(*dirp)) { | ^ | == file.c:490:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 490 | while (entry = readdir(dp)) { | ~~~~~~^~~~~~~~~~~~~ file.c:490:26: note: place parentheses around the assignment to silence this warning 490 | while (entry = readdir(dp)) { | ^ | ( ) file.c:490:26: note: use '==' to turn this assignment into an equality comparison 490 | while (entry = readdir(dp)) { | ^ | == file.c:508:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 508 | if (loadfl = fopen(fullpath, "r")) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:508:15: note: place parentheses around the assignment to silence this warning 508 | if (loadfl = fopen(fullpath, "r")) { | ^ | ( ) file.c:508:15: note: use '==' to turn this assignment into an equality comparison 508 | if (loadfl = fopen(fullpath, "r")) { | ^ | == file.c:655:22: warning: add explicit braces to avoid dangling else [-Wdangling-else] 655 | else | ^ file.c:663:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 663 | if (errmsg = use_colors(cp, dirs)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:663:30: note: place parentheses around the assignment to silence this warning 663 | if (errmsg = use_colors(cp, dirs)) { | ^ | ( ) file.c:663:30: note: use '==' to turn this assignment into an equality comparison 663 | if (errmsg = use_colors(cp, dirs)) { | ^ | == file.c:689:22: warning: add explicit braces to avoid dangling else [-Wdangling-else] 689 | else | ^ file.c:809:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 809 | if (p = strstr(buf, "CXRLE")) { | ~~^~~~~~~~~~~~~~~~~~~~~~ file.c:809:22: note: place parentheses around the assignment to silence this warning 809 | if (p = strstr(buf, "CXRLE")) { | ^ | ( ) file.c:809:22: note: use '==' to turn this assignment into an equality comparison 809 | if (p = strstr(buf, "CXRLE")) { | ^ | == file.c:810:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 810 | if (cp = strstr(p + 6, "Pos")) | ~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:810:26: note: place parentheses around the assignment to silence this warning 810 | if (cp = strstr(p + 6, "Pos")) | ^ | ( ) file.c:810:26: note: use '==' to turn this assignment into an equality comparison 810 | if (cp = strstr(p + 6, "Pos")) | ^ | == file.c:812:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 812 | if (cp = strstr(p + 6, "Gen")) | ~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:812:26: note: place parentheses around the assignment to silence this warning 812 | if (cp = strstr(p + 6, "Gen")) | ^ | ( ) file.c:812:26: note: use '==' to turn this assignment into an equality comparison 812 | if (cp = strstr(p + 6, "Gen")) | ^ | == file.c:813:47: warning: format specifies type 'unsigned int *' but the argument has type 'unsigned long *' [-Wformat] 813 | sscanf(cp + 3, " = %ul", &context->generations); | ~~ ^~~~~~~~~~~~~~~~~~~~~ | %lu file.c:819:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 819 | if (p = strrchr(patid, ':')) { | ~~^~~~~~~~~~~~~~~~~~~~~ file.c:819:22: note: place parentheses around the assignment to silence this warning 819 | if (p = strrchr(patid, ':')) { | ^ | ( ) file.c:819:22: note: use '==' to turn this assignment into an equality comparison 819 | if (p = strrchr(patid, ':')) { | ^ | == file.c:833:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 833 | if (cp = strchr(patid, '/')) | ~~~^~~~~~~~~~~~~~~~~~~~ file.c:833:23: note: place parentheses around the assignment to silence this warning 833 | if (cp = strchr(patid, '/')) | ^ | ( ) file.c:833:23: note: use '==' to turn this assignment into an equality comparison 833 | if (cp = strchr(patid, '/')) | ^ | == file.c:839:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 839 | else if (toupper(patid[0]) == 'B') { | ^ file.c:896:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 896 | if (p = strchr(tmpstring, 'x')) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:896:22: note: place parentheses around the assignment to silence this warning 896 | if (p = strchr(tmpstring, 'x')) { | ^ | ( ) file.c:896:22: note: use '==' to turn this assignment into an equality comparison 896 | if (p = strchr(tmpstring, 'x')) { | ^ | == file.c:970:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 970 | if (savefl = fopen(outbuf, "w")) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ file.c:970:15: note: place parentheses around the assignment to silence this warning 970 | if (savefl = fopen(outbuf, "w")) { | ^ | ( ) file.c:970:15: note: use '==' to turn this assignment into an equality comparison 970 | if (savefl = fopen(outbuf, "w")) { | ^ | == file.c:1138:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1138 | if (dp = opendir(*dirp)) { | ~~~^~~~~~~~~~~~~~~~ file.c:1138:17: note: place parentheses around the assignment to silence this warning 1138 | if (dp = opendir(*dirp)) { | ^ | ( ) file.c:1138:17: note: use '==' to turn this assignment into an equality comparison 1138 | if (dp = opendir(*dirp)) { | ^ | == file.c:1140:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1140 | while (entry = readdir(dp)) { | ~~~~~~^~~~~~~~~~~~~ file.c:1140:26: note: place parentheses around the assignment to silence this warning 1140 | while (entry = readdir(dp)) { | ^ | ( ) file.c:1140:26: note: use '==' to turn this assignment into an equality comparison 1140 | while (entry = readdir(dp)) { | ^ | == file.c:1150:39: warning: unsequenced modification and access to 'subdirscount' [-Wunsequenced] 1150 | subdirs[subdirscount++] = strcpy(dirstore[subdirscount], | ^ ~~~~~~~~~~~~ file.c:1177:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1177 | if (p = strrchr(rulefile, '/')) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:1177:16: note: place parentheses around the assignment to silence this warning 1177 | if (p = strrchr(rulefile, '/')) | ^ | ( ) file.c:1177:16: note: use '==' to turn this assignment into an equality comparison 1177 | if (p = strrchr(rulefile, '/')) | ^ | == file.c:1191:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1191 | if (errmsg = use_rules(rules, dirs)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:1191:15: note: place parentheses around the assignment to silence this warning 1191 | if (errmsg = use_rules(rules, dirs)) { | ^ | ( ) file.c:1191:15: note: use '==' to turn this assignment into an equality comparison 1191 | if (errmsg = use_rules(rules, dirs)) { | ^ | == file.c:1208:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1208 | else | ^ file.c:1259:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1259 | if (errmsg = use_colors(pn, dirs)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:1259:15: note: place parentheses around the assignment to silence this warning 1259 | if (errmsg = use_colors(pn, dirs)) { | ^ | ( ) file.c:1259:15: note: use '==' to turn this assignment into an equality comparison 1259 | if (errmsg = use_colors(pn, dirs)) { | ^ | == 33 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c file_misc.c warning: optimization level '-O5' is not supported; using '-O3' instead 1 warning generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c framebuffer.c warning: optimization level '-O5' is not supported; using '-O3' instead 1 warning generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c generate.c warning: optimization level '-O5' is not supported; using '-O3' instead generate.c:891:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 891 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:891:26: note: place parentheses around the assignment to silence this warning 891 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | ( ) generate.c:891:26: note: use '==' to turn this assignment into an equality comparison 891 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | == generate.c:1196:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1196 | else | ^ generate.c:1205:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1205 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1205:27: note: place parentheses around the assignment to silence this warning 1205 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | ( ) generate.c:1205:27: note: use '==' to turn this assignment into an equality comparison 1205 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | == generate.c:1277:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1277 | else | ^ generate.c:1286:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1286 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1286:27: note: place parentheses around the assignment to silence this warning 1286 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | ( ) generate.c:1286:27: note: use '==' to turn this assignment into an equality comparison 1286 | if (t3 = cptr->cells.gstate.cell[t2][t1]) | ^ | == generate.c:1352:28: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 1352 | live |= 1 << *p++ - '0'; | ~~ ~~~~~^~~~~ generate.c:1352:28: note: place parentheses around the '-' expression to silence this warning 1352 | live |= 1 << *p++ - '0'; | ^ | ( ) generate.c:1355:28: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 1355 | born |= 1 << *p++ - '0'; | ~~ ~~~~~^~~~~ generate.c:1355:28: note: place parentheses around the '-' expression to silence this warning 1355 | born |= 1 << *p++ - '0'; | ^ | ( ) generate.c:1362:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 1362 | live |= 1 << *ptr++ - '0'; | ~~ ~~~~~~~^~~~~ generate.c:1362:30: note: place parentheses around the '-' expression to silence this warning 1362 | live |= 1 << *ptr++ - '0'; | ^ | ( ) generate.c:1366:33: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 1366 | born |= 1 << *ptr++ - '0'; | ~~ ~~~~~~~^~~~~ generate.c:1366:33: note: place parentheses around the '-' expression to silence this warning 1366 | born |= 1 << *ptr++ - '0'; | ^ | ( ) generate.c:1451:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1451 | if (p = strrchr(ptrbuf, ':')) *p = 0; | ~~^~~~~~~~~~~~~~~~~~~~~~ generate.c:1451:11: note: place parentheses around the assignment to silence this warning 1451 | if (p = strrchr(ptrbuf, ':')) *p = 0; | ^ | ( ) generate.c:1451:11: note: use '==' to turn this assignment into an equality comparison 1451 | if (p = strrchr(ptrbuf, ':')) *p = 0; | ^ | == generate.c:1465:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1465 | else | ^ generate.c:1632:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1632 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1632:12: note: place parentheses around the assignment to silence this warning 1632 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y)) { | ^ | ( ) generate.c:1632:12: note: use '==' to turn this assignment into an equality comparison 1632 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y)) { | ^ | == generate.c:1637:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1637 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1637:12: note: place parentheses around the assignment to silence this warning 1637 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y)) { | ^ | ( ) generate.c:1637:12: note: use '==' to turn this assignment into an equality comparison 1637 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y)) { | ^ | == generate.c:1642:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1642 | if (ncptr = fetchtile(context, cptr->x, cptr->y - BOXSIZE)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1642:12: note: place parentheses around the assignment to silence this warning 1642 | if (ncptr = fetchtile(context, cptr->x, cptr->y - BOXSIZE)) { | ^ | ( ) generate.c:1642:12: note: use '==' to turn this assignment into an equality comparison 1642 | if (ncptr = fetchtile(context, cptr->x, cptr->y - BOXSIZE)) { | ^ | == generate.c:1647:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1647 | if (ncptr = fetchtile(context, cptr->x, cptr->y + BOXSIZE)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1647:12: note: place parentheses around the assignment to silence this warning 1647 | if (ncptr = fetchtile(context, cptr->x, cptr->y + BOXSIZE)) { | ^ | ( ) generate.c:1647:12: note: use '==' to turn this assignment into an equality comparison 1647 | if (ncptr = fetchtile(context, cptr->x, cptr->y + BOXSIZE)) { | ^ | == generate.c:1651:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1651 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y - BOXSIZE)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1651:13: note: place parentheses around the assignment to silence this warning 1651 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y - BOXSIZE)) | ^ | ( ) generate.c:1651:13: note: use '==' to turn this assignment into an equality comparison 1651 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y - BOXSIZE)) | ^ | == generate.c:1653:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1653 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y - BOXSIZE)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1653:13: note: place parentheses around the assignment to silence this warning 1653 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y - BOXSIZE)) | ^ | ( ) generate.c:1653:13: note: use '==' to turn this assignment into an equality comparison 1653 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y - BOXSIZE)) | ^ | == generate.c:1655:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1655 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y + BOXSIZE)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1655:13: note: place parentheses around the assignment to silence this warning 1655 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y + BOXSIZE)) | ^ | ( ) generate.c:1655:13: note: use '==' to turn this assignment into an equality comparison 1655 | if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y + BOXSIZE)) | ^ | == generate.c:1657:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1657 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1657:13: note: place parentheses around the assignment to silence this warning 1657 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) | ^ | ( ) generate.c:1657:13: note: use '==' to turn this assignment into an equality comparison 1657 | if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) | ^ | == generate.c:1704:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1704 | else | ^ generate.c:1722:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1722 | if (newval = hold[i][j]) { | ~~~~~~~^~~~~~~~~~~~ generate.c:1722:14: note: place parentheses around the assignment to silence this warning 1722 | if (newval = hold[i][j]) { | ^ | ( ) generate.c:1722:14: note: use '==' to turn this assignment into an equality comparison 1722 | if (newval = hold[i][j]) { | ^ | == generate.c:1700:56: warning: unsequenced modification and access to 'newval' [-Wunsequenced] 1700 | make_transition8(0, newval = hold[i][j], hold[i - 1][j], | ^ 1701 | hold[i - 1][j + 1], hold[i][j + 1], hold[i + 1][j + 1], 1702 | hold[i + 1][j], hold[i + 1][j - 1], hold[i][j - 1], 1703 | hold[i - 1][j - 1], newval); | ~~~~~~ generate.c:1873:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1873 | if (newval = cptr->cells.nstate.cell[t2][t1]) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1873:32: note: place parentheses around the assignment to silence this warning 1873 | if (newval = cptr->cells.nstate.cell[t2][t1]) { | ^ | ( ) generate.c:1873:32: note: use '==' to turn this assignment into an equality comparison 1873 | if (newval = cptr->cells.nstate.cell[t2][t1]) { | ^ | == generate.c:1890:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1890 | new_state(0, 0, cptr->cells.nstate.c[0][0], ocell[0][1], ocell[1][0], cptr->cells.nstate.c[2][0]);//ul | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1891:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1891 | new_state(0, 7, cptr->cells.nstate.c[0][7], cptr->cells.nstate.c[3][0], ocell[1][7], ocell[0][6]);//ur | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1892:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1892 | new_state(7, 0, ocell[6][0], ocell[7][1], cptr->cells.nstate.c[1][0], cptr->cells.nstate.c[2][7]);//ll | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1893:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1893 | new_state(7, 7, ocell[6][7], cptr->cells.nstate.c[3][7], cptr->cells.nstate.c[1][7], ocell[7][6]);//lr | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1895:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1895 | new_state(0, t2, cptr->cells.nstate.c[0][t2], ocell[0][t2 + 1], ocell[1][t2], ocell[0][t2 - 1]);//u | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1896:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1896 | new_state(7, t2, ocell[6][t2], ocell[7][t2 + 1], cptr->cells.nstate.c[1][t2], ocell[7][t2 - 1]);//d | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1897:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1897 | new_state(t2, 0, ocell[t2 - 1][0], ocell[t2][1], ocell[t2 + 1][0], cptr->cells.nstate.c[2][t2]);//l | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1898:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1898 | new_state(t2, 7, ocell[t2 - 1][7], cptr->cells.nstate.c[3][t2], ocell[t2 + 1][7], ocell[t2][6]);//r | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1902:14: warning: add explicit braces to avoid dangling else [-Wdangling-else] 1902 | new_state(t2, t1, ocell[t2 - 1][t1], ocell[t2][t1 + 1], ocell[t2 + 1][t1], ocell[t2][t1 - 1]); | ^ generate.c:1781:7: note: expanded from macro 'new_state' 1781 | else\ | ^ generate.c:1994:52: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1994 | if ((err = parse_recurse(ep + 1, ecount + 1)) == E_NOCLOSE | ^ ~~~~~~~~~ generate.c:1995:11: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1995 | || err == E_BADCHAR || err == E_WRONGNUM) | ^ ~~~~~~~~~ generate.c:1995:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 1995 | || err == E_BADCHAR || err == E_WRONGNUM) | ^ ~~~~~~~~~~ generate.c:2069:13: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 2069 | if (err == E_NOCLOSE | ^ ~~~~~~~~~ generate.c:2070:10: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 2070 | || err == E_WRONGNUM || err == E_BADCHAR) | ^ ~~~~~~~~~~ generate.c:2070:31: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 2070 | || err == E_WRONGNUM || err == E_BADCHAR) | ^ ~~~~~~~~~ generate.c:2090:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2090 | if (cp = strchr(buf, '#')) { | ~~~^~~~~~~~~~~~~~~~~~ generate.c:2090:9: note: place parentheses around the assignment to silence this warning 2090 | if (cp = strchr(buf, '#')) { | ^ | ( ) generate.c:2090:9: note: use '==' to turn this assignment into an equality comparison 2090 | if (cp = strchr(buf, '#')) { | ^ | == generate.c:2178:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2178 | else if (errmsg = parse_recurse(buf, 0)) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ generate.c:2178:18: note: place parentheses around the assignment to silence this warning 2178 | else if (errmsg = parse_recurse(buf, 0)) { | ^ | ( ) generate.c:2178:18: note: use '==' to turn this assignment into an equality comparison 2178 | else if (errmsg = parse_recurse(buf, 0)) { | ^ | == generate.c:2238:59: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 2238 | sprintf(inpbuf, "Period-%d oscillator is found", active.generations - oscillator_check.generations); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %lu 42 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c gentab.c warning: optimization level '-O5' is not supported; using '-O3' instead gentab.c:102:41: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 102 | if (live & 1 << (i >> 4*l + 8 & 0xf)) | ~~ ~~~~^~~ gentab.c:102:41: note: place parentheses around the '+' expression to silence this warning 102 | if (live & 1 << (i >> 4*l + 8 & 0xf)) | ^ | ( ) gentab.c:106:44: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 106 | else if (born & 1 << (i >> 4*l + 8 & 0xf)) | ~~ ~~~~^~~ gentab.c:106:44: note: place parentheses around the '+' expression to silence this warning 106 | else if (born & 1 << (i >> 4*l + 8 & 0xf)) | ^ | ( ) gentab.c:119:39: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 119 | if (born & 1 << (i >> 4*l + 8 & 0xf)) | ~~ ~~~~^~~ gentab.c:119:39: note: place parentheses around the '+' expression to silence this warning 119 | if (born & 1 << (i >> 4*l + 8 & 0xf)) | ^ | ( ) 4 warnings generated. sed help.h cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c help.c warning: optimization level '-O5' is not supported; using '-O3' instead 1 warning generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c history.c warning: optimization level '-O5' is not supported; using '-O3' instead history.c:36:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 36 | if (ptr = history[n].hashlist[i]) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ history.c:36:15: note: place parentheses around the assignment to silence this warning 36 | if (ptr = history[n].hashlist[i]) { | ^ | ( ) history.c:36:15: note: use '==' to turn this assignment into an equality comparison 36 | if (ptr = history[n].hashlist[i]) { | ^ | == history.c:37:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 37 | do hashsum++; while (ptr = ptr->hnext); | ~~~~^~~~~~~~~~~~ history.c:37:35: note: place parentheses around the assignment to silence this warning 37 | do hashsum++; while (ptr = ptr->hnext); | ^ | ( ) history.c:37:35: note: use '==' to turn this assignment into an equality comparison 37 | do hashsum++; while (ptr = ptr->hnext); | ^ | == history.c:43:15: warning: format specifies type 'unsigned long' but the argument has type 'cellcount_t' (aka 'unsigned int') [-Wformat] 40 | sprintf(inpbuf, "History hash %s: X=%u Y=%u [%u] filled=%.4f badness=%.3f tiles=%lu", | ~~~ | %u 41 | n == 0 ? "init" : "main", HASHBITS - 3 - history[n].hxs, 3 + history[n].hxs, 42 | HASHBITS, (double)hashcount/HASHSIZE, hashcount ? (double)hashsum/hashcount : 0, 43 | history[n].tilecount); | ^~~~~~~~~~~~~~~~~~~~ history.c:102:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 102 | if (ptr = findhistorytile(context, x, y, hv)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ history.c:102:12: note: place parentheses around the assignment to silence this warning 102 | if (ptr = findhistorytile(context, x, y, hv)) | ^ | ( ) history.c:102:12: note: use '==' to turn this assignment into an equality comparison 102 | if (ptr = findhistorytile(context, x, y, hv)) | ^ | == history.c:141:64: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 141 | s1 += (ptr->cells.nstate.cell[j][i] != 0) << j*8 + i; | ~~ ~~~~^~~ history.c:141:64: note: place parentheses around the '+' expression to silence this warning 141 | s1 += (ptr->cells.nstate.cell[j][i] != 0) << j*8 + i; | ^ | ( ) history.c:142:68: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 142 | s2 += (ptr->cells.nstate.cell[j + 4][i] != 0) << j*8 + i; | ~~ ~~~~^~~ history.c:142:68: note: place parentheses around the '+' expression to silence this warning 142 | s2 += (ptr->cells.nstate.cell[j + 4][i] != 0) << j*8 + i; | ^ | ( ) history.c:160:62: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 160 | s1 += (ptr->cells.nstate.cell[j][i] != 0) << j*8 + i; | ~~ ~~~~^~~ history.c:160:62: note: place parentheses around the '+' expression to silence this warning 160 | s1 += (ptr->cells.nstate.cell[j][i] != 0) << j*8 + i; | ^ | ( ) history.c:161:66: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 161 | s2 += (ptr->cells.nstate.cell[j + 4][i] != 0) << j*8 + i; | ~~ ~~~~^~~ history.c:161:66: note: place parentheses around the '+' expression to silence this warning 161 | s2 += (ptr->cells.nstate.cell[j + 4][i] != 0) << j*8 + i; | ^ | ( ) history.c:173:19: warning: call to undeclared function 'fb_ins'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 173 | if (line&1) fb_ins(x, y, c); | ^ history.c:183:19: warning: call to undeclared function 'fb_ins'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 183 | if (line&3) fb_ins(x, y, c); | ^ history.c:189:20: warning: call to undeclared function 'fb_ins'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 189 | if (line&15) fb_ins(x, y, c); | ^ history.c:193:21: warning: call to undeclared function 'fb_ins'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 193 | if (line&255) fb_ins(x, y, c); | ^ history.c:231:16: warning: call to undeclared function 'fb_ins'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 231 | fb_ins(x, y, histpaint[color]); | ^ 14 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c isave.c warning: optimization level '-O5' is not supported; using '-O3' instead isave.c:246:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 246 | if (cp = strchr(buf, '#')) | ~~~^~~~~~~~~~~~~~~~~~ isave.c:246:10: note: place parentheses around the assignment to silence this warning 246 | if (cp = strchr(buf, '#')) | ^ | ( ) isave.c:246:10: note: use '==' to turn this assignment into an equality comparison 246 | if (cp = strchr(buf, '#')) | ^ | == 2 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c key.c warning: optimization level '-O5' is not supported; using '-O3' instead key.c:214:51: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 214 | sprintf(outbuf, "%c%c%c%c%c%c%c%c%c%c%c", itos(s[0]), itos(s[1]), | ~^ key.c:224:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 224 | if (fp = fopen(PATCH_LOG, "a")) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ key.c:224:17: note: place parentheses around the assignment to silence this warning 224 | if (fp = fopen(PATCH_LOG, "a")) { | ^ | ( ) key.c:224:17: note: use '==' to turn this assignment into an equality comparison 224 | if (fp = fopen(PATCH_LOG, "a")) { | ^ | == key.c:271:34: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 271 | sprintf(inpbuf, "%c%c%c%c%c%c%c%c%c: %c", itos(s), itos(n1), itos(n2), | ~^ 4 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c main.c warning: optimization level '-O5' is not supported; using '-O3' instead main.c:54:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 54 | extern char *getenv(); | ^ /usr/include/stdlib.h:110:7: note: conflicting prototype is here 110 | char *getenv(const char *); | ^ main.c:300:10: warning: call to undeclared function 'change_tentative_color'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | change_tentative_color(); | ^ main.c:459:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 459 | if (truehistory = !truehistory) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~ main.c:459:25: note: place parentheses around the assignment to silence this warning 459 | if (truehistory = !truehistory) { | ^ | ( ) main.c:459:25: note: use '==' to turn this assignment into an equality comparison 459 | if (truehistory = !truehistory) { | ^ | == main.c:964:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 964 | else if (x >= x_max_limit) | ^ main.c:969:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 969 | else if (y >= y_max_limit) | ^ main.c:1070:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1070 | if (f = XLoadQueryFont(disp, NORMALFONT)) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1070:10: note: place parentheses around the assignment to silence this warning 1070 | if (f = XLoadQueryFont(disp, NORMALFONT)) return f; | ^ | ( ) main.c:1070:10: note: use '==' to turn this assignment into an equality comparison 1070 | if (f = XLoadQueryFont(disp, NORMALFONT)) return f; | ^ | == main.c:1072:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1072 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1072:10: note: place parentheses around the assignment to silence this warning 1072 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ^ | ( ) main.c:1072:10: note: use '==' to turn this assignment into an equality comparison 1072 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ^ | == main.c:1074:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1074 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1074:10: note: place parentheses around the assignment to silence this warning 1074 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ^ | ( ) main.c:1074:10: note: use '==' to turn this assignment into an equality comparison 1074 | if (f = XLoadQueryFont(disp, fontspec)) return f; | ^ | == main.c:1080:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1080 | if (f = XLoadQueryFont(disp, "6x9")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1080:10: note: place parentheses around the assignment to silence this warning 1080 | if (f = XLoadQueryFont(disp, "6x9")) return f; | ^ | ( ) main.c:1080:10: note: use '==' to turn this assignment into an equality comparison 1080 | if (f = XLoadQueryFont(disp, "6x9")) return f; | ^ | == main.c:1081:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1081 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--9-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1081:10: note: place parentheses around the assignment to silence this warning 1081 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--9-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1081:10: note: use '==' to turn this assignment into an equality comparison 1081 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--9-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1082:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1082 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--8-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1082:10: note: place parentheses around the assignment to silence this warning 1082 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--8-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1082:10: note: use '==' to turn this assignment into an equality comparison 1082 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--8-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1083:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1083 | if (f = XLoadQueryFont(disp, "-*-courier-bold-r-*--8-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1083:10: note: place parentheses around the assignment to silence this warning 1083 | if (f = XLoadQueryFont(disp, "-*-courier-bold-r-*--8-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1083:10: note: use '==' to turn this assignment into an equality comparison 1083 | if (f = XLoadQueryFont(disp, "-*-courier-bold-r-*--8-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1084:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1084 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--10-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1084:10: note: place parentheses around the assignment to silence this warning 1084 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--10-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1084:10: note: use '==' to turn this assignment into an equality comparison 1084 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--10-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1085:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1085 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--9-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1085:10: note: place parentheses around the assignment to silence this warning 1085 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--9-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1085:10: note: use '==' to turn this assignment into an equality comparison 1085 | if (f = XLoadQueryFont(disp, "-*-*-*-r-*--9-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1086:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1086 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--11-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1086:10: note: place parentheses around the assignment to silence this warning 1086 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--11-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1086:10: note: use '==' to turn this assignment into an equality comparison 1086 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--11-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1087:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1087 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--12-*-*-*-*-*-*-*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1087:10: note: place parentheses around the assignment to silence this warning 1087 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--12-*-*-*-*-*-*-*")) return f; | ^ | ( ) main.c:1087:10: note: use '==' to turn this assignment into an equality comparison 1087 | if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--12-*-*-*-*-*-*-*")) return f; | ^ | == main.c:1088:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1088 | if (f = XLoadQueryFont(disp, "*6x*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1088:10: note: place parentheses around the assignment to silence this warning 1088 | if (f = XLoadQueryFont(disp, "*6x*")) return f; | ^ | ( ) main.c:1088:10: note: use '==' to turn this assignment into an equality comparison 1088 | if (f = XLoadQueryFont(disp, "*6x*")) return f; | ^ | == main.c:1089:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1089 | if (f = XLoadQueryFont(disp, "*7x*")) return f; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1089:10: note: place parentheses around the assignment to silence this warning 1089 | if (f = XLoadQueryFont(disp, "*7x*")) return f; | ^ | ( ) main.c:1089:10: note: use '==' to turn this assignment into an equality comparison 1089 | if (f = XLoadQueryFont(disp, "*7x*")) return f; | ^ | == 19 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c tentative.c warning: optimization level '-O5' is not supported; using '-O3' instead tentative.c:106:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 106 | else if (state = getcell(&ptr->cells, dx, dy)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tentative.c:106:18: note: place parentheses around the assignment to silence this warning 106 | else if (state = getcell(&ptr->cells, dx, dy)) { | ^ | ( ) tentative.c:106:18: note: use '==' to turn this assignment into an equality comparison 106 | else if (state = getcell(&ptr->cells, dx, dy)) { | ^ | == tentative.c:130:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 130 | if (state = getcell(&ptr->cells, dx, dy)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tentative.c:130:26: note: place parentheses around the assignment to silence this warning 130 | if (state = getcell(&ptr->cells, dx, dy)) { | ^ | ( ) tentative.c:130:26: note: use '==' to turn this assignment into an equality comparison 130 | if (state = getcell(&ptr->cells, dx, dy)) { | ^ | == 3 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c tile.c warning: optimization level '-O5' is not supported; using '-O3' instead tile.c:93:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 93 | if (ptr = p->hashlist[i]) { | ~~~~^~~~~~~~~~~~~~~~ tile.c:93:15: note: place parentheses around the assignment to silence this warning 93 | if (ptr = p->hashlist[i]) { | ^ | ( ) tile.c:93:15: note: use '==' to turn this assignment into an equality comparison 93 | if (ptr = p->hashlist[i]) { | ^ | == tile.c:94:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 94 | do hashsum++; while (ptr = ptr->hnext); | ~~~~^~~~~~~~~~~~ tile.c:94:35: note: place parentheses around the assignment to silence this warning 94 | do hashsum++; while (ptr = ptr->hnext); | ^ | ( ) tile.c:94:35: note: use '==' to turn this assignment into an equality comparison 94 | do hashsum++; while (ptr = ptr->hnext); | ^ | == tile.c:100:68: warning: format specifies type 'long' but the argument has type 'cellcount_t' (aka 'unsigned int') [-Wformat] 97 | sprintf(inpbuf, "Hash %s: X=%u Y=%u [%u] filled=%.4f badness=%.3f tiles=%ld", | ~~~ | %u 98 | p == &active? "active": "tentative", 99 | HASHBITS - 3 - p->hxs, 3 + p->hxs, HASHBITS, (double)hashcount/HASHSIZE, 100 | hashcount ? (double)hashsum/hashcount : 0, p->tilecount); | ^~~~~~~~~~~~ tile.c:108:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 108 | if (ptr->hnext = p->hashlist[hv]) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ tile.c:108:22: note: place parentheses around the assignment to silence this warning 108 | if (ptr->hnext = p->hashlist[hv]) | ^ | ( ) tile.c:108:22: note: use '==' to turn this assignment into an equality comparison 108 | if (ptr->hnext = p->hashlist[hv]) | ^ | == tile.c:117:32: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 117 | p->hxm = ((1 << HASHBITS - HASHBITS/2) - 1) << 3, | ~~ ~~~~~~~~~^~~~~~~~~~~~ tile.c:117:32: note: place parentheses around the '-' expression to silence this warning 117 | p->hxm = ((1 << HASHBITS - HASHBITS/2) - 1) << 3, | ~~~~~~~~~^~~~~~~~~~~~ tile.c:129:22: warning: operator '>>' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 129 | while (p->xmax - p->xmin >> 3 + xc++); | ~~~~~~~~^~~~~~~~~ ~~ tile.c:129:22: note: place parentheses around the '-' expression to silence this warning 129 | while (p->xmax - p->xmin >> 3 + xc++); | ^ | ( ) tile.c:129:37: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 129 | while (p->xmax - p->xmin >> 3 + xc++); | ~~ ~~^~~~~~ tile.c:129:37: note: place parentheses around the '+' expression to silence this warning 129 | while (p->xmax - p->xmin >> 3 + xc++); | ^ | ( ) tile.c:130:22: warning: operator '>>' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 130 | while (p->ymax - p->ymin >> 3 + yc++); | ~~~~~~~~^~~~~~~~~ ~~ tile.c:130:22: note: place parentheses around the '-' expression to silence this warning 130 | while (p->ymax - p->ymin >> 3 + yc++); | ^ | ( ) tile.c:130:37: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 130 | while (p->ymax - p->ymin >> 3 + yc++); | ~~ ~~^~~~~~ tile.c:130:37: note: place parentheses around the '+' expression to silence this warning 130 | while (p->ymax - p->ymin >> 3 + yc++); | ^ | ( ) tile.c:276:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 276 | if (ptr = findtile(context, hx, hy, hv)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:276:12: note: place parentheses around the assignment to silence this warning 276 | if (ptr = findtile(context, hx, hy, hv)) | ^ | ( ) tile.c:276:12: note: use '==' to turn this assignment into an equality comparison 276 | if (ptr = findtile(context, hx, hy, hv)) | ^ | == tile.c:305:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 305 | if (ptr = findtile(context, x, y, hv)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:305:13: note: place parentheses around the assignment to silence this warning 305 | if (ptr = findtile(context, x, y, hv)) | ^ | ( ) tile.c:305:13: note: use '==' to turn this assignment into an equality comparison 305 | if (ptr = findtile(context, x, y, hv)) | ^ | == tile.c:396:71: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 396 | while (curtile->dead || labs((long)xnew - (long)xpos) < 10 << 6 - scale | ~~ ~~^~~~~~~ tile.c:396:71: note: place parentheses around the '-' expression to silence this warning 396 | while (curtile->dead || labs((long)xnew - (long)xpos) < 10 << 6 - scale | ^ | ( ) tile.c:397:70: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 397 | && labs((long)ynew - (long)ypos) < 10 << 6 - scale) { | ~~ ~~^~~~~~~ tile.c:397:70: note: place parentheses around the '-' expression to silence this warning 397 | && labs((long)ynew - (long)ypos) < 10 << 6 - scale) { | ^ | ( ) tile.c:664:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 664 | if (state = getcell(&ptr->cells, dx, dy)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:664:17: note: place parentheses around the assignment to silence this warning 664 | if (state = getcell(&ptr->cells, dx, dy)) { | ^ | ( ) tile.c:664:17: note: use '==' to turn this assignment into an equality comparison 664 | if (state = getcell(&ptr->cells, dx, dy)) { | ^ | == tile.c:800:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 800 | if (val = lookcell(pp, x, y)) { | ~~~~^~~~~~~~~~~~~~~~~~~~ tile.c:800:14: note: place parentheses around the assignment to silence this warning 800 | if (val = lookcell(pp, x, y)) { | ^ | ( ) tile.c:800:14: note: use '==' to turn this assignment into an equality comparison 800 | if (val = lookcell(pp, x, y)) { | ^ | == tile.c:907:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 907 | else | ^ tile.c:915:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 915 | if (val = getcell(&ptr->cells, dx, dy)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:915:12: note: place parentheses around the assignment to silence this warning 915 | if (val = getcell(&ptr->cells, dx, dy)) | ^ | ( ) tile.c:915:12: note: use '==' to turn this assignment into an equality comparison 915 | if (val = getcell(&ptr->cells, dx, dy)) | ^ | == tile.c:920:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 920 | else | ^ tile.c:929:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 929 | if (val = getcell(&ptr->cells, dx, dy)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:929:11: note: place parentheses around the assignment to silence this warning 929 | if (val = getcell(&ptr->cells, dx, dy)) | ^ | ( ) tile.c:929:11: note: use '==' to turn this assignment into an equality comparison 929 | if (val = getcell(&ptr->cells, dx, dy)) | ^ | == tile.c:934:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 934 | else | ^ tile.c:948:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 948 | if (val = getcell(&ptr->cells, dx, dy)) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:948:12: note: place parentheses around the assignment to silence this warning 948 | if (val = getcell(&ptr->cells, dx, dy)) { | ^ | ( ) tile.c:948:12: note: use '==' to turn this assignment into an equality comparison 948 | if (val = getcell(&ptr->cells, dx, dy)) { | ^ | == 22 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c topology.c warning: optimization level '-O5' is not supported; using '-O3' instead topology.c:190:12: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 190 | x = (x + 7 >> 3)*8; | ~~^~~ ~~ topology.c:190:12: note: place parentheses around the '+' expression to silence this warning 190 | x = (x + 7 >> 3)*8; | ^ | ( ) topology.c:191:12: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 191 | y = (y + 7 >> 3)*8; | ~~^~~ ~~ topology.c:191:12: note: place parentheses around the '+' expression to silence this warning 191 | y = (y + 7 >> 3)*8; | ^ | ( ) topology.c:303:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 303 | else | ^ topology.c:310:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 310 | else | ^ topology.c:339:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 339 | else | ^ 6 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c utils.c warning: optimization level '-O5' is not supported; using '-O3' instead utils.c:60:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 60 | fprintf(stderr, s); | ^ utils.c:60:20: note: treat the string as an argument to avoid this 60 | fprintf(stderr, s); | ^ | "%s", utils.c:153:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] 153 | else | ^ utils.c:242:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 242 | extern char *ctime(); | ^ /usr/include/time.h:115:7: note: conflicting prototype is here 115 | char *ctime(const time_t *); | ^ utils.c:246:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 246 | if (pw = getpwuid(getuid())) | ~~~^~~~~~~~~~~~~~~~~~~~ utils.c:246:12: note: place parentheses around the assignment to silence this warning 246 | if (pw = getpwuid(getuid())) | ^ | ( ) utils.c:246:12: note: use '==' to turn this assignment into an equality comparison 246 | if (pw = getpwuid(getuid())) | ^ | == 5 warnings generated. cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c xwidget.c warning: optimization level '-O5' is not supported; using '-O3' instead xwidget.c:89:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 89 | if (dp = opendir(dir)) { | ~~~^~~~~~~~~~~~~~ xwidget.c:89:11: note: place parentheses around the assignment to silence this warning 89 | if (dp = opendir(dir)) { | ^ | ( ) xwidget.c:89:11: note: use '==' to turn this assignment into an equality comparison 89 | if (dp = opendir(dir)) { | ^ | == xwidget.c:90:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 90 | while (entry = readdir(dp)) { | ~~~~~~^~~~~~~~~~~~~ xwidget.c:90:20: note: place parentheses around the assignment to silence this warning 90 | while (entry = readdir(dp)) { | ^ | ( ) xwidget.c:90:20: note: use '==' to turn this assignment into an equality comparison 90 | while (entry = readdir(dp)) { | ^ | == xwidget.c:438:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 438 | if (fp = fopen(add_opt_ext(fn, LOADEXT), "r")) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:438:11: note: place parentheses around the assignment to silence this warning 438 | if (fp = fopen(add_opt_ext(fn, LOADEXT), "r")) { | ^ | ( ) xwidget.c:438:11: note: use '==' to turn this assignment into an equality comparison 438 | if (fp = fopen(add_opt_ext(fn, LOADEXT), "r")) { | ^ | == xwidget.c:531:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 531 | if (p = checktilda(widget_fn)) | ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:531:19: note: place parentheses around the assignment to silence this warning 531 | if (p = checktilda(widget_fn)) | ^ | ( ) xwidget.c:531:19: note: use '==' to turn this assignment into an equality comparison 531 | if (p = checktilda(widget_fn)) | ^ | == xwidget.c:535:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 535 | if (p = checktilda(widget_fn)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:535:19: note: place parentheses around the assignment to silence this warning 535 | if (p = checktilda(widget_fn)) { | ^ | ( ) xwidget.c:535:19: note: use '==' to turn this assignment into an equality comparison 535 | if (p = checktilda(widget_fn)) { | ^ | == xwidget.c:542:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 542 | if (p = checktilda(widget_fn)) | ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:542:19: note: place parentheses around the assignment to silence this warning 542 | if (p = checktilda(widget_fn)) | ^ | ( ) xwidget.c:542:19: note: use '==' to turn this assignment into an equality comparison 542 | if (p = checktilda(widget_fn)) | ^ | == xwidget.c:590:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] 590 | else | ^ xwidget.c:628:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] 628 | else | ^ xwidget.c:639:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] 639 | else | ^ 10 warnings generated. rm -f xlife cc -o xlife -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -L/usr/X11R6/lib -L/usr/local/lib cell.o clipboard.o collect.o colors.o data.o file.o file_misc.o framebuffer.o generate.o gentab.o help.o history.o isave.o key.o main.o tentative.o tile.o topology.o utils.o xwidget.o -lX11 -lm -Wl,-rpath,/usr/local/lib ld: warning: clipboard.c:103(clipboard.o:(clipboard_copy)): warning: sprintf() is often misused, please use snprintf() ld: warning: collect.c:269(collect.o:(collect)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: collect.c:0(collect.o:(do_loadfile1)): warning: strcat() is almost always misused, please use strlcat() ld: warning: utils.c:220(utils.o:(randomize)): warning: random() may return deterministic values, is that what you want? rm -f lifeconv ln -s xlife lifeconv make depend rm -f .depend gccmakedep -f- -- -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -- > .depend ===> Building for xlife-6.7.6 cc -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -I/usr/local/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -c -o gen-multirules.o gen-multirules.c warning: optimization level '-O5' is not supported; using '-O3' instead gen-multirules.c:33:24: warning: parameter 'k' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 33 | unsigned long power(n, k) { | ^ gen-multirules.c:33:21: warning: parameter 'n' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 33 | unsigned long power(n, k) { | ^ gen-multirules.c:33:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | unsigned long power(n, k) { | ^ gen-multirules.c:98:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 98 | *rs |= 1 << *p++ - '0'; | ~~ ~~~~~^~~~~ gen-multirules.c:98:30: note: place parentheses around the '-' expression to silence this warning 98 | *rs |= 1 << *p++ - '0'; | ^ | ( ) gen-multirules.c:102:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 102 | *rb |= 1 << *p++ - '0'; | ~~ ~~~~~^~~~~ gen-multirules.c:102:30: note: place parentheses around the '-' expression to silence this warning 102 | *rb |= 1 << *p++ - '0'; | ^ | ( ) gen-multirules.c:104:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 104 | else if (p = strchr(rule, '/')) { | ~~^~~~~~~~~~~~~~~~~~~ gen-multirules.c:104:15: note: place parentheses around the assignment to silence this warning 104 | else if (p = strchr(rule, '/')) { | ^ | ( ) gen-multirules.c:104:15: note: use '==' to turn this assignment into an equality comparison 104 | else if (p = strchr(rule, '/')) { | ^ | == gen-multirules.c:107:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 107 | *rs |= 1 << *rule++ - '0'; | ~~ ~~~~~~~~^~~~~ gen-multirules.c:107:30: note: place parentheses around the '-' expression to silence this warning 107 | *rs |= 1 << *rule++ - '0'; | ^ | ( ) gen-multirules.c:111:33: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 111 | *rb |= 1 << *rule++ - '0'; | ~~ ~~~~~~~~^~~~~ gen-multirules.c:111:33: note: place parentheses around the '-' expression to silence this warning 111 | *rb |= 1 << *rule++ - '0'; | ^ | ( ) gen-multirules.c:123:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 123 | while (p = strchr(rules, ',')) { | ~~^~~~~~~~~~~~~~~~~~~~ gen-multirules.c:123:13: note: place parentheses around the assignment to silence this warning 123 | while (p = strchr(rules, ',')) { | ^ | ( ) gen-multirules.c:123:13: note: use '==' to turn this assignment into an equality comparison 123 | while (p = strchr(rules, ',')) { | ^ | == gen-multirules.c:183:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 183 | else | ^ gen-multirules.c:206:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 206 | else | ^ 12 warnings generated. rm -f gen-multirules cc -o gen-multirules -g -O5 -DLIFEDIR=\"/usr/share/xlife/patterns\" -DHASHBITS=20 -DVFREQ=50 -L/usr/X11R6/lib -L/usr/local/lib gen-multirules.o -lm -Wl,-rpath,/usr/local/lib sed 1s!GAWKPATH!/usr/local/bin/gawk! table2r.script rm -f xlife._man if test -z "" ; then \ cd `dirname xlife` && \ ln -s `basename xlife.man` `basename xlife._man`; \ else \ /usr/libexec/cpp -undef -traditional -D__apploaddir__=/usr/local/lib/X11/app-defaults -D__appmansuffix__=6 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/X11R6 -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/local/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 cd /exopi-obj/pobj/xlife-6.7.6/xlife-6.7 && /usr/bin/make CFLAGS="-O2 -pipe " >>> Running package in games/xlife at 1764445536.09 ===> games/xlife ===> Faking installation for xlife-6.7.6 /exopi-obj/pobj/xlife-6.7.6/bin/install -c -s -m 755 /exopi-obj/pobj/xlife-6.7.6/xlife-6.7/gen-multirules /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/bin /exopi-obj/pobj/xlife-6.7.6/bin/install -c -s -m 755 /exopi-obj/pobj/xlife-6.7.6/xlife-6.7/table2r /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/bin strip: error: '/exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/bin/INS@Vcw24lTTR1': The file was not recognized as a valid object file /exopi-obj/pobj/xlife-6.7.6/bin/install -c -s -m 755 /exopi-obj/pobj/xlife-6.7.6/xlife-6.7/xlife /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/bin cd /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/bin && ln -sf xlife lifeconv /exopi-obj/pobj/xlife-6.7.6/bin/install -c -m 644 /exopi-obj/pobj/xlife-6.7.6/xlife-6.7/xlife.man /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/man/man6/xlife.6 cd /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/man/man6 && ln -sf xlife.6 lifeconv.6 /exopi-obj/pobj/xlife-6.7.6/bin/install -d -m 755 /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/share/xlife cp -r /exopi-obj/pobj/xlife-6.7.6/xlife-6.7/patterns /exopi-obj/pobj/xlife-6.7.6/fake-amd64/usr/local/share/xlife ===> Building package for xlife-6.7.6 Create /exopi-cvs/ports/packages/amd64/all/xlife-6.7.6.tgz Creating package xlife-6.7.6 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|* | 2% checksumming|*** | 4% checksumming|**** | 7% checksumming|***** | 9% checksumming|******* | 11% checksumming|******** | 13% checksumming|********* | 15% checksumming|*********** | 17% checksumming|************ | 20% checksumming|************* | 22% checksumming|*************** | 24% checksumming|**************** | 26% checksumming|***************** | 28% checksumming|******************* | 30% checksumming|******************** | 33% checksumming|********************* | 35% checksumming|*********************** | 37% checksumming|************************ | 39% checksumming|************************* | 41% checksumming|*************************** | 43% checksumming|**************************** | 46% checksumming|***************************** | 48% checksumming|******************************* | 50% checksumming|******************************** | 52% checksumming|********************************* | 54% checksumming|********************************** | 57% checksumming|************************************ | 59% checksumming|************************************* | 61% checksumming|************************************** | 63% checksumming|**************************************** | 65% checksumming|***************************************** | 67% checksumming|****************************************** | 70% checksumming|******************************************** | 72% checksumming|********************************************* | 74% checksumming|********************************************** | 76% checksumming|************************************************ | 78% checksumming|************************************************* | 80% checksumming|************************************************** | 83% checksumming|**************************************************** | 85% checksumming|***************************************************** | 87% checksumming|****************************************************** | 89% checksumming|******************************************************** | 91% checksumming|********************************************************* | 93% checksumming|********************************************************** | 96% checksumming|************************************************************ | 98% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|** | 4% archiving|************************************************ | 76% archiving|************************************************* | 76% archiving|********************************************************** | 91% archiving|*********************************************************** | 92% archiving|*********************************************************** | 93% archiving|************************************************************ | 93% archiving|************************************************************* | 95% archiving|************************************************************* | 96% archiving|************************************************************** | 97% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/xlife-6.7.6.tgz >>> Running clean in games/xlife at 1764445537.85 ===> games/xlife ===> Cleaning for xlife-6.7.6 >>> Ended at 1764445538.10 max_stuck=1.94/depends=1.89/show-prepare-results=0.98/build=10.56/package=1.76/clean=0.28