util/disk_cache: silence unused result warnings

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32810>
This commit is contained in:
Marek Olšák
2024-12-29 20:10:53 -05:00
committed by Marge Bot
parent 8c819a2f95
commit 9033e64b02

View File

@@ -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;