From b9dd69fcc5bef2950c9a5bc8c57647038b84a691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Wed, 2 Dec 2026 09:53:37 +0100 Subject: [PATCH] gtk.cfg: Remove use-retval from g_file_set_contents definition It is acceptable to write to a file without worrying about the result in general (allowed to fail). --- cfg/gtk.cfg | 1 - test/cfg/gtk.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cfg/gtk.cfg b/cfg/gtk.cfg index 09ecfed83e6..11a17e7f9ca 100644 --- a/cfg/gtk.cfg +++ b/cfg/gtk.cfg @@ -4063,7 +4063,6 @@ false - diff --git a/test/cfg/gtk.c b/test/cfg/gtk.c index a6da9b851ad..b819530125a 100644 --- a/test/cfg/gtk.c +++ b/test/cfg/gtk.c @@ -94,6 +94,9 @@ void validCode(int argInt, GHashTableIter * hash_table_iter, GHashTable * hash_t // transfer none functions: return value should not be unreffed const GApplication *app = g_application_get_default(); printf("%p\n", app); + + // boolean return value can be ignored (use-retval should not be used) + g_file_set_contents("file", "contents", -1, NULL); } void g_malloc_test()