# HG changeset patch # User Scoopta # Date 1734938172 28800 # Sun Dec 22 23:16:12 2024 -0800 # Node ID c5b3be83bfcce586c26a4baf976929a56a0ba76b # Parent 958a52be0f0f095d7f298c2cdf058f426f9ce938 Added (void) cast to ftruncate() in order to prevent build failures on certain distros diff --git a/src/scpy_source.c b/src/scpy_source.c --- a/src/scpy_source.c +++ b/src/scpy_source.c @@ -238,7 +238,7 @@ this->frame->size = stride * height; this->frame->fd = shm_open("/wlrobs", O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); shm_unlink("/wlrobs"); - ftruncate(this->frame->fd, stride * height); + (void) ftruncate(this->frame->fd, stride * height); this->frame->pool = wl_shm_create_pool(this->shm, this->frame->fd, stride * height); this->frame->buffer = wl_shm_pool_create_buffer(this->frame->pool, 0, width, height, stride, format); zwlr_screencopy_frame_v1_copy(frame, this->frame->buffer);