mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'.
This breaks the build in various files with errors such as :
error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
208 | char *pidstr = strstr(filename, "%");
| ^~~~~~
Fix this by changing the type of the variables that store the result
of these functions to 'const char *'.
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209174328.698774-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
2 weeks ago | |
|---|---|---|
| .. | ||
| tpm | 2 weeks ago | |
| Kconfig | 1 year ago | |
| confidential-guest-support.c | 6 months ago | |
| cryptodev-builtin.c | 8 months ago | |
| cryptodev-hmp-cmds.c | 11 months ago | |
| cryptodev-lkcf.c | 2 months ago | |
| cryptodev-vhost-user.c | 2 months ago | |
| cryptodev-vhost.c | 10 months ago | |
| cryptodev.c | 8 months ago | |
| dbus-vmstate.c | 8 months ago | |
| dbus-vmstate1.xml | 4 years ago | |
| host_iommu_device.c | 8 months ago | |
| hostmem-epc.c | 8 months ago | |
| hostmem-file.c | 8 months ago | |
| hostmem-memfd.c | 8 months ago | |
| hostmem-ram.c | 8 months ago | |
| hostmem-shm.c | 2 months ago | |
| hostmem.c | 8 months ago | |
| igvm-cfg.c | 2 months ago | |
| igvm.c | 2 months ago | |
| iommufd.c | 3 months ago | |
| meson.build | 6 months ago | |
| rng-builtin.c | 8 months ago | |
| rng-egd.c | 2 months ago | |
| rng-random.c | 8 months ago | |
| rng.c | 8 months ago | |
| spdm-socket.c | 2 months ago | |
| trace-events | 6 months ago | |
| trace.h | 5 years ago | |
| vhost-user.c | 8 months ago | |