Commit e68da5b7a2 for qemu.org

commit e68da5b7a2cd8f4635d3b253ac1581552a3df16f
Author: Matthew Penney <matt@matthewpenney.net>
Date:   Thu May 14 19:19:18 2026 +0000

    tests/qtest: fix discarded const qualifier warning

    Modern compilers warn that the result of strstr() may discard
    const qualifiers when assigned to a non-const pointer.

    Make 'found' a const char * to fix the warning.

    Signed-off-by: Matthew Penney <matt@matthewpenney.net>
    Reviewed-by: Thomas Huth <thuth@redhat.com>
    Tested-by: Thomas Huth <thuth@redhat.com>
    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
    Signed-off-by: Fabiano Rosas <farosas@suse.de>

diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index bf9284b9a1..b1e06ea364 100644
--- a/tests/qtest/libqtest.c
+++ b/tests/qtest/libqtest.c
@@ -2146,7 +2146,7 @@ bool mkimg(const char *file, const char *fmt, unsigned size_mb)
 bool qtest_verbose(const char *domain)
 {
     const char *log = getenv("QTEST_LOG");
-    char *found;
+    const char *found;

     assert(domain);