Snippets for screen 5.0.3 from Fedora s390x
Sourced from https://kojipkgs.fedoraproject.org/packages/screen/5.0.3/1.fc46/data/logs/s390x/build.log.
-
screen.c:856:39: warning: ignoring return value of ‘lchown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 856 | (void)lchown(SocketPath, real_uid, real_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
screen.c:829:33: warning: ‘strncpy’ specified bound 4098 equals destination size [-Wstringop-truncation] 829 | strncpy(SocketPath, SocketDir, ARRAY_SIZE(SocketPath)); | ^ -
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: ‘__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) | ^~ -
process.c:4083:14: warning: variable ‘argl’ set but not used [-Wunused-but-set-variable=] 4083 | int *argl = act->argl; | ^~~~ -
socket.c:905:25: warning: ‘strncpy’ specified bound 4098 equals destination size [-Wstringop-truncation] 905 | strncpy(SocketPath, oldSocketPath, ARRAY_SIZE(SocketPath)); | ^ -
window.c:1579:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1579 | 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:1377:15: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1377 | (void)chown(pwin->p_tty, 0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~