mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-07 04:34:49 -05:00
cursor: fix discards 'const' qualifier
Fixes:
../cursor/xcursor.c: In function 'xcursor_next_path':
../cursor/xcursor.c:610:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
610 | char *colon = strchr(path, ':');
| ^~~~~~
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
parent
df10ef181e
commit
fe4d7620dd
1 changed files with 1 additions and 1 deletions
|
|
@ -607,7 +607,7 @@ xcursor_build_fullname(const char *dir, const char *subdir, const char *file)
|
|||
static const char *
|
||||
xcursor_next_path(const char *path)
|
||||
{
|
||||
char *colon = strchr(path, ':');
|
||||
const char *colon = strchr(path, ':');
|
||||
|
||||
if (!colon)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue