Added (void) cast to ftruncate() in order to prevent build failures on certain distros
1 files changed, 1 insertions(+), 1 deletions(-)

M src/scpy_source.c
M src/scpy_source.c +1 -1
@@ 238,7 238,7 @@ static void buffer(void* data, struct zw
 	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);