summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-05-28 12:44:37 +0100
committerRichard Hughes <richard@hughsie.com>2015-05-28 12:44:37 +0100
commit83646d364199a8481ed2332c65d447a4d4e789f9 (patch)
treeb91f3242172d0b052f54f2d86cdc8e0a3a5cbec0
parentdec305158afd963ba32d59211ef65543867feab2 (diff)
downloadappstream-glib-83646d364199a8481ed2332c65d447a4d4e789f9.tar.gz
trivial: Fix up some set-but-not-used warnings from clang
-rw-r--r--client/as-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 52ad5f9..5004faf 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -263,8 +263,8 @@ as_util_convert_appdata (GFile *file_input,
n2 = as_node_find (n, "metadata_license");
if (n2 == NULL) {
action_required = TRUE;
- n2 = as_node_insert (n, "metadata_license", "<!-- Insert SPDX ID Here -->",
- AS_NODE_INSERT_FLAG_PRE_ESCAPED, NULL);
+ as_node_insert (n, "metadata_license", "<!-- Insert SPDX ID Here -->",
+ AS_NODE_INSERT_FLAG_PRE_ESCAPED, NULL);
} else {
tmp = as_node_get_data (n2);
@@ -361,8 +361,8 @@ as_util_convert_appdata (GFile *file_input,
n3 = as_node_insert (n, "url", "<!-- http://www.homepage.com/ -->",
AS_NODE_INSERT_FLAG_PRE_ESCAPED,
"type", "homepage", NULL);
- as_node_set_comment (n3, "FIXME: homepage for the application", -1);
}
+ as_node_set_comment (n3, "FIXME: homepage for the application", -1);
}
if (as_node_find_with_attribute (n, "url", "type", "bugtracker") == NULL) {
if (g_strcmp0 (project_group, "GNOME") == 0) {
@@ -3464,7 +3464,7 @@ as_util_ignore_cb (const gchar *log_domain, GLogLevelFlags log_level,
int
main (int argc, char *argv[])
{
- AsUtilPrivate *priv;
+ AsUtilPrivate *priv = NULL;
gboolean ret;
gboolean nonet = FALSE;
gboolean verbose = FALSE;