mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 13:40:24 +01:00
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:
parent
8c819a2f95
commit
9033e64b02
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue