Snippets for abook 0.6.2 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/04wskfxj81mixaz4n4d2r7r09cz589dk-abook-0.6.2.drv.
-
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); | ^~~~~~~~~~~ -
abook.c:523:17: warning: 'export_file' accessing 8 bytes in a region of size 6 [-Wstringop-overflow=] 523 | export_file("muttq", "-"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
abook.c:332:32: warning: 'select_output_item_filter' accessing 8 bytes in a region of size 6 [-Wstringop-overflow=] 332 | selected_item_filter = select_output_item_filter("muttq"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
abook.c:442:40: warning: 'select_output_item_filter' accessing 8 bytes in a region of size 6 [-Wstringop-overflow=] 442 | selected_item_filter = select_output_item_filter("muttq"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
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: '__builtin_strncpy' specified bound 12 equals destination size [-Wstringop-truncation] 504 | p = s = strncpy(buf, str, sizeof(buf)); | ^ -
filter.c:1961:33: warning: unused variable 'custom_fieldsl' [-Wunused-variable] 1961 | abook_field_list *cur, *custom_fieldsl; | ^~~~~~~~~~~~~~ -
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: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] 1226 | strncpy(tmp, start, len); | ^ -
/nix/store/29isvm6vfq10c528i31igdiy3fnvjcm3-glibc-2.42-67-dev/include/bits/string_fortified.h:140:10: warning: '__builtin_strcat' forming offset 7 is out of the bounds [0, 7] of object 'groupstr' with type 'char[7]' [-Warray-bounds=] 140 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/nix/store/29isvm6vfq10c528i31igdiy3fnvjcm3-glibc-2.42-67-dev/include/bits/string_fortified.h:81:10: warning: '__builtin_strcpy' forming offset 7 is out of the bounds [0, 7] of object 'groupstr' with type 'char[7]' [-Warray-bounds=] 81 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
filter.c:2708:25: warning: '__builtin_strncat' output truncated before terminating nul copying 1 byte from a string of the same length [-Wstringop-truncation] 2708 | strncat(fmt_string, tmp, 1); | ^ -
getname.c:281:27: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 281 | name[--i] = '\0'; | ~~~~~~~~~~^~~~~~ -
gettext.h:9:27: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 9 | # define gettext(Msgid) ((const char *) (Msgid)) | ~^~~~~~~~~~~~~~~~~~~~~~~ -
ui.c:308:61: warning: array subscript has type 'char' [-Wchar-subscripts] 308 | helpline[i-1] = remap_table[helpline[i-1]]; | ~~~~~~~~^~~~~ -
ui.c:818:9: warning: 'fexport' accessing 8 bytes in a region of size 5 [-Wstringop-overflow=] 818 | fexport("text", handle, mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ui.c:736:25: warning: '__builtin_strncpy' specified bound 81 equals destination size [-Wstringop-truncation] 736 | strncpy(findstr, s, MAX_FIELD_LEN); | ^