Snippets for got-game-of-trees 0.129 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/lv1w4b0xc8l96zps7hl2wfwvlmbk0a2l-got-0.129.drv.
-
fmt_scaled.c:237:66: warning: '%1lld' directive output may be truncated writing between 1 and 17 bytes into a region of size between 3 and 5 [-Wformat-truncation=] 237 | (void)snprintf(result, FMT_SCALED_STRSIZE, "%lld.%1lld%c", | ^~~~~ -
getopt.c:76:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 76 | !(oli = strchr(ostr, BSDoptopt))) { | ^ -
../lib/dial.c:110:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 110 | p = strstr(uri, "://"); | ^ -
../lib/error.c:373:49: warning: '%s' directive output may be truncated writing up to 16383 bytes into a region of size 4080 [-Wformat-truncation=] 373 | snprintf(cerr->msg, sizeof(cerr->msg), "%s: %s", buf, strerr); | ^~ ~~~ -
../lib/error.c:496:65: warning: '%s' directive output may be truncated writing up to 16383 bytes into a region of size 4080 [-Wformat-truncation=] 496 | snprintf(cerr->msg, sizeof(cerr->msg), "%s: %s", buf, | ^~ ~~~ -
got.c:4317:27: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 4317 | s = strstr(name, "/" GOT_REF_HEAD); | ^ -
../lib/sigs.c:144:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 144 | lt = strstr(tagger, " <"); | ^ -
../lib/sigs.c:145:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | gt = strrchr(tagger, '>'); | ^ -
session_write.c:723:14: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 64 [-Wformat-truncation=] 723 | "%s: %s %s %s: %.12s", gotd_session.repo_name, | ^~ ~~~~~~~~~~~~~~~~~~~~~~ -
../lib/gitproto.c:239:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 239 | equalsign = strchr(capa, '='); | ^ -
../lib/media.c:67:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 67 | p = strchr(file, '\0'); | ^ -
auth.c:389:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'time_t' {aka 'long int'} [-Wformat=] 389 | r = tp_writef(c->tp, "Set-Cookie: gwdauth=%s;" | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
auth.c:483:49: warning: '%s' directive argument is null [-Wformat-overflow=] 483 | log_info("logging out uid %u as %s for server \"%s\"", | ^~ -
/nix/store/3n59ss7lv6azs4jcykgnwxhd3mz22110-libbsd-0.12.2-dev/include/bsd/vis.h:107:2: warning: #warning "NetBSD added incompatible strnvis() and strnunvis(), please see <bsd/vis.h> for more detils." [-Wcpp] 107 | #warning "NetBSD added incompatible strnvis() and strnunvis(), please see <bsd/vis.h> for more detils." | ^~~~~~~ -
login.c:157:35: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 157 | log_warnx("uid %llu: %s token has expired\n", uid, purpose); | ~~~^ ~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %lu -
got-read-patch.c:176:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 176 | m = strchr(line, '('); | ^ -
got-send-pack.c:233:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 233 | eol = strchr(refname, '\n'); | ^ -
got-send-pack.c:240:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 240 | sp = strchr(refname, ' '); | ^ -
tog.c:2460:27: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2460 | s = strstr(name, "/" GOT_REF_HEAD); | ^ -
tog.c:3789:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3789 | slash = strchr(p, '/'); | ^ -
tog.c:3810:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3810 | slash = strchr(p, '/'); | ^ -
tog.c:239:62: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 503 [-Wformat-truncation=] 239 | snprintf(err_msg, sizeof(err_msg), "regcomp: %s", | ^~ 240 | regerr_msg); | ~~~~~~~~~~