diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-11-13 14:12:49 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-11-13 14:12:49 +0000 |
commit | 43d984464d9622a06baee30b32b0c9983700167c (patch) | |
tree | fdce8a4c486cb3f4f615238e732041c930ab24e5 | |
parent | 895da996948d41d98acf40378b3f6c40efc0aace (diff) | |
download | glib-43d984464d9622a06baee30b32b0c9983700167c.tar.gz |
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
-rw-r--r-- | glib/gtestutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/gtestutils.c b/glib/gtestutils.c index 3b03e9831..974785a44 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -1297,8 +1297,8 @@ rm_rf (const gchar *path) dir = g_dir_open (path, 0, NULL); if (dir == NULL) { - /* Assume it’s a file. */ - g_remove (path); + /* Assume it’s a file. Ignore failure. */ + (void) g_remove (path); return; } |