Snippets for anthy 9100h from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/ynbmql6sr9gphknszkjaf9y79kxlbig6-anthy-9100h.drv.
-
xstr.c:484:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 484 | if (!anthy_get_xstr_type(x) & (XCT_NUM | XCT_WIDENUM)) { | ^~~~~~~~~~~~~~~~~~~~~~~ -
texttrie.c:609:5: warning: ignoring return value of 'truncate' declared with attribute 'warn_unused_result' [-Wunused-result] 609 | truncate(tt->fn, size); | ^~~~~~~~~~~~~~~~~~~~~~ -
textdict.c:34:41: warning: unused parameter 'create' [-Wunused-parameter] 34 | anthy_textdict_open(const char *fn, int create) | ~~~~^~~~~~ -
textdict.c:181:3: warning: ignoring return value of 'truncate' declared with attribute 'warn_unused_result' [-Wunused-result] 181 | truncate(td->fn, size - len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
record.c:280:1: warning: 'debug_trie_dump' defined but not used [-Wunused-function] 280 | debug_trie_dump(FILE* fp, struct trie_node* n, int encoding) | ^~~~~~~~~~~~~~~ -
word_lookup.c:643:9: warning: variable 'p' set but not used [-Wunused-but-set-variable] 643 | char *p; | ^ -
ext_ent.c:407:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 407 | if (!gen_kanji_num(num, dest)) { | ^ -
ext_ent.c:413:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 413 | if (!gen_separated_num(num, dest, 0)) { | ^ -
ext_ent.c:419:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 419 | if (!gen_separated_num(num, dest, 1)) { | ^ -
matrix.c:269:1: warning: 'sparse_array_get_int' defined but not used [-Wunused-function] 269 | sparse_array_get_int(struct sparse_array *s, int index) | ^~~~~~~~~~~~~~~~~~~~ -
metaword.c:471:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 471 | if (scos2 == SCOS_N1) return; /* ����˰���夬�Ĥ��ƤϤ����ʤ� */ | ^ -
metaword.c:473:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 473 | if (scos2 == SCOS_N10) return; /* ����˽����彽���Ĥ��ƤϤ����ʤ� */ | ^ -
metaword.c:475:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 475 | if (scos2 == SCOS_N100) return; /* �����ɴ����ɴ���Ĥ��ƤϤ����ʤ� */ | ^ -
compose.c:324:27: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 324 | ce->elm = calloc(sizeof(struct cand_elm),ce->nr_words); | ^~~~~~ -
compose.c:360:27: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 360 | ce->elm = calloc(sizeof(struct cand_elm),ce->nr_words); | ^~~~~~ -
context.c:661:7: warning: the comparison will always evaluate as 'true' for the address of 'str' will never be NULL [-Waddress] 661 | if (&ce->str) { | ^ -
input.c:1511:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] 1511 | int err; | ^~~ -
mkdepgraph.c:426:10: warning: unused parameter 'argc' [-Wunused-parameter] 426 | main(int argc, char* argv[]) | ~~~~^~~~ -
mkdepgraph.c:426:22: warning: unused parameter 'argv' [-Wunused-parameter] 426 | main(int argc, char* argv[]) | ~~~~~~^~~~~~ -
mkdic.c:127:25: warning: '%s' directive argument is null [-Wformat-overflow=] 127 | fprintf (stderr, "%s: cannot open temporary file: %s\n", | ^~ -
mkdic.c:147:25: warning: '%s' directive argument is null [-Wformat-overflow=] 147 | fprintf (stderr, "%s: write error: %s\n", progname, strerror (errno)); | ^~ -
mkdic.c:141:25: warning: '%s' directive argument is null [-Wformat-overflow=] 141 | fprintf (stderr, "%s: write error\n", progname); | ^~ -
mkdic.c:780:25: warning: '%s' directive argument is null [-Wformat-overflow=] 780 | fprintf (stderr, "%s: %s: write error: %s\n", | ^~ -
mkdic.c:843:23: warning: '%s' directive argument is null [-Wformat-overflow=] 843 | fprintf (stderr, "%s: %s: write error: %s\n", | ^~ -
mkdic.c:826:25: warning: '%s' directive argument is null [-Wformat-overflow=] 826 | fprintf (stderr, "%s: %s: cannot create: %s\n", | ^~ -
main.c:221:7: warning: variable 'is_split' set but not used [-Wunused-but-set-variable] 221 | int is_split; | ^~~~~~~~ -
main.c:316:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 316 | fgets(buf, 256, stdin); | ^~~~~~~~~~~~~~~~~~~~~~ -
check.c:83:9: warning: variable 'res' set but not used [-Wunused-but-set-variable] 83 | int res, nth, rsz; | ^~~