Squash some harmless compiler warnings
None of these AFAICS actually can occur, but let's silence gcc.
This commit is contained in:
parent
d0d98d3abe
commit
4fff43da1b
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue