[glib] glocalfileinfo: Suppress static analysis return value warning
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glocalfileinfo: Suppress static analysis return value warning
- Date: Wed, 23 Jul 2014 11:47:38 +0000 (UTC)
commit 7ea4bf3f309232d85b7b60f6ac6295e679a22ed8
Author: Colin Walters <walters verbum org>
Date: Tue Jul 22 14:22:23 2014 -0400
glocalfileinfo: Suppress static analysis return value warning
Just ignore the return value, since we're checking contents != NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=733576
gio/glocalfileinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 71ba728..7c46837 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1455,7 +1455,7 @@ read_hidden_file (const gchar *dirname)
gchar *filename;
filename = g_build_path ("/", dirname, ".hidden", NULL);
- g_file_get_contents (filename, &contents, NULL, NULL);
+ (void) g_file_get_contents (filename, &contents, NULL, NULL);
g_free (filename);
if (contents != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]