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/ui
Cédric Le Goater 326e620fc0 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 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
..
icons ui/icons/qemu.svg: Add metadata information (author, license) to the logo 3 months ago
shader meson: do not build shaders by default 2 years ago
clipboard.c ui/clipboard: delay clipboard update when not running 7 months ago
cocoa.m ui & main loop: Redesign of system-specific main thread event handling 12 months ago
console-gl.c ui/spice: Create a new texture with linear layout when gl=on is specified 5 months ago
console-priv.h ui/curses: Do not use console_select() 2 years ago
console-vc-stubs.c ui/curses: Do not use console_select() 2 years ago
console-vc.c qom: Have class_init() take a const data argument 8 months ago
console.c qom: Have class_init() take a const data argument 8 months ago
curses.c ui/curses: Fix infinite loop on windows 5 months ago
curses_keys.h For curses display, recognize a few more control keys 2 years ago
cursor.c ui/cursor: remove cursor_get_mono_image 1 year ago
cursor_hidden.xpm ui: move files to ui/ and include/ui/ 13 years ago
cursor_left_ptr.xpm ui: move files to ui/ and include/ui/ 13 years ago
dbus-chardev.c qom: Have class_init() take a const data argument 8 months ago
dbus-clipboard.c include: Rename sysemu/ -> system/ 1 year ago
dbus-console.c ui/dbus: on win32, allow ANONYMOUS with p2p 11 months ago
dbus-display1.xml ui/dbus: change dbus ScanoutDMABUF interface 8 months ago
dbus-error.c ui: add a D-Bus display backend 4 years ago
dbus-listener.c ui/dbus: Consistent handling of texture mutex failure 3 months ago
dbus-module.c ui/dbus: add p2p=on/off option 4 years ago
dbus.c audio: move audio.h under include/qemu/ 2 months ago
dbus.h ui/dbus: win32 support 3 years ago
dmabuf.c ui/dmabuf: extend QemuDmaBuf to support multi-plane 8 months ago
egl-context.c qapi/ui: Drop temporary 'prefix' 1 year ago
egl-headless.c qapi/ui: Drop temporary 'prefix' 1 year ago
egl-helpers.c ui/egl-helpers: Error check the fds in egl_dmabuf_export_texture() 5 months ago
gtk-clipboard.c ui/gtk: warn if setting the clipboard failed 7 months ago
gtk-egl.c gtk: Skip drawing if console surface is NULL 3 months ago
gtk-gl-area.c ui/gtk-gl-area: Remove extra draw call in refresh 2 months ago
gtk.c ui/gtk: Fix callback function signature 3 months ago
input-barrier.c vfio scsi ui: Error-check qio_channel_socket_connect_sync() the same way 4 months ago
input-barrier.h ui: add an embedded Barrier client 6 years ago
input-keymap.c meson: rename included C source files to .c.inc 5 years ago
input-legacy.c ui/input-legacy.c: remove unused legacy qemu_add_kbd_event_handler() function 1 year ago
input-linux.c treewide: use qemu_set_blocking instead of g_unix_set_fd_nonblocking 3 months ago
input.c include: Rename sysemu/ -> system/ 1 year ago
kbd-state.c ui/vnc: Do not use console_select() 2 years ago
keymaps.c ui/keymaps: Avoid trace crash and improve error messages 4 months ago
keymaps.h ui: spelling fixes 2 years ago
meson.build meson: remove unnecessary dependencies from specific_ss 8 months ago
qemu-pixman.c ui/pixman: Fix crash in qemu_pixman_shareable_free() 2 months ago
qemu-x509.h ui: move files to ui/ and include/ui/ 13 years ago
qemu.desktop ui: fix icon display for GTK frontend under GNOME Shell with Wayland 7 years ago
sdl2-2d.c ui+display: rename is_placeholder() -> surface_is_placeholder() 2 years ago
sdl2-gl.c ui/gtk-egl: Render guest content with padding in fixed-scale mode 7 months ago
sdl2-input.c ui/sdl2: release all modifiers 1 year ago
sdl2.c ui/sdl2: fix reset scaling binding to be consistent with gtk 3 months ago
shader.c ui/shader: free associated programs 4 years ago
spice-app.c qom: Have class_init() take a const data argument 8 months ago
spice-core.c Error reporting patches for 2025-09-30 3 months ago
spice-display.c ui/spice: fix crash when disabling GL scanout on 3 months ago
spice-input.c input: Allow to choose console with qemu_input_is_absolute 2 years ago
spice-module.c spice: wire up monitor in QemuSpiceOps. 5 years ago
trace-events ui: add trace events for all client messages 5 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
udmabuf.c Do not include "qemu/error-report.h" in headers that do not need it 3 years ago
ui-hmp-cmds.c Fix const qualifier build errors with recent glibc 2 weeks ago
ui-qmp-cmds.c ui/qmp-cmds: Improve two error messages 2 years ago
util.c include/hw/pci: Split pci_device.h off pci.h 3 years ago
vdagent.c ui/vdagent: fix windows agent regression 1 month ago
vgafont.h ui: fix tab indentation 3 years ago
vnc-auth-sasl.c ui: validate NUL byte padding in SASL client data more strictly 1 year ago
vnc-auth-sasl.h vnc: avoid deprecation warnings for SASL on OS X 5 years ago
vnc-auth-vencrypt.c vnc: fix resource leak when websocket channel error 5 years ago
vnc-auth-vencrypt.h Clean up ill-advised or unusual header guards 10 years ago
vnc-clipboard.c ui/vnc-clipboard: fix inflate_buffer 2 years ago
vnc-enc-hextile-template.h ui/vnc-enc-hextile: Use static rather than dynamic length stack array 2 years ago
vnc-enc-hextile.c Drop useless casts from g_malloc() & friends to pointer 3 years ago
vnc-enc-tight.c ui/vnc: Introduce the VncWorker type 5 months ago
vnc-enc-tight.h Clean up header guards that don't match their file name 10 years ago
vnc-enc-zlib.c ui/vnc: Introduce the VncWorker type 5 months ago
vnc-enc-zrle.c ui/vnc: Introduce the VncWorker type 5 months ago
vnc-enc-zrle.c.inc ui/vnc: Introduce the VncWorker type 5 months ago
vnc-enc-zrle.h Clean up header guards that don't match their file name 10 years ago
vnc-enc-zywrle-template.c ui: fix tab indentation 3 years ago
vnc-enc-zywrle.h ui: spelling fixes 2 years ago
vnc-jobs.c ui/vnc: Introduce the VncWorker type 5 months ago
vnc-jobs.h ui/vnc: Drop unused vnc_has_job() and vnc_jobs_clear() 9 years ago
vnc-palette.c ui: Clean up local variable shadowing 2 years ago
vnc-palette.h Include qapi/qmp/qlist.h exactly where needed 8 years ago
vnc-stubs.c qemu-options: define -vnc only #ifdef CONFIG_VNC 2 years ago
vnc-ws.c bulk: Remove pointless QOM casts 3 years ago
vnc-ws.h Clean up ill-advised or unusual header guards 10 years ago
vnc.c ui/vnc: Fix qemu abort when query vnc info 1 month ago
vnc.h audio: move capture API to own header 2 months ago
vnc_keysym.h ui: fix tab indentation 3 years ago
win32-kbd-hook.c include: Rename sysemu/ -> system/ 1 year ago
x_keymap.c ui: Fix memory leak in qemu_xkeymap_mapping_table() 5 years ago
x_keymap.h ui: convert GTK and SDL1 frontends to keycodemapdb 8 years ago