Snippets for abook 0.6.2 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/abook/0.6.2/2.fc45/data/logs/aarch64/build.log.
-
gettext.h:9:27: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 9 | # define gettext(Msgid) ((const char *) (Msgid)) | ~^~~~~~~~~~~~~~~~~~~~~~~ -
abook.c:623:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 623 | system(cmd); | ^~~~~~~~~~~ -
abook.c:648:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 648 | system(cmd); | ^~~~~~~~~~~ -
edit.c:211:16: warning: variable ‘x’ set but not used [-Wunused-but-set-variable=] 211 | int y, x; | ^ -
edit.c:684:47: warning: variable ‘window_x’ set but not used [-Wunused-but-set-variable=] 684 | int window_y, window_x; | ^~~~~~~~ -
edit.c:504:17: warning: ‘strncpy’ specified bound 12 equals destination size [-Wstringop-truncation] 504 | p = s = strncpy(buf, str, sizeof(buf)); | ^ -
ui.c:308:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 308 | helpline[i-1] = remap_table[helpline[i-1]]; | ~~~~~~~~^~~~~ -
ui.c:411:23: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 411 | if((s = strchr(choices, ch))) | ^ -
ui.c:736:25: warning: ‘strncpy’ specified bound 81 equals destination size [-Wstringop-truncation] 736 | strncpy(findstr, s, MAX_FIELD_LEN); | ^ -
filter.c:1251:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1251 | fgets(line, LINESIZE, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
filter.c:1258:25: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1258 | fgets(line, LINESIZE, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
filter.c:690:15: warning: array subscript 18 is outside array bounds of ‘char *[18]’ [-Warray-bounds=] 690 | if(!li[LDIF_OBJECTCLASS]) | ~~^~~~~~~~~~~~~~~~~~ -
filter.c:1226:25: warning: ‘__strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-truncation] 1226 | strncpy(tmp, start, len); | ^ -
/usr/include/bits/string_fortified.h:152:10: warning: ‘strcat’ forming offset 7 is out of the bounds [0, 7] of object ‘groupstr’ with type ‘char[7]’ [-Warray-bounds=] 152 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/bits/string_fortified.h:93:10: warning: ‘strcpy’ forming offset 7 is out of the bounds [0, 7] of object ‘groupstr’ with type ‘char[7]’ [-Warray-bounds=] 93 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
filter.c:2707:25: warning: ‘strncat’ output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 2707 | strncat(fmt_string, tmp, 1); | ^