Files
xemu/hw
Cédric Le Goater 2f5c96d534 i386: Fix const qualifier build errors with recent glibc
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 :

  ../hw/i386/x86-common.c:827:11: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  827 |     vmode = strstr(kernel_cmdline, "vga=");
      |           ^

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

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20251215101937.281722-2-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2025-12-16 14:28:30 +01:00
..
2025-12-09 20:42:59 +01:00
…
2025-12-05 15:37:18 +00:00
…
…
2025-11-14 13:18:04 +00:00
…
2025-11-14 13:18:04 +00:00
2025-11-25 09:21:41 +01:00
2025-11-09 16:54:44 +05:30
2025-10-30 14:48:26 +01:00
…
…
2025-10-30 14:48:26 +01:00
…
2025-09-02 17:57:05 +02:00