mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +01:00
gtestutils: Mark a return value as explicitly ignored
We can’t do anything differently based on whether removing a file fails. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Coverity CID: #1354857
This commit is contained in:
parent
895da99694
commit
43d984464d
@ -1297,8 +1297,8 @@ rm_rf (const gchar *path)
|
|||||||
dir = g_dir_open (path, 0, NULL);
|
dir = g_dir_open (path, 0, NULL);
|
||||||
if (dir == NULL)
|
if (dir == NULL)
|
||||||
{
|
{
|
||||||
/* Assume it’s a file. */
|
/* Assume it’s a file. Ignore failure. */
|
||||||
g_remove (path);
|
(void) g_remove (path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user