mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 22:08:10 +02:00
Fix compiler error:
../src/compiler/clc/nir_load_libclc.c:266:13: error: initializing
'char *' with an expression of type 'const char *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
266 | char *U3AS1 = strstr(func->name, "U3AS1");
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
glibc now provides C23-style type-generic string functions. strstr
returns const char * when passed a const char * argument. Update U3AS1
declaration to const since it's only used for offset calculation.
Fixes:
|
||
|---|---|---|
| .. | ||
| clc.c | ||
| clc.h | ||
| clc_helpers.cpp | ||
| clc_helpers.h | ||
| mesa_clc.c | ||
| meson.build | ||
| nir_clc_helpers.h | ||
| nir_load_libclc.c | ||