Snippets for screen 5.0.2 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/ai90zrr60bfi2550ynwyipgbd2lwxvn3-screen-5.0.2.drv.
-
screen.c:1714:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1714 | write(W_UWP(fore) ? fore->w_pwin->p_ptyfd : fore->w_ptyfd, &ibuf, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:1223:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1223 | write(disp->d_userfd, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:1558:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1558 | write(queryflag, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:1593:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1593 | write(D_userfd, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:1594:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1594 | write(D_userfd, "\n", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:1610:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1610 | write(queryflag, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
display.c:2335:25: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2335 | read(D_userfd, &buf, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ -
display.c:3027:25: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 3027 | dup(slave); | ^~~~~~~~~~ -
fileio.c:352:25: warning: '__builtin___strncpy_chk' output may be truncated copying between 0 and 4087 bytes from a string of length 4097 [-Wstringop-truncation] 352 | strncpy(fnbuf, SocketPath, i); | ^ -
process.c:1642:16: warning: comparison is always true due to limited range of data type [-Wtype-limits] 1642 | if (ch != -1) | ^~ -
socket.c:900:25: warning: '__builtin_strncpy' specified bound 4098 equals destination size [-Wstringop-truncation] 900 | strncpy(SocketPath, oldSocketPath, ARRAY_SIZE(SocketPath)); | ^ -
window.c:1574:41: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1574 | write(win->w_ptyfd, p->w_inbuf, p->w_inlen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
window.c:808:23: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 808 | (void)chown(window->w_tty, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
window.c:1372:15: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 1372 | (void)chown(pwin->p_tty, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~