=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for gnuchess4-4.0.80 cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -c ./main.c ./main.c:322:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, CP[113]); ^~~~~~~ ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:421:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[opponent] == 0 && TCflag) ^ ./main.c:435:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[computer] == 0 && TCflag) ^ 4 warnings generated. mv main.o mainN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/usr/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/usr/pkg/share/gnuchess4/gnuchess.eco\" -c ./book.c ./book.c:191:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[77]); ^~~~~~ ./book.c:1024:5: warning: implicit declaration of function 'Ldisplay1' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay1 (); ^ ./book.c:1044:3: warning: implicit declaration of function 'Ldisplay' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay (Lmove, Lhint, OBB[x].count); ^ ./book.c:1056:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ ./book.c:1171:5: warning: implicit declaration of function 'Ldisplay3' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay3 (); ^ ./book.c:1205:8: warning: implicit declaration of function 'Ldisplay4' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay4 (E); ^ 6 warnings generated. mv book.o bookN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./genmoves.c ./genmoves.c:116:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (row (t) == 1 || row (t) == 6) ^ 1 warning generated. mv genmoves.o genmovesN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./ataks.c cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./eval.c ./eval.c:816:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:829:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:841:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:1356:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (score < valueR) ^ ./eval.c:1361:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (-score < valueR) ^ 5 warnings generated. mv eval.o evalN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./init.c cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./search.c In file included from ./search.c:27: ./ttable.c:417:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[66]); ^~~~~~ ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./search.c:110:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register s0; ~~~~~~~~ ^ ./search.c:1200:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (best < alpha) ^ ./search.c:1537:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (f - t == 16) ^ 5 warnings generated. mv search.o searchN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./dspcom.c ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:1184:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif XBOARD ^ // ./dspcom.c:1450:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = ioctl ((int) 0, FIONREAD, &nchar)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dspcom.c:1450:9: note: place parentheses around the assignment to silence this warning if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ ( ) ./dspcom.c:1450:9: note: use '==' to turn this assignment into an equality comparison if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ == 5 warnings generated. mv dspcom.o dspcomN.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./uxdsp.c ./uxdsp.c:135:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./uxdsp.c:138:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./uxdsp.c:150:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./uxdsp.c:155:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./uxdsp.c:157:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./uxdsp.c:159:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./uxdsp.c:161:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./uxdsp.c:163:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./uxdsp.c:168:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./uxdsp.c:170:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./uxdsp.c:186:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[73]); ^~~~~~ ./uxdsp.c:221:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./uxdsp.c:223:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./uxdsp.c:225:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./uxdsp.c:227:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[64]); ^~~~~~ ./uxdsp.c:265:3: warning: implicit declaration of function 'ZeroRPT' is invalid in C99 [-Wimplicit-function-declaration] ZeroRPT (); ^ ./uxdsp.c:324:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[69]); ^~~~~~ ./uxdsp.c:339:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[121]); /*Your movwe is?*/ ^~~~~~~ ./uxdsp.c:404:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(flag.illegal){printz(CP[225]);return;} ^~~~~~~ ./uxdsp.c:412:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[58]); ^~~~~~ ./uxdsp.c:414:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[95]); ^~~~~~ ./uxdsp.c:416:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[44]); ^~~~~~ ./uxdsp.c:641:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[16]); ^~~~~~ ./uxdsp.c:643:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[15]); ^~~~~~ ./uxdsp.c:733:17: warning: format specifies type 'short *' but the argument has type 'SHORT *' (aka 'int *') [-Wformat] scanz ("%hd", &MaxSearchDepth); ~~~ ^~~~~~~~~~~~~~~ %d ./uxdsp.c:772:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz(CP[61]); ^~~~~~ ./uxdsp.c:783:30: warning: for loop has empty body [-Wempty-body] for (p = T; *p == ' '; p++); ^ ./uxdsp.c:783:30: note: put the semicolon on a separate line to silence this warning ./uxdsp.c:905:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Ldisplay3() ^~~~~~~~~ ./uxdsp.c:906:39: warning: control reaches end of non-void function [-Wreturn-type] {ClrScreen();refresh();LdisplayLine=4;} ^ 29 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -c ./dspcom.c ./dspcom.c:206:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[77]); ^~~~~~ ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:1184:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif XBOARD ^ // ./dspcom.c:1450:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = ioctl ((int) 0, FIONREAD, &nchar)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dspcom.c:1450:9: note: place parentheses around the assignment to silence this warning if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ ( ) ./dspcom.c:1450:9: note: use '==' to turn this assignment into an equality comparison if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ == 6 warnings generated. mv dspcom.o dspcomR.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -c ./nondsp.c ./nondsp.c:118:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:554:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[124]); ^~~~~~~ ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:625:30: warning: for loop has empty body [-Wempty-body] for (p = T; *p == ' '; p++); ^ ./nondsp.c:625:30: note: put the semicolon on a separate line to silence this warning 20 warnings generated. mv nondsp.o nondspR.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchessr mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./nuxdsp.c ./nuxdsp.c:161:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nuxdsp.c:164:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nuxdsp.c:176:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nuxdsp.c:180:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nuxdsp.c:182:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nuxdsp.c:184:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nuxdsp.c:186:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nuxdsp.c:188:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nuxdsp.c:192:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nuxdsp.c:194:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nuxdsp.c:196:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[144]); ^~~~~~~ ./nuxdsp.c:198:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[192]); ^~~~~~~ ./nuxdsp.c:215:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[73]); ^~~~~~ ./nuxdsp.c:249:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nuxdsp.c:251:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nuxdsp.c:253:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nuxdsp.c:255:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[64]); ^~~~~~ ./nuxdsp.c:293:3: warning: implicit declaration of function 'ZeroRPT' is invalid in C99 [-Wimplicit-function-declaration] ZeroRPT (); ^ ./nuxdsp.c:355:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[68]); ^~~~~~ ./nuxdsp.c:371:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[121]); /*Your movwe is?*/ ^~~~~~~ ./nuxdsp.c:436:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(flag.illegal) {printz (CP[225]); return;} ^~~~~~~ ./nuxdsp.c:446:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[95]); ^~~~~~ ./nuxdsp.c:448:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[44]); ^~~~~~ ./nuxdsp.c:889:17: warning: format specifies type 'short *' but the argument has type 'SHORT *' (aka 'int *') [-Wformat] scanz ("%hd", &MaxSearchDepth); ~~~ ^~~~~~~~~~~~~~~ %d ./nuxdsp.c:935:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz(CP[61]); ^~~~~~ ./nuxdsp.c:947:30: warning: for loop has empty body [-Wempty-body] for (p = T; *p == ' '; p++); ^ ./nuxdsp.c:947:30: note: put the semicolon on a separate line to silence this warning ./nuxdsp.c:1069:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] Ldisplay3() ^~~~~~~~~ ./nuxdsp.c:1070:39: warning: control reaches end of non-void function [-Wreturn-type] {ClrScreen();refresh();LdisplayLine=4;} ^ 28 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchessn mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o nuxdsp.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DXBOARD -c ./main.c ./main.c:322:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, CP[113]); ^~~~~~~ ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:421:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[opponent] == 0 && TCflag) ^ ./main.c:435:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[computer] == 0 && TCflag) ^ 4 warnings generated. mv main.o mainX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DXBOARD -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/usr/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/usr/pkg/share/gnuchess4/gnuchess.eco\" -c ./book.c ./book.c:191:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[77]); ^~~~~~ ./book.c:1024:5: warning: implicit declaration of function 'Ldisplay1' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay1 (); ^ ./book.c:1044:3: warning: implicit declaration of function 'Ldisplay' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay (Lmove, Lhint, OBB[x].count); ^ ./book.c:1056:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ ./book.c:1171:5: warning: implicit declaration of function 'Ldisplay3' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay3 (); ^ ./book.c:1205:8: warning: implicit declaration of function 'Ldisplay4' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay4 (E); ^ 6 warnings generated. mv book.o bookX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DXBOARD -c ./genmoves.c ./genmoves.c:116:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (row (t) == 1 || row (t) == 6) ^ 1 warning generated. mv genmoves.o genmovesX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./eval.c ./eval.c:816:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:829:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:841:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:1356:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (score < valueR) ^ ./eval.c:1361:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (-score < valueR) ^ 5 warnings generated. mv eval.o evalX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DXBOARD -c ./search.c In file included from ./search.c:27: ./ttable.c:417:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[66]); ^~~~~~ ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./search.c:110:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register s0; ~~~~~~~~ ^ ./search.c:1200:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (best < alpha) ^ ./search.c:1537:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (f - t == 16) ^ 5 warnings generated. mv search.o searchX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DXBOARD -c ./dspcom.c ./dspcom.c:206:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[77]); ^~~~~~ ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:1184:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif XBOARD ^ // ./dspcom.c:1450:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = ioctl ((int) 0, FIONREAD, &nchar)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dspcom.c:1450:9: note: place parentheses around the assignment to silence this warning if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ ( ) ./dspcom.c:1450:9: note: use '==' to turn this assignment into an equality comparison if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ == 6 warnings generated. mv dspcom.o dspcomX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DXBOARD -c ./nondsp.c ./nondsp.c:73:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[43]); /*Chess*/ ^~~~~~ ./nondsp.c:118:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:625:30: warning: for loop has empty body [-Wempty-body] for (p = T; *p == ' '; p++); ^ ./nondsp.c:625:30: note: put the semicolon on a separate line to silence this warning 20 warnings generated. mv nondsp.o nondspX.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchessx mainX.o bookX.o genmovesX.o ataks.o utilX.o evalX.o init.o searchX.o dspcomX.o nondspX.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DNONDSP -DCHESSTOOL -c ./main.c ./main.c:322:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (stderr, CP[113]); ^~~~~~~ ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:421:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[opponent] == 0 && TCflag) ^ ./main.c:435:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (TimeControl.moves[computer] == 0 && TCflag) ^ 4 warnings generated. mv main.o mainC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/usr/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/usr/pkg/share/gnuchess4/gnuchess.eco\" -c ./book.c ./book.c:191:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[77]); ^~~~~~ ./book.c:1024:5: warning: implicit declaration of function 'Ldisplay1' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay1 (); ^ ./book.c:1044:3: warning: implicit declaration of function 'Ldisplay' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay (Lmove, Lhint, OBB[x].count); ^ ./book.c:1056:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ ./book.c:1171:5: warning: implicit declaration of function 'Ldisplay3' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay3 (); ^ ./book.c:1205:8: warning: implicit declaration of function 'Ldisplay4' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay4 (E); ^ 6 warnings generated. mv book.o bookC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -c ./genmoves.c ./genmoves.c:116:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (row (t) == 1 || row (t) == 6) ^ 1 warning generated. mv genmoves.o genmovesC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./eval.c ./eval.c:816:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:829:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:841:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] ScoreThreat; ^ ./eval.c:797:4: note: expanded from macro 'ScoreThreat' else s -= 3 ^ ./eval.c:1356:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (score < valueR) ^ ./eval.c:1361:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (-score < valueR) ^ 5 warnings generated. mv eval.o evalC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -c ./search.c In file included from ./search.c:27: ./ttable.c:417:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[66]); ^~~~~~ ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./search.c:110:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register s0; ~~~~~~~~ ^ ./search.c:1200:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (best < alpha) ^ ./search.c:1537:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (f - t == 16) ^ 5 warnings generated. mv search.o searchC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -c ./dspcom.c ./dspcom.c:202:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[78]); ^~~~~~ ./dspcom.c:290:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[78]); ^~~~~~ ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:1184:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif XBOARD ^ // ./dspcom.c:1404:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ./dspcom.c:1450:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = ioctl ((int) 0, FIONREAD, &nchar)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dspcom.c:1450:9: note: place parentheses around the assignment to silence this warning if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ ( ) ./dspcom.c:1450:9: note: use '==' to turn this assignment into an equality comparison if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ == 8 warnings generated. mv dspcom.o dspcomC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -c ./nondsp.c ./nondsp.c:73:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[43]); /*Chess*/ ^~~~~~ ./nondsp.c:118:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:625:30: warning: for loop has empty body [-Wempty-body] for (p = T; *p == ' '; p++); ^ ./nondsp.c:625:30: note: put the semicolon on a separate line to silence this warning 20 warnings generated. mv nondsp.o nondspC.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchessc mainC.o bookC.o genmovesC.o ataks.o utilC.o evalC.o init.o searchC.o dspcomC.o nondspC.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -c ./postprint.c ./postprint.c:143:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ ./postprint.c:143:1: note: change return type to 'int' void ^~~~ int 1 warning generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -o postprint postprint.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/usr/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/usr/pkg/share/gnuchess4/gnuchess.eco\" -DIGNUAN -c ./book.c ./book.c:191:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[77]); ^~~~~~ ./book.c:1024:5: warning: implicit declaration of function 'Ldisplay1' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay1 (); ^ ./book.c:1044:3: warning: implicit declaration of function 'Ldisplay' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay (Lmove, Lhint, OBB[x].count); ^ ./book.c:1056:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ ./book.c:1171:5: warning: implicit declaration of function 'Ldisplay3' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay3 (); ^ ./book.c:1205:8: warning: implicit declaration of function 'Ldisplay4' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay4 (E); ^ 6 warnings generated. mv book.o bookG.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DIGNUAN -c ./search.c In file included from ./search.c:27: ./ttable.c:417:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[66]); ^~~~~~ ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./search.c:51:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern GNUANadj(); ~~~~~~ ^ ./search.c:110:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register s0; ~~~~~~~~ ^ ./search.c:1200:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (best < alpha) ^ ./search.c:1537:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (f - t == 16) ^ 6 warnings generated. mv search.o searchG.o cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DIGNUAN -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -c ./gnuan.c ./gnuan.c:633:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = ioctl ((int) 0, FIONREAD, &nchar)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gnuan.c:633:11: note: place parentheses around the assignment to silence this warning if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ ( ) ./gnuan.c:633:11: note: use '==' to turn this assignment into an equality comparison if (i = ioctl ((int) 0, FIONREAD, &nchar)) ^ == ./gnuan.c:638:16: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] i, errno, FIONREAD); ^~~~~~~~ /usr/include/sys/ioc_file.h:9:18: note: expanded from macro 'FIONREAD' #define FIONREAD _IOR('f', 1, int) ^~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:86:21: note: expanded from macro '_IOR' #define _IOR(g,n,t) _IOC(IOC_OUT, (g), (n), sizeof(t)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:83:5: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gnuan.c:1020:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ./gnuan.c:1472:11: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] time (&start_time); ^~~~~~~~~~~ /usr/include/time.h:97:21: note: passing argument to parameter here time_t time(time_t *) __RENAME(__time50); ^ ./gnuan.c:1726:11: warning: incompatible pointer types passing 'long *' to parameter of type 'time_t *' (aka 'long long *') [-Wincompatible-pointer-types] time (&end_time); ^~~~~~~~~ /usr/include/time.h:97:21: note: passing argument to parameter here time_t time(time_t *) __RENAME(__time50); ^ ./gnuan.c:1728:69: warning: format specifies type 'long' but the argument has type 'double' [-Wformat] fprintf (fpout, "\n Elapsed time was %ld seconds.\n", elapsed_time); ~~~ ^~~~~~~~~~~~ %f ./gnuan.c:1350:37: warning: array index 255 is past the end of the array (which contains 255 elements) [-Warray-bounds] fgets (infilename, 255, stdin); infilename[255] = '\0'; ^ ~~~ ./gnuan.c:1303:5: note: array 'infilename' declared here CHAR infilename[255]; ^ 7 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DIGNUAN -o gnuan mainN.o bookG.o genmovesN.o ataks.o utilN.o evalN.o init.o searchG.o gnuan.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -o game ./game.c ./game.c:333:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ ./game.c:333:1: note: change return type to 'int' void ^~~~ int ./game.c:404:39: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf ("R (%d %s score %d time %d", (i + 1) / 2, mvstr[0], GameList[i].score, GameList[i].time); ~~ ^~~~~~~~~~~ %ld ./game.c:404:81: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf ("R (%d %s score %d time %d", (i + 1) / 2, mvstr[0], GameList[i].score, GameList[i].time); ~~ ^~~~~~~~~~~~~~~~ %ld ./game.c:406:44: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf ("R (%d ... %s score %d time %d", (i + 1) / 2, mvstr[0], GameList[i].score, GameList[i].time); ~~ ^~~~~~~~~~~ %ld ./game.c:406:86: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf ("R (%d ... %s score %d time %d", (i + 1) / 2, mvstr[0], GameList[i].score, GameList[i].time); ~~ ^~~~~~~~~~~~~~~~ %ld 5 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/usr/pkg/share/gnuchess4/gnuchess.data\" -DBINECO=\"/usr/pkg/share/gnuchess4/gnuchess.eco\" -DPGNECO=\"/usr/pkg/share/gnuchess4/eco.pgn\" -c ./eco.c ./eco.c:222:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[77]); ^~~~~~ ./eco.c:687:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/usr/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o ecor mainN.o eco.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomR.o nondspR.o -lcurses -ltermcap -lm cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -o binsort ./binsort.c ./binsort.c:500:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ ./binsort.c:512:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (charvalue = (char *) getenv ("BINSORT_MEM")) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:512:17: note: place parentheses around the assignment to silence this warning if (charvalue = (char *) getenv ("BINSORT_MEM")) ^ ( ) ./binsort.c:512:17: note: use '==' to turn this assignment into an equality comparison if (charvalue = (char *) getenv ("BINSORT_MEM")) ^ == ./binsort.c:514:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (charvalue = (char *) getenv ("BINSORT_SCR")) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:514:17: note: place parentheses around the assignment to silence this warning if (charvalue = (char *) getenv ("BINSORT_SCR")) ^ ( ) ./binsort.c:514:17: note: use '==' to turn this assignment into an equality comparison if (charvalue = (char *) getenv ("BINSORT_SCR")) ^ == ./binsort.c:516:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (charvalue = (char *) getenv ("BINSORT_VERB")) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:516:17: note: place parentheses around the assignment to silence this warning if (charvalue = (char *) getenv ("BINSORT_VERB")) ^ ( ) ./binsort.c:516:17: note: use '==' to turn this assignment into an equality comparison if (charvalue = (char *) getenv ("BINSORT_VERB")) ^ == ./binsort.c:620:29: warning: '&&' within '||' [-Wlogical-op-parentheses] && ^~ ./binsort.c:620:29: note: place parentheses around the '&&' expression to silence this warning && ^ ./binsort.c:725:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (numrec = fillsize/actrecl) { /* there are some records */ ~~~~~~~^~~~~~~~~~~~~~~~~~ ./binsort.c:725:14: note: place parentheses around the assignment to silence this warning if (numrec = fillsize/actrecl) { /* there are some records */ ^ ( ) ./binsort.c:725:14: note: use '==' to turn this assignment into an equality comparison if (numrec = fillsize/actrecl) { /* there are some records */ ^ == ./binsort.c:734:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (numrec = fillsize/actrecl) { /* there are some records */ ~~~~~~~^~~~~~~~~~~~~~~~~~ ./binsort.c:734:13: note: place parentheses around the assignment to silence this warning if (numrec = fillsize/actrecl) { /* there are some records */ ^ ( ) ./binsort.c:734:13: note: use '==' to turn this assignment into an equality comparison if (numrec = fillsize/actrecl) { /* there are some records */ ^ == ./binsort.c:744:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (numrec = fillsize/actrecl) { /* there are some records */ ~~~~~~~^~~~~~~~~~~~~~~~~~ ./binsort.c:744:13: note: place parentheses around the assignment to silence this warning if (numrec = fillsize/actrecl) { /* there are some records */ ^ ( ) ./binsort.c:744:13: note: use '==' to turn this assignment into an equality comparison if (numrec = fillsize/actrecl) { /* there are some records */ ^ == ./binsort.c:824:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = (*pkey->cmp_function)((char *)e1, (char *)e2, pkey)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:824:11: note: place parentheses around the assignment to silence this warning if (j = (*pkey->cmp_function)((char *)e1, (char *)e2, pkey)) ^ ( ) ./binsort.c:824:11: note: use '==' to turn this assignment into an equality comparison if (j = (*pkey->cmp_function)((char *)e1, (char *)e2, pkey)) ^ == ./binsort.c:840:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = (*pkey->cmp_function)(*((char **)pe1), *((char **)pe2), pkey)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:840:11: note: place parentheses around the assignment to silence this warning if (j = (*pkey->cmp_function)(*((char **)pe1), *((char **)pe2), pkey)) ^ ( ) ./binsort.c:840:11: note: use '==' to turn this assignment into an equality comparison if (j = (*pkey->cmp_function)(*((char **)pe1), *((char **)pe2), pkey)) ^ == ./binsort.c:1626:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (size = ctape->pbuf - ctape->buf) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ ./binsort.c:1626:12: note: place parentheses around the assignment to silence this warning if (size = ctape->pbuf - ctape->buf) { ^ ( ) ./binsort.c:1626:12: note: use '==' to turn this assignment into an equality comparison if (size = ctape->pbuf - ctape->buf) { ^ == 11 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -o ecocvt ./ecocvt.c ./ecocvt.c:38:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(int argc, char *argv[]) ^~~~ ./ecocvt.c:53:5: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if(read(fd,&DATA,sizeof(struct gdxdata))<0){perror("ofd");exit(1);} ^ ./ecocvt.c:60:5: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if( write(ofd,&DATA,sizeof(struct gdxdata)) <0){perror("write");exit(1);}; ^ ./ecocvt.c:62:4: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if(close(fd) < 0){perror("fd");exit(1);} ^ 4 warnings generated. cc -I. -O2 -march=i586 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -o ecosort ./ecosort.c ./ecosort.c:34:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^~~~ 1 warning generated. rm -f gnuchess.eco step1.eco step2.eco echo 0 0 | ./ecor -b ./../book/eco.pgn -B step1.eco FIONREAD: Inappropriate ioctl for device You probably have a non-ANSI ; see README. -1 25 40046601 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/games/gnuchess4/work/gnuchess-4.0.pl80/src *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/gnuchess4 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/games/gnuchess4