=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/games/xboard", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for xboard-4.9.1nb33 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in po --- check-macro-version --- --- xaw/.dirstamp --- --- xaw/.deps/.dirstamp --- --- backend.o --- --- book.o --- --- childio.o --- CC childio.o --- backend.o --- CC backend.o --- book.o --- CC book.o --- gamelist.o --- --- ngamelist.o --- --- gamelist.o --- CC gamelist.o --- ngamelist.o --- CC ngamelist.o --- book.o --- book.c: In function 'SaveToBook': book.c:891:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 891 | for(i=0; i f) | ^~ moves.c:506:85: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 506 | if(killX < 0) cb(board, flags, FirstLeg, r, f, y, x, cl); if(killX > f) | ^~ --- book.o --- book.c: In function 'ReadFromBookFile': book.c:593:9: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 593 | strncpy(curBook, book, MSG_SIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ book.c:593:9: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] --- moves.o --- moves.c: In function 'GenPseudoLegal': moves.c:1117:15: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 1117 | for (d = 0; d <= 1; d++) // Dababba moves that Rook cannot do | ^~~ moves.c:1126:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 1126 | Rook(board, flags, rf, ff, callback, closure); | ^~~~ --- parser.o --- parser.c: In function 'KifuMove': parser.c:269:17: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 269 | if(kifu * ~1) { // disambiguation was given, and thus is probably needed | ~~~~~^~~~ parser.c: In function 'NextUnit': parser.c:727:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 727 | if(**p == '.') (*p)++; SkipWhite(p); | ^~ parser.c:727:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 727 | if(**p == '.') (*p)++; SkipWhite(p); | ^~~~~~~~~ --- pgntags.o --- CC pgntags.o --- uci.o --- CC uci.o uci.c: In function 'InitEngineUCI': uci.c:58:73: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 58 | if(strstr(buf, "first") == buf) sprintf(argName, "second%s", buf+5); else | ^ uci.c:58:47: note: 'sprintf' output between 7 and 513 bytes into a destination of size 512 58 | if(strstr(buf, "first") == buf) sprintf(argName, "second%s", buf+5); else | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- board.o --- CC board.o --- draw.o --- CC draw.o --- moves.o --- moves.c: In function 'MovesFromString': moves.c:425:13: warning: 'strncpy' specified bound 80 equals destination size [-Wstringop-truncation] 425 | strncpy(buf, cont, 80); cont = buf; // copy next leg(s), so we can modify | ^~~~~~~~~~~~~~~~~~~~~~ --- draw.o --- In file included from draw.c:59: /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg-cairo.h:26:2: warning: #warning "Including directly is deprecated." [-Wcpp] 26 | #warning "Including directly is deprecated." | ^~~~~~~ draw.c: In function 'LoadSVG': draw.c:357:7: warning: 'rsvg_handle_get_dimensions' is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead [-Wdeprecated-declarations] 357 | rsvg_handle_get_dimensions(svg, &svg_dimensions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from draw.c:58: /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg.h:661:6: note: declared here 661 | void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ draw.c:362:7: warning: 'rsvg_handle_render_cairo' is deprecated: Use 'rsvg_handle_render_document' instead [-Wdeprecated-declarations] 362 | rsvg_handle_render_cairo(svg, cr); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg.h:1329: /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg-cairo.h:90:10: note: declared here 90 | gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr); | ^~~~~~~~~~~~~~~~~~~~~~~~ draw.c: In function 'ScaleOnePiece': draw.c:386:3: warning: 'g_type_init' is deprecated [-Wdeprecated-declarations] 386 | g_type_init (); | ^~~~~~~~~~~ In file included from /home/pbulk/work/games/xboard/work/.buildlink/include/glib-2.0/gobject/gobject.h:26, from /home/pbulk/work/games/xboard/work/.buildlink/include/glib-2.0/gobject/gbinding.h:31, from /home/pbulk/work/games/xboard/work/.buildlink/include/glib-2.0/glib-object.h:24, from /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg.h:30: /home/pbulk/work/games/xboard/work/.buildlink/include/glib-2.0/gobject/gtype.h:737:23: note: declared here 737 | void g_type_init (void); | ^~~~~~~~~~~ draw.c: In function 'ClearPieces': draw.c:479:9: warning: 'rsvg_handle_close' is deprecated: Use 'rsvg_handle_read_stream_sync' instead [-Wdeprecated-declarations] 479 | if(svgPieces[i][p]) rsvg_handle_close(svgPieces[i][p], NULL); | ^~ /home/pbulk/work/games/xboard/work/.buildlink/include/librsvg-2.0/librsvg/rsvg.h:614:10: note: declared here 614 | gboolean rsvg_handle_close (RsvgHandle *handle, GError **error); | ^~~~~~~~~~~~~~~~~ --- dialogs.o --- CC dialogs.o dialogs.c: In function 'RefreshColor': dialogs.c:991:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 991 | if(r < 0) r = 0; if(g < 0) g = 0; if(b < 0) b = 0; | ^~ dialogs.c:991:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 991 | if(r < 0) r = 0; if(g < 0) g = 0; if(b < 0) b = 0; | ^~ dialogs.c:992:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 992 | if(r > 0xFF0000) r = 0xFF0000; if(g > 0xFF00) g = 0xFF00; if(b > 0xFF) b = 0xFF; | ^~ dialogs.c:992:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 992 | if(r > 0xFF0000) r = 0xFF0000; if(g > 0xFF00) g = 0xFF00; if(b > 0xFF) b = 0xFF; | ^~ dialogs.c: In function 'NewCommentPopup': dialogs.c:1169:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1169 | if(commentText) free(commentText); commentText = strdup(text); | ^~ dialogs.c:1169:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1169 | if(commentText) free(commentText); commentText = strdup(text); | ^~~~~~~~~~~ dialogs.c: In function 'NewTagsPopup': dialogs.c:1265:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1265 | if(tagsText) free(tagsText); tagsText = strdup(text); | ^~ dialogs.c:1265:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1265 | if(tagsText) free(tagsText); tagsText = strdup(text); | ^~~~~~~~ dialogs.c: In function 'LoadEngineProc': dialogs.c:1562:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1562 | if(engineLine) free(engineLine); engineLine = strdup(""); | ^~ dialogs.c:1562:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1562 | if(engineLine) free(engineLine); engineLine = strdup(""); | ^~~~~~~~~~ dialogs.c:1563:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1563 | if(engineDir) free(engineDir); engineDir = strdup("."); | ^~ dialogs.c:1563:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1563 | if(engineDir) free(engineDir); engineDir = strdup("."); | ^~~~~~~~~ dialogs.c:1564:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1564 | if(nickName) free(nickName); nickName = strdup(""); | ^~ dialogs.c:1564:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1564 | if(nickName) free(nickName); nickName = strdup(""); | ^~~~~~~~ dialogs.c:1565:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1565 | if(params) free(params); params = strdup(""); | ^~ dialogs.c:1565:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1565 | if(params) free(params); params = strdup(""); | ^~~~~~ dialogs.c: In function 'GetHelpText': dialogs.c:2636:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 2636 | while(buf[--len] == ' ') buf[len] = NULLCHAR; len++; | ^~~~~ dialogs.c:2636:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 2636 | while(buf[--len] == ' ') buf[len] = NULLCHAR; len++; | ^~~ dialogs.c: In function 'StartDir': dialogs.c:3340:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 3340 | for(p=*res; q=strchr(p, '/');) p = q + 1; *p = NULLCHAR; | ^~~ dialogs.c:3340:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 3340 | for(p=*res; q=strchr(p, '/');) p = q + 1; *p = NULLCHAR; | ^ --- engineoutput.o --- CC engineoutput.o --- draw.o --- draw.c: In function 'InscribeKanji': draw.c:906:5: warning: 'strncpy' specified bound 20 equals destination size [-Wstringop-truncation] 906 | strncpy(buf, p, 20); | ^~~~~~~~~~~~~~~~~~~ draw.c:906:5: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] draw.c:887:15: note: 'q' was declared here 887 | char *p, *q, buf[20], nr = 1; | ^ --- engineoutput.o --- engineoutput.c: In function 'Format': engineoutput.c:467:39: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 467 | snprintf( buf, 24, "%d%s\t", val, spaces + 2*i); | ^ engineoutput.c:467:13: note: 'snprintf' output between 3 and 25 bytes into a destination of size 24 467 | snprintf( buf, 24, "%d%s\t", val, spaces + 2*i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- nengineoutput.o --- --- backend.o --- backend.c: In function 'ParseTimeControl': backend.c:1380:34: warning: '+' directive output may be truncated writing 1 byte into a region of size between 0 and 511 [-Wformat-truncation=] 1380 | snprintf(buf, MSG_SIZ, ":%s+%g", mytc, ti); | ^ backend.c:1380:30: note: assuming directive output of 12 bytes 1380 | snprintf(buf, MSG_SIZ, ":%s+%g", mytc, ti); | ^~~~~~~~ backend.c:1380:7: note: 'snprintf' output between 4 and 527 bytes into a destination of size 512 1380 | snprintf(buf, MSG_SIZ, ":%s+%g", mytc, ti); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- nengineoutput.o --- CC nengineoutput.o --- backend.o --- backend.c:1378:35: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 499 and 509 [-Wformat-truncation=] 1378 | snprintf(buf, MSG_SIZ, ":%d/%s+%g", mps, mytc, ti); | ^~ backend.c:1378:30: note: assuming directive output of 12 bytes 1378 | snprintf(buf, MSG_SIZ, ":%d/%s+%g", mps, mytc, ti); | ^~~~~~~~~~~ backend.c:1378:7: note: 'snprintf' output between 6 and 539 bytes into a destination of size 512 1378 | snprintf(buf, MSG_SIZ, ":%d/%s+%g", mps, mytc, ti); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:1385:34: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1385 | snprintf(buf, MSG_SIZ, ":%s", mytc); | ^ backend.c:1385:7: note: 'snprintf' output between 2 and 513 bytes into a destination of size 512 1385 | snprintf(buf, MSG_SIZ, ":%s", mytc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:1383:35: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 499 and 509 [-Wformat-truncation=] 1383 | snprintf(buf, MSG_SIZ, ":%d/%s", mps, mytc); | ^~ backend.c:1383:7: note: 'snprintf' output between 4 and 525 bytes into a destination of size 512 1383 | snprintf(buf, MSG_SIZ, ":%d/%s", mps, mytc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- engineoutput.o --- engineoutput.c: In function 'SetProgramStats': engineoutput.c:621:62: warning: ' ' directive output may be truncated writing 1 byte into a region of size between 0 and 11 [-Wformat-truncation=] 621 | if(-h >= MATE_SCORE) snprintf(s_score, 16, " %s#-%d%c\t", (-h > MATE_SCORE+9 ? "" : " "), -h - MATE_SCORE, fail ); else | ^~ In function 'UpdateControls', inlined from 'SetProgramStats' at engineoutput.c:264:5: engineoutput.c:621:30: note: 'snprintf' output between 7 and 18 bytes into a destination of size 16 621 | if(-h >= MATE_SCORE) snprintf(s_score, 16, " %s#-%d%c\t", (-h > MATE_SCORE+9 ? "" : " "), -h - MATE_SCORE, fail ); else | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ engineoutput.c: In function 'SetProgramStats': engineoutput.c:620:62: warning: ' ' directive output may be truncated writing 1 byte into a region of size between 0 and 11 [-Wformat-truncation=] 620 | if( h >= MATE_SCORE) snprintf(s_score, 16, " %s#%d%c\t", ( h > MATE_SCORE+9 ? "" : " "), h - MATE_SCORE, fail ); else | ^~ In function 'UpdateControls', inlined from 'SetProgramStats' at engineoutput.c:264:5: engineoutput.c:620:30: note: 'snprintf' output between 7 and 18 bytes into a destination of size 16 620 | if( h >= MATE_SCORE) snprintf(s_score, 16, " %s#%d%c\t", ( h > MATE_SCORE+9 ? "" : " "), h - MATE_SCORE, fail ); else | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- dialogs.o --- dialogs.c: In function 'BrowseOK': dialogs.c:3165:52: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 3165 | snprintf(title, MSG_SIZ, "%s/%s", curDir, fileName); | ^ dialogs.c:3165:21: note: 'snprintf' output 2 or more bytes (assuming 513) into a destination of size 512 3165 | snprintf(title, MSG_SIZ, "%s/%s", curDir, fileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- evalgraph.o --- CC evalgraph.o --- nevalgraph.o --- CC nevalgraph.o --- dialogs.o --- dialogs.c: In function 'SendString': dialogs.c:1050:9: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 1050 | strncpy(buf2, p, MSG_SIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~ dialogs.c:1066:37: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1066 | snprintf(buf, MSG_SIZ, "%s\n", p); | ^ dialogs.c:1066:9: note: 'snprintf' output between 2 and 513 bytes into a destination of size 512 1066 | snprintf(buf, MSG_SIZ, "%s\n", p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- backend.o --- backend.c: In function 'CoordsToComputerAlgebraic': backend.c:5389:39: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 5389 | sprintf(move+4, ";%c%c%c\n", AAA + killX, ONE + killY, promoChar); | ^ backend.c:5389:13: note: 'sprintf' output 6 bytes into a destination of size 5 5389 | sprintf(move+4, ";%c%c%c\n", AAA + killX, ONE + killY, promoChar); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5390:65: warning: '%c' directive writing 1 byte into a region of size 0 [-Wformat-overflow=] 5390 | if(kill2X >= 0 && kill2Y >= 0) sprintf(move+7, "%c%c%c\n", AAA + kill2X, ONE + kill2Y, promoChar); | ^~ backend.c:5390:44: note: 'sprintf' output 5 bytes into a destination of size 2 5390 | if(kill2X >= 0 && kill2Y >= 0) sprintf(move+7, "%c%c%c\n", AAA + kill2X, ONE + kill2Y, promoChar); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5383:65: warning: ' ' directive writing 1 byte into a region of size 0 [-Wformat-overflow=] 5383 | if(kill2X >= 0 && kill2Y >= 0) sprintf(move+7, "%c%c\n", AAA + kill2X, ONE + kill2Y); | ^~ backend.c:5383:44: note: 'sprintf' output 4 bytes into a destination of size 2 5383 | if(kill2X >= 0 && kill2Y >= 0) sprintf(move+7, "%c%c\n", AAA + kill2X, ONE + kill2Y); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- dialogs.o --- dialogs.c: In function 'ContextMenu': dialogs.c:2026:5: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 2026 | strncpy(clickedWord, text, MSG_SIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- history.o --- CC history.o --- nhistory.o --- CC nhistory.o --- menus.o --- CC menus.o --- usounds.o --- CC usounds.o --- usystem.o --- CC usystem.o --- dialogs.o --- dialogs.c: In function 'GetHelpText': dialogs.c:2637:40: warning: '%s' directive output may be truncated writing up to 508 bytes into a region of size 503 [-Wformat-truncation=] 2637 | snprintf(title, MSG_SIZ, "Help on '%s'", buf+3); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ dialogs.c:2637:5: note: 'snprintf' output between 11 and 519 bytes into a destination of size 512 2637 | snprintf(title, MSG_SIZ, "Help on '%s'", buf+3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dialogs.c:2669:52: warning: '%s' directive output may be truncated writing up to 508 bytes into a region of size 490 [-Wformat-truncation=] 2669 | snprintf(text, MSG_SIZ, "No help available on '%s'\n", buf+3); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ dialogs.c:2669:5: note: 'snprintf' output between 25 and 533 bytes into a destination of size 512 2669 | snprintf(text, MSG_SIZ, "No help available on '%s'\n", buf+3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- usystem.o --- usystem.c: In function 'get_term_width': usystem.c:778:9: warning: variable 'fd' set but not used [-Wunused-but-set-variable] 778 | int fd, default_width; | ^~ --- menus.o --- menus.c: In function 'InstallFromDir': menus.c:1190:31: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 511 and 512 [-Wformat-truncation=] 1190 | snprintf(buf, MSG_SIZ, "%s%s%s", quote, command, quote); | ^~ In function 'InstallNewEngine', inlined from 'InstallFromDir' at menus.c:1245:3: menus.c:1190:5: note: 'snprintf' output between 1 and 1026 bytes into a destination of size 512 1190 | snprintf(buf, MSG_SIZ, "%s%s%s", quote, command, quote); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- dialogs.o --- dialogs.c: In function 'DisplayHelp': dialogs.c:2710:52: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 502 [-Wformat-truncation=] 2710 | snprintf(tidy, MSG_SIZ, "gunzip -c %s", buf); | ^~ ~~~ dialogs.c:2710:17: note: 'snprintf' output between 11 and 522 bytes into a destination of size 512 2710 | snprintf(tidy, MSG_SIZ, "gunzip -c %s", buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dialogs.c: In function 'ListDir': dialogs.c:3219:40: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 509 [-Wformat-truncation=] 3219 | snprintf(title, MSG_SIZ, "%s %s", _("Contents of"), curDir); | ^~ ~~~~~~ dialogs.c:3219:9: note: 'snprintf' output 4 or more bytes (assuming 515) into a destination of size 512 3219 | snprintf(title, MSG_SIZ, "%s %s", _("Contents of"), curDir); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- zippy.o --- CC zippy.o --- xaw/xboard.o --- CC xaw/xboard.o --- zippy.o --- zippy.c: In function 'ZippyMatch': zippy.c:887:26: warning: the comparison will always evaluate as 'false' for the address of 'star_match' will never be NULL [-Waddress] 887 | if(star_match[8] == NULL || star_match[8][0] == 0) // [HGM] chessd: open-source ICS has file on next line | ^~ In file included from zippy.c:94: backendz.h:60:13: note: 'star_match' declared here 60 | extern char star_match[STAR_MATCH_N][MSG_SIZ]; | ^~~~~~~~~~ zippy.c: In function 'ZippyControl': zippy.c:513:41: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 506 [-Wformat-truncation=] 513 | snprintf(reply, MSG_SIZ, "ptell %s\n", star_match[1]); | ^~ ~~~~~~~~~~~~~ zippy.c:513:9: note: 'snprintf' output between 8 and 519 bytes into a destination of size 512 513 | snprintf(reply, MSG_SIZ, "ptell %s\n", star_match[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- xaw/xengineoutput.o --- --- xaw/xboard.o --- xaw/xboard.c: In function 'DisplayIcsInteractionTitle': xaw/xboard.c:2174:29: error: initialization of 'int (*)(void)' from incompatible pointer type 'XErrorHandler' {aka 'int (*)(struct _XDisplay *, XErrorEvent *)'} [-Wincompatible-pointer-types] 2174 | int (*oldHandler)() = XSetErrorHandler(NullXErrorCheck); | ^~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/games/xboard/work/.buildlink/include/cairo/cairo-xlib.h:44, from xaw/xboard.c:66: /home/pbulk/work/games/xboard/work/.buildlink/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ xaw/xboard.c:2183:24: error: passing argument 1 of 'XSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 2183 | XSetErrorHandler(oldHandler); | ^~~~~~~~~~ | | | int (*)(void) /home/pbulk/work/games/xboard/work/.buildlink/include/X11/Xlib.h:1849:5: note: expected 'XErrorHandler' {aka 'int (*)(struct _XDisplay *, XErrorEvent *)'} but argument is of type 'int (*)(void)' 1849 | XErrorHandler /* handler */ | ^~~~~~~~~~~~~ /home/pbulk/work/games/xboard/work/.buildlink/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ --- xaw/xengineoutput.o --- CC xaw/xengineoutput.o --- xaw/xboard.o --- xaw/xboard.c: In function 'GenerateGlobalTranslationTable': xaw/xboard.c:912:19: warning: 'strncat' specified bound 5 equals source length [-Wstringop-overflow=] 912 | strncat(mods, "Meta ", 5); | ^~~~~~~~~~~~~~~~~~~~~~~~~ xaw/xboard.c:918:19: warning: 'strncat' specified bound 6 equals source length [-Wstringop-overflow=] 918 | strncat(mods, "Shift ", 6); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ *** [xaw/xboard.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/work/games/xboard/work/xboard-4.9.1 --- backend.o --- backend.c: In function 'ApplyMove': backend.c:10315:8: warning: 'killed' may be used uninitialized [-Wmaybe-uninitialized] 10315 | && (piece < BlackPawn ? killed < BlackPawn : killed >= BlackPawn)) { // and tramples own | ^~ backend.c:10215:62: note: 'killed' was declared here 10215 | ChessSquare captured = board[toY][toX], piece, pawn, king, killed, killed2; int p, rookX, oldEP, epRank, berolina = 0; | ^~~~~~ backend.c: In function 'SendMultiLineToICS': backend.c:15459:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 15459 | strncpy(temp, buf, len); | ^~~~~~~~~~~~~~~~~~~~~~~ backend.c:15455:11: note: length computed here 15455 | len = strlen(buf); | ^~~~~~~~~~~ backend.c: In function 'TimeString': backend.c:18092:45: warning: '%d' directive output may be truncated writing between 1 and 8 bytes into a region of size 6 [-Wformat-truncation=] 18092 | if(timeSuffix) snprintf(moveTime, 8, " (%d)", timeSuffix/1000); // [HGM] kludge alert; fraction contains move time | ^~ backend.c:18092:42: note: directive argument in the range [-2147483, 2147483] 18092 | if(timeSuffix) snprintf(moveTime, 8, " (%d)", timeSuffix/1000); // [HGM] kludge alert; fraction contains move time | ^~~~~~~ backend.c:18092:20: note: 'snprintf' output between 5 and 12 bytes into a destination of size 8 18092 | if(timeSuffix) snprintf(moveTime, 8, " (%d)", timeSuffix/1000); // [HGM] kludge alert; fraction contains move time | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'AddAd': backend.c:2665:50: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 502 [-Wformat-truncation=] 2665 | snprintf(buf, MSG_SIZ, "%s (%s) %d %d %c %s%s", handle, rating, base, inc, rated, type, ext); | ^~ backend.c:2665:9: note: 'snprintf' output 11 or more bytes (assuming 522) into a destination of size 512 2665 | snprintf(buf, MSG_SIZ, "%s (%s) %d %d %c %s%s", handle, rating, base, inc, rated, type, ext); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'UploadGameEvent': backend.c:5308:44: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 506 [-Wformat-truncation=] 5308 | snprintf(command,MSG_SIZ, "match %s", ics_handle); | ^~ ~~~~~~~~~~ backend.c:5308:11: note: 'snprintf' output between 7 and 518 bytes into a destination of size 512 5308 | snprintf(command,MSG_SIZ, "match %s", ics_handle); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5321:43: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 5321 | } else snprintf(buf, MSG_SIZ,"%s\n", ics_type == ICS_ICC ? command : "examine\n"); // match yourself or examine | ^ backend.c:5321:16: note: 'snprintf' output between 2 and 513 bytes into a destination of size 512 5321 | } else snprintf(buf, MSG_SIZ,"%s\n", ics_type == ICS_ICC ? command : "examine\n"); // match yourself or examine | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5319:55: warning: ' fr ' directive output may be truncated writing 4 bytes into a region of size between 1 and 512 [-Wformat-truncation=] 5319 | else if(i == 22) snprintf(buf,MSG_SIZ, "%s fr\n", command); | ^~~~~ backend.c:5319:30: note: 'snprintf' output between 5 and 516 bytes into a destination of size 512 5319 | else if(i == 22) snprintf(buf,MSG_SIZ, "%s fr\n", command); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5318:71: warning: ' w' directive output may be truncated writing 2 bytes into a region of size between 1 and 512 [-Wformat-truncation=] 5318 | if(i<=36 && ics_type == ICS_ICC) snprintf(buf, MSG_SIZ,"%s w%d\n", command, i); | ^~ backend.c:5318:68: note: directive argument in the range [1, 36] 5318 | if(i<=36 && ics_type == ICS_ICC) snprintf(buf, MSG_SIZ,"%s w%d\n", command, i); | ^~~~~~~~~~ backend.c:5318:46: note: 'snprintf' output between 5 and 517 bytes into a destination of size 512 5318 | if(i<=36 && ics_type == ICS_ICC) snprintf(buf, MSG_SIZ,"%s w%d\n", command, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5320:44: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 0 and 511 [-Wformat-truncation=] 5320 | else snprintf(buf, MSG_SIZ,"%s %s\n", command, VariantName(gameInfo.variant)); | ^~ backend.c:5320:18: note: 'snprintf' output between 3 and 1025 bytes into a destination of size 512 5320 | else snprintf(buf, MSG_SIZ,"%s %s\n", command, VariantName(gameInfo.variant)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:5358:55: warning: '%s' directive output may be truncated writing up to 31999 bytes into a region of size 20 [-Wformat-truncation=] 5358 | snprintf(buf, sizeof(buf)/sizeof(buf[0]),"%s", moveList[i]); // use long algebraic | ^~ backend.c:5358:13: note: 'snprintf' output between 1 and 32000 bytes into a destination of size 20 5358 | snprintf(buf, sizeof(buf)/sizeof(buf[0]),"%s", moveList[i]); // use long algebraic | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'wrap': backend.c:18878:17: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 18878 | strncpy(dest+len, cseq, cseq_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:18833:16: note: length computed here 18833 | cseq_len = strlen(cseq); | ^~~~~~~~~~~~ backend.c: In function 'Reset': backend.c:12063:9: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 12063 | strncpy(engineVariant, appData.variant, MSG_SIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'GameEnds': backend.c:11685:51: warning: ' but bare king' directive output may be truncated writing 14 bytes into a region of size between 1 and 512 [-Wformat-truncation=] 11685 | snprintf(buf, MSG_SIZ, "%s but bare king", resultDetails); | ^~~~~~~~~~~~~~ backend.c:11685:25: note: 'snprintf' output between 15 and 526 bytes into a destination of size 512 11685 | snprintf(buf, MSG_SIZ, "%s but bare king", resultDetails); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'BitbaseProbe', inlined from 'SendMoveToBookUser' at backend.c:8648:26: backend.c:8628:9: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 8628 | strncpy(buf, path + 8, MSG_SIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'FeedMovesToProgram': backend.c:11977:41: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 504 [-Wformat-truncation=] 11977 | snprintf(buf, MSG_SIZ, "variant %s\n", VariantName(gameInfo.variant)); | ^~ backend.c:11977:9: note: 'snprintf' output between 10 and 521 bytes into a destination of size 512 11977 | snprintf(buf, MSG_SIZ, "variant %s\n", VariantName(gameInfo.variant)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'PopInner': backend.c:18974:85: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 19 [-Wformat-truncation=] 18974 | else snprintf(moveBuf, sizeof(moveBuf)/sizeof(moveBuf[0])," %s", SavePart(parseList[i])); | ^~ backend.c:18974:30: note: 'snprintf' output between 2 and 513 bytes into a destination of size 20 18974 | else snprintf(moveBuf, sizeof(moveBuf)/sizeof(moveBuf[0])," %s", SavePart(parseList[i])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:18973:87: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 6 and 16 [-Wformat-truncation=] 18973 | snprintf(moveBuf, sizeof(moveBuf)/sizeof(moveBuf[0]), " %d. %s", (i+2)>>1, SavePart(parseList[i])); | ^~ backend.c:18973:27: note: 'snprintf' output between 5 and 526 bytes into a destination of size 20 18973 | snprintf(moveBuf, sizeof(moveBuf)/sizeof(moveBuf[0]), " %d. %s", (i+2)>>1, SavePart(parseList[i])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'MakeMove': backend.c:10650:17: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] 10650 | strncpy(buf, parseList[forwardMostMove], MOVE_LEN*2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'UserMoveEvent': backend.c:7193:48: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 498 [-Wformat-truncation=] 7193 | snprintf(buf, MSG_SIZ, " 0.0%% 1 %s\n", move); | ^~ ~~~~ backend.c:7193:9: note: 'snprintf' output between 16 and 527 bytes into a destination of size 512 7193 | snprintf(buf, MSG_SIZ, " 0.0%% 1 %s\n", move); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'LeftClick': backend.c:7910:11: warning: 'piece' may be used uninitialized [-Wmaybe-uninitialized] 7910 | if(piece == defaultPromoChoice) promoChoice = NULLCHAR; // deferral | ^ backend.c:7552:17: note: 'piece' was declared here 7552 | ChessSquare piece; | ^~~~~ backend.c: In function 'Load': backend.c:1017:42: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1017 | snprintf(command, MSG_SIZ, "%s %s", p, params); | ^ backend.c:1017:9: note: 'snprintf' output 2 or more bytes (assuming 513) into a destination of size 512 1017 | snprintf(command, MSG_SIZ, "%s %s", p, params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:1020:50: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 502 [-Wformat-truncation=] 1020 | if(jar) { snprintf(buf3, MSG_SIZ, "java -jar %s", p); p = buf3; } | ^~ backend.c:1020:15: note: 'snprintf' output between 11 and 522 bytes into a destination of size 512 1020 | if(jar) { snprintf(buf3, MSG_SIZ, "java -jar %s", p); p = buf3; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:1033:61: warning: '%c' directive output may be truncated writing 1 byte into a region of size between 0 and 511 [-Wformat-truncation=] 1033 | snprintf(buf+strlen(buf), MSG_SIZ-strlen(buf), "%c%s%c -fd \"%s\"%s%s%s%s%s%s%s%s\n", | ^~ backend.c:1033:9: note: 'snprintf' output 11 or more bytes (assuming 1096) into a destination of size 512 1033 | snprintf(buf+strlen(buf), MSG_SIZ-strlen(buf), "%c%s%c -fd \"%s\"%s%s%s%s%s%s%s%s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1034 | quote, p, quote, appData.directory[i], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1035 | useNick ? " -fn \"" : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~ 1036 | useNick ? nickName : "", | ~~~~~~~~~~~~~~~~~~~~~~~~ 1037 | useNick ? "\"" : "", | ~~~~~~~~~~~~~~~~~~~~ 1038 | v1 ? " -firstProtocolVersion 1" : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1039 | hasBook ? "" : " -fNoOwnBookUCI", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1040 | isUCI ? (isUCI == TRUE ? " -fUCI" : gameInfo.variant == VariantShogi ? " -fUSI" : " -fUCCI") : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1041 | storeVariant ? " -variant " : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1042 | storeVariant ? VariantName(gameInfo.variant) : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'ParseBoard12': backend.c:5022:65: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 496 [-Wformat-truncation=] 5022 | snprintf(str, MSG_SIZ, "%s (%d) %s %s (%d) {%d %d %s}", | ^~ backend.c:5022:15: note: 'snprintf' output 18 or more bytes (assuming 529) into a destination of size 512 5022 | snprintf(str, MSG_SIZ, "%s (%d) %s %s (%d) {%d %d %s}", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5023 | gameInfo.white, white_stren, _("vs."), gameInfo.black, black_stren, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5024 | basetime, increment, VariantName(gameInfo.variant)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c: In function 'read_from_ics': backend.c:3136:57: warning: ' kibitzes: ' directive output may be truncated writing 11 bytes into a region of size between 1 and 512 [-Wformat-truncation=] 3136 | snprintf(tmp, MSG_SIZ, "%s kibitzes: %s", star_match[0], parse); | ^~~~~~~~~~~ backend.c:3136:31: note: 'snprintf' output between 12 and 20522 bytes into a destination of size 512 3136 | snprintf(tmp, MSG_SIZ, "%s kibitzes: %s", star_match[0], parse); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:3095:52: warning: '%s' directive output may be truncated writing up to 19999 bytes into a region of size between 1 and 512 [-Wformat-truncation=] 3095 | snprintf(mess, MSG_SIZ, "%s%s", talker, parse); | ^~ ~~~~~ backend.c:3095:25: note: 'snprintf' output between 1 and 20511 bytes into a destination of size 512 3095 | snprintf(mess, MSG_SIZ, "%s%s", talker, parse); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:3101:62: warning: '%s' directive output may be truncated writing up to 19999 bytes into a region of size 510 [-Wformat-truncation=] 3101 | snprintf(mess, MSG_SIZ, "%s: %s", chatPartner[chattingPartner], parse); | ^~ ~~~~~ backend.c:3101:33: note: 'snprintf' output 3 or more bytes (assuming 20002) into a destination of size 512 3101 | snprintf(mess, MSG_SIZ, "%s: %s", chatPartner[chattingPartner], parse); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:3201:48: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 3201 | snprintf(buf, sizeof(buf), "%s@%s", ics_handle, appData.icsHost); | ^ backend.c:3201:15: note: 'snprintf' output 2 or more bytes (assuming 513) into a destination of size 512 3201 | snprintf(buf, sizeof(buf), "%s@%s", ics_handle, appData.icsHost); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ backend.c:3704:48: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 507 [-Wformat-truncation=] 3704 | snprintf(str, MSG_SIZ, "ICS %s %s match", star_match[0], star_match[1]); | ^~ ~~~~~~~~~~~~~ backend.c:3704:17: note: 'snprintf' output 12 or more bytes (assuming 523) into a destination of size 512 3704 | snprintf(str, MSG_SIZ, "ICS %s %s match", star_match[0], star_match[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bmake[2]: 1 error bmake[2]: stopped making "all-am" in /home/pbulk/work/games/xboard/work/xboard-4.9.1 bmake[1]: stopped making "all-recursive" in /home/pbulk/work/games/xboard/work/xboard-4.9.1 bmake: stopped making "all" in /home/pbulk/work/games/xboard/work/xboard-4.9.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xboard *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xboard