From 7fecf772f1fd7c1329693c5ffd4b670e106fcdb2 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 23 Apr 2020 12:36:53 -0700 Subject: [PATCH] gbm: silence a warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/virgl_gbm.c:186:13: warning: ‘virgl_gbm_transfer_internal’ defined but not used [-Wunused-function] Signed-off-by: Chia-I Wu Reviewed-by: Elie Tournier Reviewed-by: Gert Wollny --- src/virgl_gbm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/virgl_gbm.c b/src/virgl_gbm.c index 788efda..cf787fe 100644 --- a/src/virgl_gbm.c +++ b/src/virgl_gbm.c @@ -183,6 +183,7 @@ static const struct planar_layout *layout_from_format(uint32_t format) } } +#ifdef ENABLE_MINIGBM_ALLOCATION static void virgl_gbm_transfer_internal(uint32_t planar_bytes_per_pixel, uint32_t subsampled_width, uint32_t subsampled_height, @@ -246,6 +247,7 @@ static void virgl_gbm_transfer_internal(uint32_t planar_bytes_per_pixel, current_height++; } } +#endif /* ENABLE_MINIGBM_ALLOCATION */ struct virgl_gbm *virgl_gbm_init(int fd) {