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); return gbm_device_is_format_supported(gbm->device, gbm_format, GBM_BO_USE_SCANOUT);
#else #else
(void)format;
return true; return true;
#endif #endif
} }
@ -6187,6 +6188,7 @@ static void *vrend_allocate_using_gbm(struct vrend_resource *gr)
gr->gbm_bo = bo; gr->gbm_bo = bo;
return image; return image;
#else #else
(void)gr;
return NULL; return NULL;
#endif #endif
} }

Loading…
Cancel
Save