=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for gnuchess4-4.0.80 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/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:322:21: note: treat the string as an argument to avoid this fprintf (stderr, CP[113]); ^ "%s", ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:383:16: note: treat the string as an argument to avoid this printf (CP[220]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/opt/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/opt/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:191:11: note: treat the string as an argument to avoid this printf (CP[77]); ^ "%s", ./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); ^ ./book.c:1252:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ 7 warnings generated. mv book.o bookN.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./ataks.c clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilN.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./init.c clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:417:11: note: treat the string as an argument to avoid this printf (CP[66]); ^ "%s", ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./ttable.c:472:11: note: treat the string as an argument to avoid this printf (CP[49]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:686:20: note: treat the string as an argument to avoid this fprintf (fd, CP[126]); ^ "%s", ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:753:16: note: treat the string as an argument to avoid this fprintf (fd, CP[10]); ^ "%s", ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:754:16: note: treat the string as an argument to avoid this fprintf (fd, CP[11]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./uxdsp.c ./uxdsp.c:265:3: warning: implicit declaration of function 'ZeroRPT' is invalid in C99 [-Wimplicit-function-declaration] ZeroRPT (); ^ ./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: non-void function does not return a value [-Wreturn-type] {ClrScreen();refresh();LdisplayLine=4;} ^ 4 warnings generated. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:206:12: note: treat the string as an argument to avoid this printz (CP[77]); ^ "%s", ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:686:20: note: treat the string as an argument to avoid this fprintf (fd, CP[126]); ^ "%s", ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:753:16: note: treat the string as an argument to avoid this fprintf (fd, CP[10]); ^ "%s", ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:754:16: note: treat the string as an argument to avoid this fprintf (fd, CP[11]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:118:11: note: treat the string as an argument to avoid this printz (CP[40]); ^ "%s", ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:121:11: note: treat the string as an argument to avoid this printz (CP[158]); ^ "%s", ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:133:11: note: treat the string as an argument to avoid this printz (CP[130]); ^ "%s", ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:137:11: note: treat the string as an argument to avoid this printz (CP[200]); ^ "%s", ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:139:11: note: treat the string as an argument to avoid this printz (CP[153]); ^ "%s", ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:141:11: note: treat the string as an argument to avoid this printz (CP[194]); ^ "%s", ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:143:11: note: treat the string as an argument to avoid this printz (CP[202]); ^ "%s", ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:145:11: note: treat the string as an argument to avoid this printz (CP[149]); ^ "%s", ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:149:11: note: treat the string as an argument to avoid this printz (CP[188]); ^ "%s", ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:151:11: note: treat the string as an argument to avoid this printz (CP[181]); ^ "%s", ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:197:11: note: treat the string as an argument to avoid this printz (CP[29]); ^ "%s", ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:199:11: note: treat the string as an argument to avoid this printz (CP[28]); ^ "%s", ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:201:11: note: treat the string as an argument to avoid this printz (CP[136]); ^ "%s", ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:203:11: note: treat the string as an argument to avoid this printz (CP[155]); ^ "%s", ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:299:11: note: treat the string as an argument to avoid this printz (CP[106]); ^ "%s", ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:464:13: note: treat the string as an argument to avoid this printf (CP[57]); ^ "%s", ./nondsp.c:554:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[124]); ^~~~~~~ ./nondsp.c:554:11: note: treat the string as an argument to avoid this printz (CP[124]); ^ "%s", ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:597:13: note: treat the string as an argument to avoid this printz (CP[223]); ^ "%s", ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:620:15: note: treat the string as an argument to avoid this printz (CP[61]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./nuxdsp.c ./nuxdsp.c:293:3: warning: implicit declaration of function 'ZeroRPT' is invalid in C99 [-Wimplicit-function-declaration] ZeroRPT (); ^ ./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: non-void function does not return a value [-Wreturn-type] {ClrScreen();refresh();LdisplayLine=4;} ^ 4 warnings generated. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/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:322:21: note: treat the string as an argument to avoid this fprintf (stderr, CP[113]); ^ "%s", ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:383:16: note: treat the string as an argument to avoid this printf (CP[220]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DXBOARD -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/opt/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/opt/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:191:11: note: treat the string as an argument to avoid this printf (CP[77]); ^ "%s", ./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); ^ ./book.c:1252:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ 7 warnings generated. mv book.o bookX.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilX.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:417:11: note: treat the string as an argument to avoid this printf (CP[66]); ^ "%s", ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./ttable.c:472:11: note: treat the string as an argument to avoid this printf (CP[49]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:206:12: note: treat the string as an argument to avoid this printz (CP[77]); ^ "%s", ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:686:20: note: treat the string as an argument to avoid this fprintf (fd, CP[126]); ^ "%s", ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:753:16: note: treat the string as an argument to avoid this fprintf (fd, CP[10]); ^ "%s", ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:754:16: note: treat the string as an argument to avoid this fprintf (fd, CP[11]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:73:11: note: treat the string as an argument to avoid this printf (CP[43]); /*Chess*/ ^ "%s", ./nondsp.c:118:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nondsp.c:118:11: note: treat the string as an argument to avoid this printz (CP[40]); ^ "%s", ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:121:11: note: treat the string as an argument to avoid this printz (CP[158]); ^ "%s", ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:133:11: note: treat the string as an argument to avoid this printz (CP[130]); ^ "%s", ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:137:11: note: treat the string as an argument to avoid this printz (CP[200]); ^ "%s", ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:139:11: note: treat the string as an argument to avoid this printz (CP[153]); ^ "%s", ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:141:11: note: treat the string as an argument to avoid this printz (CP[194]); ^ "%s", ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:143:11: note: treat the string as an argument to avoid this printz (CP[202]); ^ "%s", ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:145:11: note: treat the string as an argument to avoid this printz (CP[149]); ^ "%s", ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:149:11: note: treat the string as an argument to avoid this printz (CP[188]); ^ "%s", ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:151:11: note: treat the string as an argument to avoid this printz (CP[181]); ^ "%s", ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:197:11: note: treat the string as an argument to avoid this printz (CP[29]); ^ "%s", ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:199:11: note: treat the string as an argument to avoid this printz (CP[28]); ^ "%s", ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:201:11: note: treat the string as an argument to avoid this printz (CP[136]); ^ "%s", ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:203:11: note: treat the string as an argument to avoid this printz (CP[155]); ^ "%s", ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:299:11: note: treat the string as an argument to avoid this printz (CP[106]); ^ "%s", ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:464:13: note: treat the string as an argument to avoid this printf (CP[57]); ^ "%s", ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:597:13: note: treat the string as an argument to avoid this printz (CP[223]); ^ "%s", ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:620:15: note: treat the string as an argument to avoid this printz (CP[61]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/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:322:21: note: treat the string as an argument to avoid this fprintf (stderr, CP[113]); ^ "%s", ./main.c:383:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[220]); ^~~~~~~ ./main.c:383:16: note: treat the string as an argument to avoid this printf (CP[220]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DNONDSP -DCHESSTOOL -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/opt/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/opt/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:191:11: note: treat the string as an argument to avoid this printf (CP[77]); ^ "%s", ./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); ^ ./book.c:1252:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ 7 warnings generated. mv book.o bookC.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -c ./util.c mv util.o utilC.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:417:11: note: treat the string as an argument to avoid this printf (CP[66]); ^ "%s", ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./ttable.c:472:11: note: treat the string as an argument to avoid this printf (CP[49]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:202:12: note: treat the string as an argument to avoid this printz (CP[78]); ^ "%s", ./dspcom.c:290:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[78]); ^~~~~~ ./dspcom.c:290:11: note: treat the string as an argument to avoid this printz (CP[78]); ^ "%s", ./dspcom.c:686:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[126]); ^~~~~~~ ./dspcom.c:686:20: note: treat the string as an argument to avoid this fprintf (fd, CP[126]); ^ "%s", ./dspcom.c:753:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[10]); ^~~~~~ ./dspcom.c:753:16: note: treat the string as an argument to avoid this fprintf (fd, CP[10]); ^ "%s", ./dspcom.c:754:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fprintf (fd, CP[11]); ^~~~~~ ./dspcom.c:754:16: note: treat the string as an argument to avoid this fprintf (fd, CP[11]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:73:11: note: treat the string as an argument to avoid this printf (CP[43]); /*Chess*/ ^ "%s", ./nondsp.c:118:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[40]); ^~~~~~ ./nondsp.c:118:11: note: treat the string as an argument to avoid this printz (CP[40]); ^ "%s", ./nondsp.c:121:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[158]); ^~~~~~~ ./nondsp.c:121:11: note: treat the string as an argument to avoid this printz (CP[158]); ^ "%s", ./nondsp.c:133:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[130]); ^~~~~~~ ./nondsp.c:133:11: note: treat the string as an argument to avoid this printz (CP[130]); ^ "%s", ./nondsp.c:137:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[200]); ^~~~~~~ ./nondsp.c:137:11: note: treat the string as an argument to avoid this printz (CP[200]); ^ "%s", ./nondsp.c:139:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[153]); ^~~~~~~ ./nondsp.c:139:11: note: treat the string as an argument to avoid this printz (CP[153]); ^ "%s", ./nondsp.c:141:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[194]); ^~~~~~~ ./nondsp.c:141:11: note: treat the string as an argument to avoid this printz (CP[194]); ^ "%s", ./nondsp.c:143:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[202]); ^~~~~~~ ./nondsp.c:143:11: note: treat the string as an argument to avoid this printz (CP[202]); ^ "%s", ./nondsp.c:145:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[149]); ^~~~~~~ ./nondsp.c:145:11: note: treat the string as an argument to avoid this printz (CP[149]); ^ "%s", ./nondsp.c:149:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[188]); ^~~~~~~ ./nondsp.c:149:11: note: treat the string as an argument to avoid this printz (CP[188]); ^ "%s", ./nondsp.c:151:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[181]); ^~~~~~~ ./nondsp.c:151:11: note: treat the string as an argument to avoid this printz (CP[181]); ^ "%s", ./nondsp.c:197:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[29]); ^~~~~~ ./nondsp.c:197:11: note: treat the string as an argument to avoid this printz (CP[29]); ^ "%s", ./nondsp.c:199:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[28]); ^~~~~~ ./nondsp.c:199:11: note: treat the string as an argument to avoid this printz (CP[28]); ^ "%s", ./nondsp.c:201:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[136]); ^~~~~~~ ./nondsp.c:201:11: note: treat the string as an argument to avoid this printz (CP[136]); ^ "%s", ./nondsp.c:203:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[155]); ^~~~~~~ ./nondsp.c:203:11: note: treat the string as an argument to avoid this printz (CP[155]); ^ "%s", ./nondsp.c:299:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[106]); ^~~~~~~ ./nondsp.c:299:11: note: treat the string as an argument to avoid this printz (CP[106]); ^ "%s", ./nondsp.c:464:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[57]); ^~~~~~ ./nondsp.c:464:13: note: treat the string as an argument to avoid this printf (CP[57]); ^ "%s", ./nondsp.c:597:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[223]); ^~~~~~~ ./nondsp.c:597:13: note: treat the string as an argument to avoid this printz (CP[223]); ^ "%s", ./nondsp.c:620:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printz (CP[61]); ^~~~~~ ./nondsp.c:620:15: note: treat the string as an argument to avoid this printz (CP[61]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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=\"/opt/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. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -o postprint postprint.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DPGNECO=\"/opt/pkg/share/gnuchess4/eco.pgn\" -DBINECO=\"/opt/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:191:11: note: treat the string as an argument to avoid this printf (CP[77]); ^ "%s", ./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); ^ ./book.c:1252:5: warning: implicit declaration of function 'Ldisplay2' is invalid in C99 [-Wimplicit-function-declaration] Ldisplay2 (); ^ 7 warnings generated. mv book.o bookG.o clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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:417:11: note: treat the string as an argument to avoid this printf (CP[66]); ^ "%s", ./ttable.c:472:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (CP[49]); ^~~~~~ ./ttable.c:472:11: note: treat the string as an argument to avoid this printf (CP[49]); ^ "%s", ./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 clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DIGNUAN -DBINBOOK=\"/opt/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); ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/filio.h:77:25: note: expanded from macro 'FIONREAD' #define FIONREAD _IOR('f', 127, int) /* get # bytes to read */ ^~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/ioccom.h:94:27: note: expanded from macro '_IOR' #define _IOR(g, n, t) _IOC(IOC_OUT, (g), (n), sizeof(t)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/ioccom.h:92:2: note: expanded from macro '_IOC' (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./gnuan.c:1020:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ./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]; ^ 5 warnings generated. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/pkg/share/gnuchess4/gnuchess.lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -DBINBOOK=\"/opt/pkg/share/gnuchess4/gnuchess.data\" -DBINECO=\"/opt/pkg/share/gnuchess4/gnuchess.eco\" -DPGNECO=\"/opt/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:222:11: note: treat the string as an argument to avoid this printf (CP[77]); ^ "%s", ./eco.c:531:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("SIZES %d %d\n",sizeof(struct gdxadmin),sizeof(struct gdxdata)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~ %lu ./eco.c:531:52: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("SIZES %d %d\n",sizeof(struct gdxadmin),sizeof(struct gdxdata)); ~~ ^~~~~~~~~~~~~~~~~~~~~~ %lu ./eco.c:687:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 4 warnings generated. clang -I. -O2 -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=8 -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=\"/opt/pkg/share/gnuchess4/gnuchess.hash\" -DLANGFILE=\"/opt/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 clang -I. -O2 -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=8 -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:460:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ", ALIGNMENT, workasz, scrpath, VERSION); ^~~~~~~~~ ./binsort.c:69:20: note: expanded from macro 'ALIGNMENT' #define ALIGNMENT (sizeof(double)) ^~~~~~~~~~~~~~~~ ./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: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:788:6: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] pw - (char *)workarea); ^~~~~~~~~~~~~~~~~~~~~ ./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) { ^ == 12 warnings generated. clang -I. -O2 -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=8 -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. clang -I. -O2 -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=8 -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() ^ ./ecosort.c:36:67: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] sprintf(strcmd,"./binsort -r %d -k L:a:0:2step2.eco\n",sizeof(struct gdxecodata)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %lu /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ 2 warnings generated. rm -f gnuchess.eco step1.eco step2.eco echo 0 0 | ./ecor -b ./../book/eco.pgn -B step1.eco Enter [moves] minutes[:sec] [increment][+]: White 0:00 Black 0:00 R N B Q K B N R P P P P P P P P - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - p p p p p p p p r n b q k b n r SIZES 24 24 ./../book/eco.pgn ./ecosort ./binsort -r 24 -k L:a:0:2step2.eco ./ecocvt step2.eco gnuchess.eco rm -f step1.eco step2.eco rm gnuchess.data rm: gnuchess.data: No such file or directory *** Error code 1 (ignored) echo 3 0 >test;echo quit >>test gzip -d -c ./../book/gnuchess.bk3.gz > ./t cat test| ./gnuchessr -b ./t -B gnuchess.data -S 12000 -P 10 Enter [moves] minutes[:sec] [increment][+]: White 0:00 Black 0:00 R N B Q K B N R P P P P P P P P - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - p p p p p p p p r n b q k b n r creating bookfile gnuchess.data 192008 12000 1000 rec 439 openings processed 2000 rec 914 openings processed 3000 rec 1271 openings processed 4000 rec 2362 openings processed 5000 rec 2981 openings processed 6000 rec 6564 openings processed 7000 rec 8449 openings processed 8000 rec 10737 openings processed 9000 rec 11834 openings processed 10000 rec 12890 openings processed Book used 10938 of 12000 entries. Playing without hashfile Your move is? rm -f test ./t