镜像自地址
https://git.tukaani.org/xz.git
已同步 2025-09-18 16:38:24 +00:00
xz: Use ssize_t for the to-be-ignored return value from write(fd, ptr, 1).
It makes no difference here as the return value fits into an int too and it then gets ignored but this looks better.
这个提交包含在:
父节点
b1a6d180a3
当前提交
52dc033d0b
@ -140,7 +140,7 @@ io_write_to_user_abort_pipe(void)
|
||||
// handler. So ignore the errors and try to avoid warnings with
|
||||
// GCC and glibc when _FORTIFY_SOURCE=2 is used.
|
||||
uint8_t b = '\0';
|
||||
const int ret = write(user_abort_pipe[1], &b, 1);
|
||||
const ssize_t ret = write(user_abort_pipe[1], &b, 1);
|
||||
(void)ret;
|
||||
return;
|
||||
}
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户