archival/libarchive/data_extract_all.c: In function ‘data_extract_all’:
archival/libarchive/data_extract_all.c:235:25: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  235 |                         chown(dst_name, uid, gid);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
console-tools/dumpkmap.c: In function ‘dumpkmap_main’:
console-tools/dumpkmap.c:67:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |         write(STDOUT_FILENO, flags, 7 + MAX_NR_KEYMAPS);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console-tools/dumpkmap.c:79:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   79 |                                         write(STDOUT_FILENO, &ke.kb_value, 2);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console-tools/loadfont.c: In function ‘setfont_main’:
console-tools/loadfont.c:445:25: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  445 |                         chdir(CONFIG_DEFAULT_SETFONT_DIR "/consolefonts");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console-tools/loadfont.c:463:33: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  463 |                                 chdir(CONFIG_DEFAULT_SETFONT_DIR "/consoletrans");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console-tools/resize.c: In function ‘resize_main’:
console-tools/resize.c:100:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  100 |         scanf(ESC"[%hu;%huR", &w.ws_row, &w.ws_col);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
coreutils/dos2unix.c: In function ‘convert’:
coreutils/dos2unix.c:83:17: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   83 |                 fchown(fd, st.st_uid, st.st_gid);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
editors/ed.c: In function ‘printLines’:
editors/ed.c:545:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  545 |                         write(STDOUT_FILENO, lp->data, lp->len);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
editors/vi.c: In function ‘file_write’:
editors/vi.c:2373:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2373 |         ftruncate(fd, charcnt);
      |         ^~~~~~~~~~~~~~~~~~~~~~
editors/sed.c: In function ‘sed_main’:
editors/sed.c:1648:25: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1648 |                         fchown(nonstdoutfd, statbuf.st_uid, statbuf.st_gid);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init/bootchartd.c: In function ‘finalize’:
init/bootchartd.c:318:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  318 |         system(xasprintf("tar -zcf /var/log/bootlog.tgz header %s *.log", process_accounting ? "kernel_pacct" : ""));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libbb/appletlib.c: In function ‘check_suid’:
libbb/appletlib.c:637:17: warning: ignoring return value of ‘setgid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  637 |                 setgid(rgid);
      |                 ^~~~~~~~~~~~
libbb/appletlib.c:638:17: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  638 |                 setuid(ruid);
      |                 ^~~~~~~~~~~~
loginutils/getty.c: In function ‘open_tty’:
loginutils/getty.c:224:17: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  224 |                 fchown(0, 0, 0);        /* 0:0 */
      |                 ^~~~~~~~~~~~~~~
coreutils/shred.c: In function ‘shred_main’:
coreutils/shred.c:104:25: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  104 |                         ftruncate(fd, 0);
      |                         ^~~~~~~~~~~~~~~~
loginutils/login.c: In function ‘login_main’:
loginutils/login.c:558:9: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  558 |         fchown(0, pw->pw_uid, pw->pw_gid);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loginutils/sulogin.c: In function ‘sulogin_main’:
loginutils/sulogin.c:55:17: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   55 |                 dup(xopen(argv[0], O_RDWR));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
loginutils/sulogin.c:57:17: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   57 |                 dup(0);
      |                 ^~~~~~
mailutils/makemime.c: In function ‘makemime_main’:
mailutils/makemime.c:204:17: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  204 |                 freopen(opt_output, "w", stdout);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
miscutils/crontab.c: In function ‘crontab_main’:
miscutils/crontab.c:161:17: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  161 |                 fchown(src_fd, pas->pw_uid, pas->pw_gid);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modutils/modutils.c: In function ‘filename2modname’:
modutils/modutils.c:115:1: warning: function may return address of local variable [-Wreturn-local-addr]
  115 | }
      | ^
modutils/modutils.c:94:14: note: declared here
   94 |         char local_modname[MODULE_NAME_LEN];
      |              ^~~~~~~~~~~~~
