Skip to content

Commit

Permalink
minigbm: Add const to the backend::name
Browse files Browse the repository at this point in the history
... 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 <[email protected]>
Change-Id: I176eb657f72e92d6b5c7c3b25c78c56f776c20ab
  • Loading branch information
rsglobal committed Sep 12, 2022
1 parent 1c4ff09 commit 0c35bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drv_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c35bd9

Please sign in to comment.