Squash some harmless compiler warnings

None of these AFAICS actually can occur, but let's silence gcc.
This commit is contained in:
Colin Walters 2014-01-18 04:53:16 -05:00
parent d0d98d3abe
commit 4fff43da1b
3 changed files with 4 additions and 4 deletions

View File

@ -680,8 +680,8 @@ ostree_sysroot_load (OstreeSysroot *self,
{
gboolean ret = FALSE;
guint i;
int bootversion;
int subbootversion;
int bootversion = 0;
int subbootversion = 0;
gs_unref_ptrarray GPtrArray *boot_loader_configs = NULL;
gs_unref_ptrarray GPtrArray *deployments = NULL;

View File

@ -134,7 +134,7 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca
}
else if (!strcmp (op, "show-url"))
{
gs_free char *url;
gs_free char *url = NULL;
url = g_key_file_get_string (config, key, "url", error);
if (url == NULL)

View File

@ -91,7 +91,7 @@ dump_commit (GVariant *variant,
const gchar *subject;
const gchar *body;
guint64 timestamp;
gs_free gchar *str;
gs_free gchar *str = NULL;
/* See OSTREE_COMMIT_GVARIANT_FORMAT */
g_variant_get (variant, "(a{sv}aya(say)&s&stayay)", NULL, NULL, NULL,