From 9033e64b022cc2da84b51fa5b2aa2133f8a0e6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 29 Dec 2024 20:10:53 -0500 Subject: [PATCH] util/disk_cache: silence unused result warnings Reviewed-by: Adam Jackson Part-of: --- src/util/disk_cache_os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/disk_cache_os.c b/src/util/disk_cache_os.c index 757694ff8a9..1e2403f083f 100644 --- a/src/util/disk_cache_os.c +++ b/src/util/disk_cache_os.c @@ -1058,7 +1058,7 @@ void disk_cache_touch_cache_user_marker(char *path) { char *marker_path = NULL; - asprintf(&marker_path, "%s/marker", path); + UNUSED int _unused = asprintf(&marker_path, "%s/marker", path); if (!marker_path) return; @@ -1206,7 +1206,7 @@ delete_dir(const char* path) if (strcmp(p->d_name, ".") == 0 || strcmp(p->d_name, "..") == 0) continue; - asprintf(&entry_path, "%s/%s", path, p->d_name); + UNUSED int _unused = asprintf(&entry_path, "%s/%s", path, p->d_name); if (!entry_path) continue;