vrend: Fix newly introduced warnings when ENABLE_GBM_ALLOCATION is not set

In this case the paramters 'format' is not used in 'vrend_format_can_scanout'
and 'gr' are not used in 'vrend_allocate_using_gbm'.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 5 years ago
parent e480cb6335
commit abcd75475b
  1. 2
      src/vrend_renderer.c

@ -696,6 +696,7 @@ static inline bool vrend_format_can_scanout(enum virgl_formats format)
return gbm_device_is_format_supported(gbm->device, gbm_format, GBM_BO_USE_SCANOUT);
#else
(void)format;
return true;
#endif
}
@ -6187,6 +6188,7 @@ static void *vrend_allocate_using_gbm(struct vrend_resource *gr)
gr->gbm_bo = bo;
return image;
#else
(void)gr;
return NULL;
#endif
}

Loading…
Cancel
Save