mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 13:30:02 +00:00
Silence a compiler warning
This commit is contained in:
parent
420bd5bc16
commit
7195514fb5
@ -189,7 +189,8 @@ allocate_memfd (gsize size)
|
||||
if (fd == -1)
|
||||
g_error ("memfd allocation failed");
|
||||
|
||||
ftruncate (fd, size);
|
||||
if (ftruncate (fd, size) != 0)
|
||||
g_error ("ftruncate failed");
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user