mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
drm-shim: Fix unused variable warnings from asserts in release build.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
This commit is contained in:
parent
8d1d0c126f
commit
ccb5e0b02b
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ drm_shim_device_init(void)
|
|||
shim_device.mem_fd = memfd_create("shim mem", MFD_CLOEXEC);
|
||||
assert(shim_device.mem_fd != -1);
|
||||
|
||||
int ret = ftruncate(shim_device.mem_fd, SHIM_MEM_SIZE);
|
||||
ASSERTED int ret = ftruncate(shim_device.mem_fd, SHIM_MEM_SIZE);
|
||||
assert(ret == 0);
|
||||
|
||||
util_vma_heap_init(&shim_device.mem_heap, 4096, SHIM_MEM_SIZE - 4096);
|
||||
|
|
@ -233,7 +233,7 @@ ioctl_fn_t core_ioctls[] = {
|
|||
int
|
||||
drm_shim_ioctl(int fd, unsigned long request, void *arg)
|
||||
{
|
||||
int type = _IOC_TYPE(request);
|
||||
ASSERTED int type = _IOC_TYPE(request);
|
||||
int nr = _IOC_NR(request);
|
||||
|
||||
assert(type == DRM_IOCTL_BASE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue