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.
qemu/monitor
Cédric Le Goater dfe87815ba monitor: Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strchr() and other string functions to be 'const char *' when the
input is a 'const char *'. This breaks the build in :

../monitor/hmp.c:589:7: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  589 |     p = strchr(type, ':');
      |       ^

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: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20251215101937.281722-4-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
1 week ago
..
fds.c include: Rename sysemu/ -> system/ 1 year ago
hmp-cmds-target.c monitor/hmp-cmds-target: add CPU_DUMP_VPU in hmp_info_registers() 6 months ago
hmp-cmds.c monitor: Clean up HMP gdbserver error reporting 3 months ago
hmp-target.c include: Rename sysemu/ -> system/ 1 year ago
hmp.c monitor: Fix const qualifier build errors with recent glibc 1 week ago
meson.build util/qemu-config: Extract QMP commands to qemu-config-qmp.c 2 years ago
monitor-internal.h char: rename CharBackend->CharFrontend 2 months ago
monitor.c qapi: Move include/qapi/qmp/ to include/qobject/ 11 months ago
qemu-config-qmp.c hw/core: Filter machine list available for a particular target binary 2 months ago
qmp-cmds-control.c include: Rename sysemu/ -> system/ 1 year ago
qmp-cmds.c migration/block: Rewrite disk activation 12 months ago
qmp.c monitor: don't wake up qmp_dispatcher_co coroutine upon cleanup 8 months ago
trace-events docs: fix references to docs/devel/tracing.rst 5 years ago
trace.h trace: switch position of headers to what Meson requires 5 years ago