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 | |
|---|---|---|
| .. | ||
| installer | 4 months ago | |
| vss-win32 | 4 months ago | |
| channel-posix.c | 3 months ago | |
| channel-win32.c | 5 years ago | |
| channel.h | 9 years ago | |
| commands-bsd.c | 1 year ago | |
| commands-common-ssh.c | 2 years ago | |
| commands-common-ssh.h | 2 years ago | |
| commands-common.h | 1 year ago | |
| commands-linux.c | 2 weeks ago | |
| commands-posix-ssh.c | 2 years ago | |
| commands-posix.c | 1 month ago | |
| commands-win32.c | 2 months ago | |
| commands-windows-ssh.c | 1 year ago | |
| commands-windows-ssh.h | 2 years ago | |
| commands.c | 4 months ago | |
| cutils.c | 3 years ago | |
| cutils.h | 3 years ago | |
| guest-agent-command-state.c | 8 years ago | |
| guest-agent-core.h | 6 months ago | |
| main.c | 4 months ago | |
| meson.build | 6 months ago | |
| messages-win32.mc | 3 years ago | |
| qapi-schema.json | 2 months ago | |
| service-win32.c | 10 years ago | |
| service-win32.h | 7 years ago | |
| vss-win32.c | 4 months ago | |
| vss-win32.h | 7 years ago | |