miscutils/i2c_tools.c: In function ‘list_i2c_busses_and_exit’:
miscutils/i2c_tools.c:1152:46: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=]
 1152 |                 snprintf(path, NAME_MAX, "%s/%s/name",
      |                                              ^~
In file included from /usr/include/stdio.h:970,
                 from include/libbb.h:31,
                 from miscutils/i2c_tools.c:66:
In function ‘snprintf’,
    inlined from ‘list_i2c_busses_and_exit’ at miscutils/i2c_tools.c:1152:3:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 25 and 280 bytes into a destination of size 255
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
miscutils/i2c_tools.c: In function ‘list_i2c_busses_and_exit’:
miscutils/i2c_tools.c:1157:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=]
 1157 |                                  "%s/%s/device/name",
      |                                      ^~
In function ‘snprintf’,
    inlined from ‘list_i2c_busses_and_exit’ at miscutils/i2c_tools.c:1156:4:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 32 and 287 bytes into a destination of size 255
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
miscutils/i2c_tools.c: In function ‘list_i2c_busses_and_exit’:
miscutils/i2c_tools.c:1165:38: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=]
 1165 |                                  "%s/%s/device/name",
      |                                      ^~
In function ‘snprintf’,
    inlined from ‘list_i2c_busses_and_exit’ at miscutils/i2c_tools.c:1164:4:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 32 and 287 bytes into a destination of size 255
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
miscutils/i2c_tools.c: In function ‘list_i2c_busses_and_exit’:
miscutils/i2c_tools.c:1177:54: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 236 [-Wformat-truncation=]
 1177 |                                                  "%s/%s/device/%s/name",
      |                                                      ^~
In function ‘snprintf’,
    inlined from ‘list_i2c_busses_and_exit’ at miscutils/i2c_tools.c:1176:6:
/usr/include/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 33 and 543 bytes into a destination of size 255
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
miscutils/man.c: In function ‘run_pipe’:
miscutils/man.c:160:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  160 |         system(cmd);
      |         ^~~~~~~~~~~
In file included from networking/arp.c:43:
networking/arp.c: In function ‘arp_show’:
include/libbb.h:236:28: warning: ignoring return value of ‘fgets_unlocked’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  236 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
networking/arp.c:430:9: note: in expansion of macro ‘fgets’
  430 |         fgets(line, sizeof(line), fp);
      |         ^~~~~
miscutils/microcom.c: In function ‘microcom_main’:
miscutils/microcom.c:160:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  160 |                         write(sfd, &c, 1);
      |                         ^~~~~~~~~~~~~~~~~
networking/ftpd.c: In function ‘popen_ls’:
networking/ftpd.c:718:17: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  718 |                 dup(STDOUT_FILENO); /* copy will become STDIN_FILENO */
      |                 ^~~~~~~~~~~~~~~~~~
In file included from networking/interface.c:33:
networking/interface.c: In function ‘if_readlist_proc’:
include/libbb.h:236:28: warning: ignoring return value of ‘fgets_unlocked’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  236 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
networking/interface.c:554:9: note: in expansion of macro ‘fgets’
  554 |         fgets(buf, sizeof buf, fh);     /* eat line */
      |         ^~~~~
include/libbb.h:236:28: warning: ignoring return value of ‘fgets_unlocked’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  236 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
networking/interface.c:555:9: note: in expansion of macro ‘fgets’
  555 |         fgets(buf, sizeof buf, fh);
      |         ^~~~~
In file included from networking/libiproute/ip_common.h:5,
                 from networking/libiproute/iptunnel.c:64:
networking/libiproute/iptunnel.c: In function ‘do_tunnels_list’:
include/libbb.h:236:28: warning: ignoring return value of ‘fgets_unlocked’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  236 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
networking/libiproute/iptunnel.c:477:9: note: in expansion of macro ‘fgets’
  477 |         fgets(buf, sizeof(buf), fp);
      |         ^~~~~
include/libbb.h:236:28: warning: ignoring return value of ‘fgets_unlocked’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  236 | # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
networking/libiproute/iptunnel.c:478:9: note: in expansion of macro ‘fgets’
  478 |         fgets(buf, sizeof(buf), fp);
      |         ^~~~~
miscutils/watchdog.c: In function ‘watchdog_main’:
miscutils/watchdog.c:161:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  161 |                 write(3, "", 1); /* write zero byte */
      |                 ^~~~~~~~~~~~~~~
