>>> Building on exopi-3 under games/xlife BDEPENDS = [devel/imake-cf;devel/imake;archivers/bzip2;devel/gmake] DIST = [games/xlife:xlife-6.7.6.tar.bz2] FULLPKGNAME = xlife-6.7.6 (Junk lock obtained for exopi-3 at 1732129692.54) >>> Running depends in games/xlife at 1732129692.58 last junk was in net/py-cymruwhois,python3 /usr/sbin/pkg_add -aI -Drepair imake-1.0.9 imake-cf-1.0.7p0 was: /usr/sbin/pkg_add -aI -Drepair bzip2-1.0.8p0 gmake-4.4.1 imake-1.0.9 imake-cf-1.0.7p0 /usr/sbin/pkg_add -aI -Drepair imake-1.0.9 imake-cf-1.0.7p0 >>> Running show-prepare-results in games/xlife at 1732129696.59 ===> games/xlife ===> Building from scratch xlife-6.7.6 ===> xlife-6.7.6 depends on: imake-* -> imake-1.0.9 ===> xlife-6.7.6 depends on: imake-cf-* -> imake-cf-1.0.7p0 ===> xlife-6.7.6 depends on: gmake-* -> gmake-4.4.1 ===> xlife-6.7.6 depends on: bzip2-* -> bzip2-1.0.8p0 ===> Verifying specs: X11 c m ===> found X11.18.2 c.100.3 m.10.1 bzip2-1.0.8p0 gmake-4.4.1 imake-1.0.9 imake-cf-1.0.7p0 (Junk lock released for exopi-3 at 1732129697.75) distfiles size=153025 >>> Running build in games/xlife at 1732129697.78 ===> 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] return (ptr->twostate.live2 & 1 << (ydx - 4)*8 + xdx) != 0; ~~ ~~~~~~~~~~~~^~~~~ cell.c:57:54: note: place parentheses around the '+' expression to silence this warning 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] return (ptr->twostate.live1 & 1 << ydx*8 + xdx) != 0; ~~ ~~~~~~^~~~~ cell.c:59:48: note: place parentheses around the '+' expression to silence this warning 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] if (ns = ptr->nstate.cell[i][j]) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:198:32: note: place parentheses around the assignment to silence this warning if (ns = ptr->nstate.cell[i][j]) { ^ ( ) cell.c:198:32: note: use '==' to turn this assignment into an equality comparison if (ns = ptr->nstate.cell[i][j]) { ^ == cell.c:213:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] if (ns = ptr->nstate.cell[i][j]) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:351:32: note: place parentheses around the assignment to silence this warning if (ns = ptr->nstate.cell[i][j]) { ^ ( ) cell.c:351:32: note: use '==' to turn this assignment into an equality comparison if (ns = ptr->nstate.cell[i][j]) { ^ == cell.c:364:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 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 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 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] if (ns = ptr->nstate.cell[i][j]) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~ cell.c:372:26: note: place parentheses around the assignment to silence this warning if (ns = ptr->nstate.cell[i][j]) { ^ ( ) cell.c:372:26: note: use '==' to turn this assignment into an equality comparison 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] if (c = (*cp - '@' + dc)%mod) ~~^~~~~~~~~~~~~~~~~~~~~~ clipboard.c:69:19: note: place parentheses around the assignment to silence this warning if (c = (*cp - '@' + dc)%mod) ^ ( ) clipboard.c:69:19: note: use '==' to turn this assignment into an equality comparison if (c = (*cp - '@' + dc)%mod) ^ == clipboard.c:138:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&tp->cells, x, y)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ clipboard.c:138:21: note: place parentheses around the assignment to silence this warning if (val = getcell(&tp->cells, x, y)) { ^ ( ) clipboard.c:138:21: note: use '==' to turn this assignment into an equality comparison if (val = getcell(&tp->cells, x, y)) { ^ == clipboard.c:182:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (q = bounding_box(pp)) { ~~^~~~~~~~~~~~~~~~~~ clipboard.c:182:10: note: place parentheses around the assignment to silence this warning if (q = bounding_box(pp)) { ^ ( ) clipboard.c:182:10: note: use '==' to turn this assignment into an equality comparison if (q = bounding_box(pp)) { ^ == clipboard.c:192:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = clipboard.first) { ~~^~~~~~~~~~~~~~~~~ clipboard.c:192:10: note: place parentheses around the assignment to silence this warning if (p = clipboard.first) { ^ ( ) clipboard.c:192:10: note: use '==' to turn this assignment into an equality comparison 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] while (p = strstr(patfile, "./")) /* removes exessive part */ ~~^~~~~~~~~~~~~~~~~~~~~~~ collect.c:138:13: note: place parentheses around the assignment to silence this warning while (p = strstr(patfile, "./")) /* removes exessive part */ ^ ( ) collect.c:138:13: note: use '==' to turn this assignment into an equality comparison 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] 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] 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] 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] 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] if (cp = getenv("LIFEPATH")) { ~~~^~~~~~~~~~~~~~~~~~~~ file.c:103:11: note: place parentheses around the assignment to silence this warning if (cp = getenv("LIFEPATH")) { ^ ( ) file.c:103:11: note: use '==' to turn this assignment into an equality comparison if (cp = getenv("LIFEPATH")) { ^ == file.c:109:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (cp = strtok(0, ":")); ~~~^~~~~~~~~~~~~~~~ file.c:109:19: note: place parentheses around the assignment to silence this warning } while (cp = strtok(0, ":")); ^ ( ) file.c:109:19: note: use '==' to turn this assignment into an equality comparison } while (cp = strtok(0, ":")); ^ == file.c:166:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwnam(full)) ~~~^~~~~~~~~~~~~~~~ file.c:166:17: note: place parentheses around the assignment to silence this warning if (pw = getpwnam(full)) ^ ( ) file.c:166:17: note: use '==' to turn this assignment into an equality comparison if (pw = getpwnam(full)) ^ == file.c:161:30: warning: unsequenced modification and access to 'i' [-Wunsequenced] full[i - 1] = stng[i++]; ~ ^ file.c:193:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (savefl = fopen(add_opt_ext(fn, LOADEXT), "w")) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:193:15: note: place parentheses around the assignment to silence this warning if (savefl = fopen(add_opt_ext(fn, LOADEXT), "w")) { ^ ( ) file.c:193:15: note: use '==' to turn this assignment into an equality comparison 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] setcurdir("."); /* update widget's file list */ ^ file.c:214:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (colptr = strchr(filename, ':')) *colptr = '\0'; ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ file.c:214:15: note: place parentheses around the assignment to silence this warning if (colptr = strchr(filename, ':')) *colptr = '\0'; ^ ( ) file.c:214:15: note: use '==' to turn this assignment into an equality comparison if (colptr = strchr(filename, ':')) *colptr = '\0'; ^ == file.c:246:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (t < strlen(cp)) ^ file.c:262:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strrchr(loadqueue->patname, '/')) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file.c:262:11: note: place parentheses around the assignment to silence this warning if (cp = strrchr(loadqueue->patname, '/')) ^ ( ) file.c:262:11: note: use '==' to turn this assignment into an equality comparison if (cp = strrchr(loadqueue->patname, '/')) ^ == file.c:277:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (quitload = breakreq()) ~~~~~~~~~^~~~~~~~~~~~ file.c:277:23: note: place parentheses around the assignment to silence this warning if (quitload = breakreq()) ^ ( ) file.c:277:23: note: use '==' to turn this assignment into an equality comparison if (quitload = breakreq()) ^ == file.c:489:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = opendir(*dirp)) { ~~~^~~~~~~~~~~~~~~~ file.c:489:17: note: place parentheses around the assignment to silence this warning if (dp = opendir(*dirp)) { ^ ( ) file.c:489:17: note: use '==' to turn this assignment into an equality comparison if (dp = opendir(*dirp)) { ^ == file.c:490:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (entry = readdir(dp)) { ~~~~~~^~~~~~~~~~~~~ file.c:490:26: note: place parentheses around the assignment to silence this warning while (entry = readdir(dp)) { ^ ( ) file.c:490:26: note: use '==' to turn this assignment into an equality comparison while (entry = readdir(dp)) { ^ == file.c:508:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (loadfl = fopen(fullpath, "r")) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:508:15: note: place parentheses around the assignment to silence this warning if (loadfl = fopen(fullpath, "r")) { ^ ( ) file.c:508:15: note: use '==' to turn this assignment into an equality comparison if (loadfl = fopen(fullpath, "r")) { ^ == file.c:655:22: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ file.c:663:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (errmsg = use_colors(cp, dirs)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:663:30: note: place parentheses around the assignment to silence this warning if (errmsg = use_colors(cp, dirs)) { ^ ( ) file.c:663:30: note: use '==' to turn this assignment into an equality comparison if (errmsg = use_colors(cp, dirs)) { ^ == file.c:689:22: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ file.c:809:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strstr(buf, "CXRLE")) { ~~^~~~~~~~~~~~~~~~~~~~~~ file.c:809:22: note: place parentheses around the assignment to silence this warning if (p = strstr(buf, "CXRLE")) { ^ ( ) file.c:809:22: note: use '==' to turn this assignment into an equality comparison if (p = strstr(buf, "CXRLE")) { ^ == file.c:810:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strstr(p + 6, "Pos")) ~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:810:26: note: place parentheses around the assignment to silence this warning if (cp = strstr(p + 6, "Pos")) ^ ( ) file.c:810:26: note: use '==' to turn this assignment into an equality comparison if (cp = strstr(p + 6, "Pos")) ^ == file.c:812:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strstr(p + 6, "Gen")) ~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:812:26: note: place parentheses around the assignment to silence this warning if (cp = strstr(p + 6, "Gen")) ^ ( ) file.c:812:26: note: use '==' to turn this assignment into an equality comparison if (cp = strstr(p + 6, "Gen")) ^ == file.c:813:47: warning: format specifies type 'unsigned int *' but the argument has type 'unsigned long *' [-Wformat] sscanf(cp + 3, " = %ul", &context->generations); ~~ ^~~~~~~~~~~~~~~~~~~~~ %lu file.c:819:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strrchr(patid, ':')) { ~~^~~~~~~~~~~~~~~~~~~~~ file.c:819:22: note: place parentheses around the assignment to silence this warning if (p = strrchr(patid, ':')) { ^ ( ) file.c:819:22: note: use '==' to turn this assignment into an equality comparison if (p = strrchr(patid, ':')) { ^ == file.c:833:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strchr(patid, '/')) ~~~^~~~~~~~~~~~~~~~~~~~ file.c:833:23: note: place parentheses around the assignment to silence this warning if (cp = strchr(patid, '/')) ^ ( ) file.c:833:23: note: use '==' to turn this assignment into an equality comparison if (cp = strchr(patid, '/')) ^ == file.c:839:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (toupper(patid[0]) == 'B') { ^ file.c:896:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strchr(tmpstring, 'x')) { ~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:896:22: note: place parentheses around the assignment to silence this warning if (p = strchr(tmpstring, 'x')) { ^ ( ) file.c:896:22: note: use '==' to turn this assignment into an equality comparison if (p = strchr(tmpstring, 'x')) { ^ == file.c:970:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (savefl = fopen(outbuf, "w")) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~ file.c:970:15: note: place parentheses around the assignment to silence this warning if (savefl = fopen(outbuf, "w")) { ^ ( ) file.c:970:15: note: use '==' to turn this assignment into an equality comparison if (savefl = fopen(outbuf, "w")) { ^ == file.c:1138:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dp = opendir(*dirp)) { ~~~^~~~~~~~~~~~~~~~ file.c:1138:17: note: place parentheses around the assignment to silence this warning if (dp = opendir(*dirp)) { ^ ( ) file.c:1138:17: note: use '==' to turn this assignment into an equality comparison if (dp = opendir(*dirp)) { ^ == file.c:1140:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (entry = readdir(dp)) { ~~~~~~^~~~~~~~~~~~~ file.c:1140:26: note: place parentheses around the assignment to silence this warning while (entry = readdir(dp)) { ^ ( ) file.c:1140:26: note: use '==' to turn this assignment into an equality comparison while (entry = readdir(dp)) { ^ == file.c:1150:39: warning: unsequenced modification and access to 'subdirscount' [-Wunsequenced] subdirs[subdirscount++] = strcpy(dirstore[subdirscount], ^ ~~~~~~~~~~~~ file.c:1177:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strrchr(rulefile, '/')) ~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:1177:16: note: place parentheses around the assignment to silence this warning if (p = strrchr(rulefile, '/')) ^ ( ) file.c:1177:16: note: use '==' to turn this assignment into an equality comparison if (p = strrchr(rulefile, '/')) ^ == file.c:1191:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (errmsg = use_rules(rules, dirs)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ file.c:1191:15: note: place parentheses around the assignment to silence this warning if (errmsg = use_rules(rules, dirs)) { ^ ( ) file.c:1191:15: note: use '==' to turn this assignment into an equality comparison if (errmsg = use_rules(rules, dirs)) { ^ == file.c:1208:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ file.c:1259:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (errmsg = use_colors(pn, dirs)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ file.c:1259:15: note: place parentheses around the assignment to silence this warning if (errmsg = use_colors(pn, dirs)) { ^ ( ) file.c:1259:15: note: use '==' to turn this assignment into an equality comparison 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] if (t3 = cptr->cells.gstate.cell[t2][t1]) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:891:26: note: place parentheses around the assignment to silence this warning if (t3 = cptr->cells.gstate.cell[t2][t1]) ^ ( ) generate.c:891:26: note: use '==' to turn this assignment into an equality comparison if (t3 = cptr->cells.gstate.cell[t2][t1]) ^ == generate.c:1196:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ generate.c:1205:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t3 = cptr->cells.gstate.cell[t2][t1]) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1205:27: note: place parentheses around the assignment to silence this warning if (t3 = cptr->cells.gstate.cell[t2][t1]) ^ ( ) generate.c:1205:27: note: use '==' to turn this assignment into an equality comparison if (t3 = cptr->cells.gstate.cell[t2][t1]) ^ == generate.c:1277:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ generate.c:1286:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (t3 = cptr->cells.gstate.cell[t2][t1]) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1286:27: note: place parentheses around the assignment to silence this warning if (t3 = cptr->cells.gstate.cell[t2][t1]) ^ ( ) generate.c:1286:27: note: use '==' to turn this assignment into an equality comparison 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] live |= 1 << *p++ - '0'; ~~ ~~~~~^~~~~ generate.c:1352:28: note: place parentheses around the '-' expression to silence this warning live |= 1 << *p++ - '0'; ^ ( ) generate.c:1355:28: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] born |= 1 << *p++ - '0'; ~~ ~~~~~^~~~~ generate.c:1355:28: note: place parentheses around the '-' expression to silence this warning born |= 1 << *p++ - '0'; ^ ( ) generate.c:1362:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] live |= 1 << *ptr++ - '0'; ~~ ~~~~~~~^~~~~ generate.c:1362:30: note: place parentheses around the '-' expression to silence this warning live |= 1 << *ptr++ - '0'; ^ ( ) generate.c:1366:33: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] born |= 1 << *ptr++ - '0'; ~~ ~~~~~~~^~~~~ generate.c:1366:33: note: place parentheses around the '-' expression to silence this warning born |= 1 << *ptr++ - '0'; ^ ( ) generate.c:1451:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strrchr(ptrbuf, ':')) *p = 0; ~~^~~~~~~~~~~~~~~~~~~~~~ generate.c:1451:11: note: place parentheses around the assignment to silence this warning if (p = strrchr(ptrbuf, ':')) *p = 0; ^ ( ) generate.c:1451:11: note: use '==' to turn this assignment into an equality comparison if (p = strrchr(ptrbuf, ':')) *p = 0; ^ == generate.c:1465:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ generate.c:1632: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:1632:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y)) { ^ ( ) generate.c:1632:12: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1637:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y)) { ^ ( ) generate.c:1637:12: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x, cptr->y - BOXSIZE)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1642:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x, cptr->y - BOXSIZE)) { ^ ( ) generate.c:1642:12: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x, cptr->y + BOXSIZE)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1647:12: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x, cptr->y + BOXSIZE)) { ^ ( ) generate.c:1647:12: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y - BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1651:13: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y - BOXSIZE)) ^ ( ) generate.c:1651:13: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y - BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1653:13: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y - BOXSIZE)) ^ ( ) generate.c:1653:13: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y + BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1655:13: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x + BOXSIZE, cptr->y + BOXSIZE)) ^ ( ) generate.c:1655:13: note: use '==' to turn this assignment into an equality comparison 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] if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1657:13: note: place parentheses around the assignment to silence this warning if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) ^ ( ) generate.c:1657:13: note: use '==' to turn this assignment into an equality comparison if (ncptr = fetchtile(context, cptr->x - BOXSIZE, cptr->y + BOXSIZE)) ^ == generate.c:1704:25: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ generate.c:1722:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (newval = hold[i][j]) { ~~~~~~~^~~~~~~~~~~~ generate.c:1722:14: note: place parentheses around the assignment to silence this warning if (newval = hold[i][j]) { ^ ( ) generate.c:1722:14: note: use '==' to turn this assignment into an equality comparison if (newval = hold[i][j]) { ^ == generate.c:1700:56: warning: unsequenced modification and access to 'newval' [-Wunsequenced] make_transition8(0, newval = hold[i][j], hold[i - 1][j], ^ generate.c:1873:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (newval = cptr->cells.nstate.cell[t2][t1]) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generate.c:1873:32: note: place parentheses around the assignment to silence this warning if (newval = cptr->cells.nstate.cell[t2][t1]) { ^ ( ) generate.c:1873:32: note: use '==' to turn this assignment into an equality comparison if (newval = cptr->cells.nstate.cell[t2][t1]) { ^ == generate.c:1890:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1891:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1892:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1893:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1895:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1896:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1897:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1898:12: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1902:14: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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' else\ ^ generate.c:1994: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:1995: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:1995: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:2069:13: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] 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] || 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] || err == E_WRONGNUM || err == E_BADCHAR) ^ ~~~~~~~~~ generate.c:2090:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strchr(buf, '#')) { ~~~^~~~~~~~~~~~~~~~~~ generate.c:2090:9: note: place parentheses around the assignment to silence this warning if (cp = strchr(buf, '#')) { ^ ( ) generate.c:2090:9: note: use '==' to turn this assignment into an equality comparison if (cp = strchr(buf, '#')) { ^ == generate.c:2178:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (errmsg = parse_recurse(buf, 0)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ generate.c:2178:18: note: place parentheses around the assignment to silence this warning else if (errmsg = parse_recurse(buf, 0)) { ^ ( ) generate.c:2178:18: note: use '==' to turn this assignment into an equality comparison else if (errmsg = parse_recurse(buf, 0)) { ^ == generate.c:2238:59: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 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] if (live & 1 << (i >> 4*l + 8 & 0xf)) ~~ ~~~~^~~ gentab.c:102:41: note: place parentheses around the '+' expression to silence this warning 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] else if (born & 1 << (i >> 4*l + 8 & 0xf)) ~~ ~~~~^~~ gentab.c:106:44: note: place parentheses around the '+' expression to silence this warning 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] if (born & 1 << (i >> 4*l + 8 & 0xf)) ~~ ~~~~^~~ gentab.c:119:39: note: place parentheses around the '+' expression to silence this warning 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] if (ptr = history[n].hashlist[i]) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ history.c:36:15: note: place parentheses around the assignment to silence this warning if (ptr = history[n].hashlist[i]) { ^ ( ) history.c:36:15: note: use '==' to turn this assignment into an equality comparison if (ptr = history[n].hashlist[i]) { ^ == history.c:37:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] do hashsum++; while (ptr = ptr->hnext); ~~~~^~~~~~~~~~~~ history.c:37:35: note: place parentheses around the assignment to silence this warning do hashsum++; while (ptr = ptr->hnext); ^ ( ) history.c:37:35: note: use '==' to turn this assignment into an equality comparison 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] history[n].tilecount); ^~~~~~~~~~~~~~~~~~~~ history.c:102:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = findhistorytile(context, x, y, hv)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ history.c:102:12: note: place parentheses around the assignment to silence this warning if (ptr = findhistorytile(context, x, y, hv)) ^ ( ) history.c:102:12: note: use '==' to turn this assignment into an equality comparison if (ptr = findhistorytile(context, x, y, hv)) ^ == history.c:141:64: warning: operator '<<' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] 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 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] 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 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] 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 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] 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 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] 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] 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] 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] 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] 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] if (cp = strchr(buf, '#')) ~~~^~~~~~~~~~~~~~~~~~ isave.c:246:10: note: place parentheses around the assignment to silence this warning if (cp = strchr(buf, '#')) ^ ( ) isave.c:246:10: note: use '==' to turn this assignment into an equality comparison 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] 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] if (fp = fopen(PATCH_LOG, "a")) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ key.c:224:17: note: place parentheses around the assignment to silence this warning if (fp = fopen(PATCH_LOG, "a")) { ^ ( ) key.c:224:17: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(PATCH_LOG, "a")) { ^ == key.c:271:34: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *getenv(); ^ /usr/include/stdlib.h:110:7: note: conflicting prototype is here 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] change_tentative_color(); ^ main.c:459:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (truehistory = !truehistory) { ~~~~~~~~~~~~^~~~~~~~~~~~~~ main.c:459:25: note: place parentheses around the assignment to silence this warning if (truehistory = !truehistory) { ^ ( ) main.c:459:25: note: use '==' to turn this assignment into an equality comparison if (truehistory = !truehistory) { ^ == main.c:964:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (x >= x_max_limit) ^ main.c:969:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (y >= y_max_limit) ^ main.c:1070:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, NORMALFONT)) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1070:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, NORMALFONT)) return f; ^ ( ) main.c:1070:10: note: use '==' to turn this assignment into an equality comparison if (f = XLoadQueryFont(disp, NORMALFONT)) return f; ^ == main.c:1072:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, fontspec)) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1072:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, fontspec)) return f; ^ ( ) main.c:1072:10: note: use '==' to turn this assignment into an equality comparison if (f = XLoadQueryFont(disp, fontspec)) return f; ^ == main.c:1074:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, fontspec)) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1074:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, fontspec)) return f; ^ ( ) main.c:1074:10: note: use '==' to turn this assignment into an equality comparison if (f = XLoadQueryFont(disp, fontspec)) return f; ^ == main.c:1080:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, "6x9")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1080:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "6x9")) return f; ^ ( ) main.c:1080:10: note: use '==' to turn this assignment into an equality comparison if (f = XLoadQueryFont(disp, "6x9")) return f; ^ == main.c:1081:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--9-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1081:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--9-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1081:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-*-*-r-*--8-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1082:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-*-r-*--8-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1082:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-courier-bold-r-*--8-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1083:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-courier-bold-r-*--8-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1083:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--10-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1084:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--10-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1084:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-*-*-r-*--9-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1085:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-*-r-*--9-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1085:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--11-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1086:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--11-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1086:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--12-*-*-*-*-*-*-*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1087:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "-*-*-medium-r-*--12-*-*-*-*-*-*-*")) return f; ^ ( ) main.c:1087:10: note: use '==' to turn this assignment into an equality comparison 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] if (f = XLoadQueryFont(disp, "*6x*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1088:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "*6x*")) return f; ^ ( ) main.c:1088:10: note: use '==' to turn this assignment into an equality comparison if (f = XLoadQueryFont(disp, "*6x*")) return f; ^ == main.c:1089:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (f = XLoadQueryFont(disp, "*7x*")) return f; ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1089:10: note: place parentheses around the assignment to silence this warning if (f = XLoadQueryFont(disp, "*7x*")) return f; ^ ( ) main.c:1089:10: note: use '==' to turn this assignment into an equality comparison 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] else if (state = getcell(&ptr->cells, dx, dy)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tentative.c:106:18: note: place parentheses around the assignment to silence this warning else if (state = getcell(&ptr->cells, dx, dy)) { ^ ( ) tentative.c:106:18: note: use '==' to turn this assignment into an equality comparison 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] if (state = getcell(&ptr->cells, dx, dy)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tentative.c:130:26: note: place parentheses around the assignment to silence this warning if (state = getcell(&ptr->cells, dx, dy)) { ^ ( ) tentative.c:130:26: note: use '==' to turn this assignment into an equality comparison 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] if (ptr = p->hashlist[i]) { ~~~~^~~~~~~~~~~~~~~~ tile.c:93:15: note: place parentheses around the assignment to silence this warning if (ptr = p->hashlist[i]) { ^ ( ) tile.c:93:15: note: use '==' to turn this assignment into an equality comparison if (ptr = p->hashlist[i]) { ^ == tile.c:94:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] do hashsum++; while (ptr = ptr->hnext); ~~~~^~~~~~~~~~~~ tile.c:94:35: note: place parentheses around the assignment to silence this warning do hashsum++; while (ptr = ptr->hnext); ^ ( ) tile.c:94:35: note: use '==' to turn this assignment into an equality comparison 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] hashcount ? (double)hashsum/hashcount : 0, p->tilecount); ^~~~~~~~~~~~ tile.c:108:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr->hnext = p->hashlist[hv]) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ tile.c:108:22: note: place parentheses around the assignment to silence this warning if (ptr->hnext = p->hashlist[hv]) ^ ( ) tile.c:108:22: note: use '==' to turn this assignment into an equality comparison if (ptr->hnext = p->hashlist[hv]) ^ == tile.c:117:32: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] p->hxm = ((1 << HASHBITS - HASHBITS/2) - 1) << 3, ~~ ~~~~~~~~~^~~~~~~~~~~~ tile.c:117:32: note: place parentheses around the '-' expression to silence this warning 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] while (p->xmax - p->xmin >> 3 + xc++); ~~~~~~~~^~~~~~~~~ ~~ tile.c:129:22: note: place parentheses around the '-' expression to silence this warning while (p->xmax - p->xmin >> 3 + xc++); ^ ( ) tile.c:129:37: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] while (p->xmax - p->xmin >> 3 + xc++); ~~ ~~^~~~~~ tile.c:129:37: note: place parentheses around the '+' expression to silence this warning while (p->xmax - p->xmin >> 3 + xc++); ^ ( ) tile.c:130:22: warning: operator '>>' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] while (p->ymax - p->ymin >> 3 + yc++); ~~~~~~~~^~~~~~~~~ ~~ tile.c:130:22: note: place parentheses around the '-' expression to silence this warning while (p->ymax - p->ymin >> 3 + yc++); ^ ( ) tile.c:130:37: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] while (p->ymax - p->ymin >> 3 + yc++); ~~ ~~^~~~~~ tile.c:130:37: note: place parentheses around the '+' expression to silence this warning while (p->ymax - p->ymin >> 3 + yc++); ^ ( ) tile.c:276:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = findtile(context, hx, hy, hv)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:276:12: note: place parentheses around the assignment to silence this warning if (ptr = findtile(context, hx, hy, hv)) ^ ( ) tile.c:276:12: note: use '==' to turn this assignment into an equality comparison if (ptr = findtile(context, hx, hy, hv)) ^ == tile.c:305:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (ptr = findtile(context, x, y, hv)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:305:13: note: place parentheses around the assignment to silence this warning if (ptr = findtile(context, x, y, hv)) ^ ( ) tile.c:305:13: note: use '==' to turn this assignment into an equality comparison if (ptr = findtile(context, x, y, hv)) ^ == tile.c:396:71: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] 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 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] && labs((long)ynew - (long)ypos) < 10 << 6 - scale) { ~~ ~~^~~~~~~ tile.c:397:70: note: place parentheses around the '-' expression to silence this warning && 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] if (state = getcell(&ptr->cells, dx, dy)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:664:17: note: place parentheses around the assignment to silence this warning if (state = getcell(&ptr->cells, dx, dy)) { ^ ( ) tile.c:664:17: note: use '==' to turn this assignment into an equality comparison if (state = getcell(&ptr->cells, dx, dy)) { ^ == tile.c:800:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = lookcell(pp, x, y)) { ~~~~^~~~~~~~~~~~~~~~~~~~ tile.c:800:14: note: place parentheses around the assignment to silence this warning if (val = lookcell(pp, x, y)) { ^ ( ) tile.c:800:14: note: use '==' to turn this assignment into an equality comparison if (val = lookcell(pp, x, y)) { ^ == tile.c:907:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:915:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&ptr->cells, dx, dy)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:915:12: note: place parentheses around the assignment to silence this warning if (val = getcell(&ptr->cells, dx, dy)) ^ ( ) tile.c:915:12: note: use '==' to turn this assignment into an equality comparison if (val = getcell(&ptr->cells, dx, dy)) ^ == tile.c:920:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:929:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&ptr->cells, dx, dy)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:929:11: note: place parentheses around the assignment to silence this warning if (val = getcell(&ptr->cells, dx, dy)) ^ ( ) tile.c:929:11: note: use '==' to turn this assignment into an equality comparison if (val = getcell(&ptr->cells, dx, dy)) ^ == tile.c:934:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ tile.c:948:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (val = getcell(&ptr->cells, dx, dy)) { ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tile.c:948:12: note: place parentheses around the assignment to silence this warning if (val = getcell(&ptr->cells, dx, dy)) { ^ ( ) tile.c:948:12: note: use '==' to turn this assignment into an equality comparison 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] x = (x + 7 >> 3)*8; ~~^~~ ~~ topology.c:190:12: note: place parentheses around the '+' expression to silence this warning x = (x + 7 >> 3)*8; ^ ( ) topology.c:191:12: warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses] y = (y + 7 >> 3)*8; ~~^~~ ~~ topology.c:191:12: note: place parentheses around the '+' expression to silence this warning y = (y + 7 >> 3)*8; ^ ( ) topology.c:303:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ topology.c:310:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ topology.c:339:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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] fprintf(stderr, s); ^ utils.c:60:20: note: treat the string as an argument to avoid this fprintf(stderr, s); ^ "%s", utils.c:153:16: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *ctime(); ^ /usr/include/time.h:115:7: note: conflicting prototype is here char *ctime(const time_t *); ^ utils.c:246:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwuid(getuid())) ~~~^~~~~~~~~~~~~~~~~~~~ utils.c:246:12: note: place parentheses around the assignment to silence this warning if (pw = getpwuid(getuid())) ^ ( ) utils.c:246:12: note: use '==' to turn this assignment into an equality comparison 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] if (dp = opendir(dir)) { ~~~^~~~~~~~~~~~~~ xwidget.c:89:11: note: place parentheses around the assignment to silence this warning if (dp = opendir(dir)) { ^ ( ) xwidget.c:89:11: note: use '==' to turn this assignment into an equality comparison if (dp = opendir(dir)) { ^ == xwidget.c:90:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (entry = readdir(dp)) { ~~~~~~^~~~~~~~~~~~~ xwidget.c:90:20: note: place parentheses around the assignment to silence this warning while (entry = readdir(dp)) { ^ ( ) xwidget.c:90:20: note: use '==' to turn this assignment into an equality comparison while (entry = readdir(dp)) { ^ == xwidget.c:438:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(add_opt_ext(fn, LOADEXT), "r")) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:438:11: note: place parentheses around the assignment to silence this warning if (fp = fopen(add_opt_ext(fn, LOADEXT), "r")) { ^ ( ) xwidget.c:438:11: note: use '==' to turn this assignment into an equality comparison 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] if (p = checktilda(widget_fn)) ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:531:19: note: place parentheses around the assignment to silence this warning if (p = checktilda(widget_fn)) ^ ( ) xwidget.c:531:19: note: use '==' to turn this assignment into an equality comparison if (p = checktilda(widget_fn)) ^ == xwidget.c:535:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = checktilda(widget_fn)) { ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:535:19: note: place parentheses around the assignment to silence this warning if (p = checktilda(widget_fn)) { ^ ( ) xwidget.c:535:19: note: use '==' to turn this assignment into an equality comparison if (p = checktilda(widget_fn)) { ^ == xwidget.c:542:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = checktilda(widget_fn)) ~~^~~~~~~~~~~~~~~~~~~~~~~ xwidget.c:542:19: note: place parentheses around the assignment to silence this warning if (p = checktilda(widget_fn)) ^ ( ) xwidget.c:542:19: note: use '==' to turn this assignment into an equality comparison if (p = checktilda(widget_fn)) ^ == xwidget.c:590:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xwidget.c:628:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ xwidget.c:639:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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: utils.c:42(utils.o:(announce)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: utils.c:149(utils.o:(showcoord)): warning: sprintf() is often misused, please use snprintf() ld: warning: utils.c:184(utils.o:(showrules)): 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] 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] 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 C2x [-Wdeprecated-non-prototype] unsigned long power(n, k) { ^ gen-multirules.c:98:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] *rs |= 1 << *p++ - '0'; ~~ ~~~~~^~~~~ gen-multirules.c:98:30: note: place parentheses around the '-' expression to silence this warning *rs |= 1 << *p++ - '0'; ^ ( ) gen-multirules.c:102:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] *rb |= 1 << *p++ - '0'; ~~ ~~~~~^~~~~ gen-multirules.c:102:30: note: place parentheses around the '-' expression to silence this warning *rb |= 1 << *p++ - '0'; ^ ( ) gen-multirules.c:104:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if (p = strchr(rule, '/')) { ~~^~~~~~~~~~~~~~~~~~~ gen-multirules.c:104:15: note: place parentheses around the assignment to silence this warning else if (p = strchr(rule, '/')) { ^ ( ) gen-multirules.c:104:15: note: use '==' to turn this assignment into an equality comparison else if (p = strchr(rule, '/')) { ^ == gen-multirules.c:107:30: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] *rs |= 1 << *rule++ - '0'; ~~ ~~~~~~~~^~~~~ gen-multirules.c:107:30: note: place parentheses around the '-' expression to silence this warning *rs |= 1 << *rule++ - '0'; ^ ( ) gen-multirules.c:111:33: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] *rb |= 1 << *rule++ - '0'; ~~ ~~~~~~~~^~~~~ gen-multirules.c:111:33: note: place parentheses around the '-' expression to silence this warning *rb |= 1 << *rule++ - '0'; ^ ( ) gen-multirules.c:123:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (p = strchr(rules, ',')) { ~~^~~~~~~~~~~~~~~~~~~~ gen-multirules.c:123:13: note: place parentheses around the assignment to silence this warning while (p = strchr(rules, ',')) { ^ ( ) gen-multirules.c:123:13: note: use '==' to turn this assignment into an equality comparison while (p = strchr(rules, ',')) { ^ == gen-multirules.c:183:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ gen-multirules.c:206:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 1732129709.15 ===> 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@CUKnG49HXe': 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 1732129711.02 ===> games/xlife ===> Cleaning for xlife-6.7.6 >>> Ended at 1732129711.52 max_stuck=2.52/depends=4.02/show-prepare-results=1.19/build=11.37/package=1.86/clean=0.53