From 0c35bd9c6eed8c1b1116aa031c66082a7878980e Mon Sep 17 00:00:00 2001 From: Roman Stratiienko Date: Wed, 23 Jun 2021 17:12:00 +0300 Subject: [PATCH] minigbm: Add const to the backend::name ... to avoid compile-time error on C++: error: ISO C++11 does not allow conversion from string literal to 'char *' [-Werror,-Wwritable-strings] Signed-off-by: Roman Stratiienko Change-Id: I176eb657f72e92d6b5c7c3b25c78c56f776c20ab --- drv_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drv_priv.h b/drv_priv.h index 7b31d32..a8fc75c 100644 --- a/drv_priv.h +++ b/drv_priv.h @@ -73,7 +73,7 @@ struct driver { }; struct backend { - char *name; + const char *name; int (*init)(struct driver *drv); void (*close)(struct driver *drv); int (*bo_create)(struct bo *bo, uint32_t width, uint32_t height, uint32_t format,