miscutils/watchdog.c: In function ‘shutdown_watchdog’:
miscutils/watchdog.c:71:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   71 |         write(3, &V, 1);  /* Magic, see watchdog-api.txt in kernel */
      |         ^~~~~~~~~~~~~~~
networking/nbd-client.c: In function ‘nbdclient_main’:
networking/nbd-client.c:281:25: warning: ignoring return value of ‘daemon’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  281 |                         daemon(0, 0);
      |                         ^~~~~~~~~~~~
networking/nslookup.c: In function ‘send_queries’:
networking/nslookup.c:622:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  622 |                                 write(pfd.fd, G.query[qn].query, G.query[qn].qlen);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printutils/lpr.c: In function ‘lpqr_main’:
printutils/lpr.c:272:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  272 |                 write(fd, "", 1); // send ACK
      |                 ^~~~~~~~~~~~~~~~
runit/runsv.c: In function ‘s_chld_term’:
runit/runsv.c:161:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  161 |         write(selfpipe.wr, "", 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
runit/runsv.c: In function ‘update_status’:
runit/runsv.c:203:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  203 |                         write(fd, spid, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~
runit/runsv.c:244:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  244 |                 write(fd, stat_buf, p - stat_buf);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
networking/slattach.c: In function ‘slattach_main’:
networking/slattach.c:225:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  225 |                 system(extcmd);
      |                 ^~~~~~~~~~~~~~
networking/tc.c:179:13: warning: ‘print_rate’ defined but not used [-Wunused-function]
  179 | static void print_rate(char *buf, int len, uint32_t rate)
      |             ^~~~~~~~~~
procps/powertop.c: In function ‘read_cstate_counts’:
procps/powertop.c:181:34: warning: ‘%s’ directive writing up to 255 bytes into a region of size 171 [-Wformat-overflow=]
  181 |                 sprintf(buf, "%s/%s/power", "/proc/acpi/processor", d->d_name);
      |                                  ^~
In file included from /usr/include/stdio.h:970,
                 from include/libbb.h:31,
                 from procps/powertop.c:32:
In function ‘sprintf’,
    inlined from ‘read_cstate_counts’ at procps/powertop.c:181:3:
/usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 28 and 283 bytes into a destination of size 192
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
networking/tftp.c: In function ‘tftpd_main’:
networking/tftp.c:886:15: warning: ‘local_file’ is used uninitialized [-Wuninitialized]
  886 |         char *local_file = local_file;
      |               ^~~~~~~~~~
networking/tftp.c:886:15: note: ‘local_file’ was declared here
  886 |         char *local_file = local_file;
      |               ^~~~~~~~~~
procps/watch.c: In function ‘watch_main’:
procps/watch.c:115:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  115 |                 system(cmd);
      |                 ^~~~~~~~~~~
networking/wget.c: In function ‘retrieve_file_data’:
networking/wget.c:1085:33: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1085 |                                 ftruncate(G.output_fd, pos);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
shell/ash.c: In function ‘preadfd’:
shell/ash.c:10839:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10839 |                         write(STDOUT_FILENO, "^C\n", 3);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shell/ash.c:10843:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10843 |                         write(STDOUT_FILENO, "^C\n", 3);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shell/ash.c:10865:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10865 |                                         write(STDOUT_FILENO, "\n", 1);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libbb/update_passwd.c: In function ‘update_passwd’:
libbb/update_passwd.c:153:17: warning: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  153 |                 fchown(new_fd, sb.st_uid, sb.st_gid);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util-linux/mdev.c: In function ‘make_device’:
util-linux/mdev.c:787:33: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  787 |                                 chown(node_name, rule->ugid.uid, rule->ugid.gid);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util-linux/mdev.c:790:33: warning: ignoring return value of ‘symlink’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  790 |                                 symlink(node_name, "root");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
util-linux/mdev.c:797:41: warning: ignoring return value of ‘symlink’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  797 |                                         symlink(node_name, device_name);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util-linux/mkfs_minix.c: In function ‘get_list_blocks’:
util-linux/mkfs_minix.c:532:17: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  532 |                 fscanf(listfile, "%lu\n", &blockno);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util-linux/unshare.c: In function ‘unshare_main’:
util-linux/unshare.c:295:25: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  295 |                         read(fdp.rd, ns_ctx_list, 1); /* ...using bogus buffer */
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~