projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
acdcf5c
)
gsettingsschema: Suppress return value check
author
Colin Walters
<walters@verbum.org>
Tue, 22 Jul 2014 18:21:31 +0000
(14:21 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000
(07:43 -0400)
We're intentionally ignoring the value here. Pacifies static
analysis.
https://bugzilla.gnome.org/show_bug.cgi?id=733576
gio/gsettingsschema.c
patch
|
blob
|
history
diff --git
a/gio/gsettingsschema.c
b/gio/gsettingsschema.c
index
517198b
..
a7e0838
100644
(file)
--- a/
gio/gsettingsschema.c
+++ b/
gio/gsettingsschema.c
@@
-673,8
+673,9
@@
parse_into_text_tables (const gchar *directory,
GMarkupParseContext *context;
context = g_markup_parse_context_new (&parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &info, NULL);
+ /* Ignore errors here, this is best effort only. */
if (g_markup_parse_context_parse (context, contents, size, NULL))
- g_markup_parse_context_end_parse (context, NULL);
+
(void)
g_markup_parse_context_end_parse (context, NULL);
g_markup_parse_context_free (context);
/* Clean up dangling stuff in case there was an error. */