Snippets for gtk-gnutella 1.3.2 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/yi3jm2dvs7rfjxsnpyigb8ilmgcnx2hv-gtk-gnutella-1.3.2.drv.
-
bsearch.c:99:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | found = bsearch(key, base, count, size, cmp); | ^ -
fileinfo.c:4565:13: warning: variable 'n' set but not used [-Wunused-but-set-variable=] 4565 | int n, againcount = 0; | ^ -
search.c:1478:27: warning: variable 'has_tth' set but not used [-Wunused-but-set-variable=] 1478 | uint8 has_ct = 0, has_tth = 0, has_xml = 0, expected_xml = 0; | ^~~~~~~ -
pattern.c:2254:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2254 | return strstr(haystack + 1, needle); | ^~~~~~ -
pattern.c:2438:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2438 | return strstr(haystack, cpat->pattern); | ^~~~~~ -
pattern.c:2454:24: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2454 | return strstr(haystack, cpat->pattern); | ^~~~~~ -
pattern.c:3103:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3103 | return strstr(haystack, needle); | ^~~~~~ -
pattern.c:3128:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 3128 | return strstr(haystack, needle); | ^~~~~~ -
re.c:19060:25: warning: 'nw' may be used uninitialized [-Wmaybe-uninitialized]
-
../casts.h:177:16: warning: 'd' may be used uninitialized [-Wmaybe-uninitialized] 177 | return ulong_to_pointer(value); | ^~~~~~~~~~~~~~~~~~~~~~~ -
gwc.c:299:13: warning: variable 'line' set but not used [-Wunused-but-set-variable=] 299 | int line, idx; | ^~~~ -
str_subst_re.c:1250:29: warning: 'rlen' may be used uninitialized [-Wmaybe-uninitialized] 1250 | off = rlen + gpos[0].re_start; /* Move past last replacement */ | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
random.c:102:56: warning: parameter 'argc' set but not used [-Wunused-but-set-parameter=] 102 | shell_exec_random_stats(struct gnutella_shell *sh, int argc, const char *argv[]) | ~~~~^~~~ -
thread.c:1215:21: warning: storing the address of local variable 'te' in '*te.last_sp' [-Wdangling-pointer=] 1215 | te->last_sp = &te; | ~~~~~~~~~~~~^~~~~ -
loose.c:138:41: warning: variable 'processed' set but not used [-Wunused-but-set-variable=] 138 | size_t kept = 0, restarted = 0, processed = 0; | ^~~~~~~~~ -
spopen-test.c:313:21: warning: variable 'verb' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] 313 | const char *verb = verbose ? ",verb" : ""; | ^~~~ -
dbt.c:486:13: warning: variable 'flags' set but not used [-Wunused-but-set-variable=] 486 | int flags = 0; | ^~~~~