glocalfileinfo: Suppress static analysis return value warning
authorColin Walters <walters@verbum.org>
Tue, 22 Jul 2014 18:22:23 +0000 (14:22 -0400)
committerColin Walters <walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000 (07:43 -0400)
Just ignore the return value, since we're checking contents != NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=733576

gio/glocalfileinfo.c

index 71ba728..7c46837 100644 (file)
@@ -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)