mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
llvmpipe: silence an unused result warning
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32810>
This commit is contained in:
parent
03d24e56a2
commit
8c819a2f95
1 changed files with 1 additions and 1 deletions
|
|
@ -1330,7 +1330,7 @@ llvmpipe_allocate_memory(struct pipe_screen *_screen, uint64_t size)
|
|||
if (mem->offset + mem->size > screen->mem_file_size) {
|
||||
/* expand the anonymous file */
|
||||
screen->mem_file_size = mem->offset + mem->size;
|
||||
ftruncate(screen->fd_mem_alloc, screen->mem_file_size);
|
||||
UNUSED int unused = ftruncate(screen->fd_mem_alloc, screen->mem_file_size);
|
||||
}
|
||||
|
||||
mtx_unlock(&screen->mem_mutex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue