Snippets for anthy 9100h from Fedora ppc64le
Sourced from https://kojipkgs.fedoraproject.org/packages/anthy/9100h/62.fc45/data/logs/ppc64le/build.log.
-
xstr.c:488:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] 488 | if (!anthy_get_xstr_type(x) & (XCT_NUM | XCT_WIDENUM)) { | ^~~~~~~~~~~~~~~~~~~~~~~ -
word_lookup.c:643:9: warning: variable 'p' set but not used [-Wunused-but-set-variable=] 643 | char *p; | ^ -
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) | ^~~~~~~~~~~~~~~ -
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) | ^~~~~~~~~~~~~~~~~~~~ -
feature_set.c:213:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 213 | res = bsearch(n, &array[16], nr_lines, | ^ -
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); | ^~~~~~ -
metaword.c:625:7: warning: variable 'mw_len' set but not used [-Wunused-but-set-variable=] 625 | int mw_len = 0; | ^~~~~~ -
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; /* �����ɴ����ɴ���Ĥ��ƤϤ����ʤ� */ | ^ -
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) { | ^ -
egg.c:129:20: warning: argument 2 range [18446744071562067968, 18446744073709551614] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 129 | c->selection = realloc (c->selection, c->sellen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
input.c:1511:7: warning: variable 'err' set but not used [-Wunused-but-set-variable=] 1511 | int err; | ^~~ -
egg.c:129:20: warning: argument 2 range [18446744071562067968, 18446744073709551614] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] 129 | c->selection = realloc (c->selection, c->sellen); | ^ -
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:509:7: warning: variable ‘search’ set but not used [-Wunused-but-set-variable=] 509 | int search = 0; | ^~~~~~ -
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", | ^~ -
check.c:83:9: warning: variable ‘res’ set but not used [-Wunused-but-set-variable=] 83 | int res, nth, rsz; | ^~~ -
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); | ^~~~~~~~~~~~~~~~~~~~~~