src: Quiet a few gcc -Wmaybe-uninitialized warnings

GCC (at least 5.2.1) isn't smart enough to figure out these are always
initialized.
This commit is contained in:
Colin Walters 2015-11-23 12:03:11 -05:00
parent 8d357565b6
commit b82f7338ea
5 changed files with 5 additions and 5 deletions

View File

@ -234,7 +234,7 @@ main (int argc,
if (!command->fn)
{
GOptionContext *context;
gs_free char *help;
gs_free char *help = NULL;
context = option_context_new_with_commands ();

View File

@ -106,7 +106,7 @@ rpmostree_builtin_compose (int argc, char **argv, GCancellable *cancellable, GEr
if (!subcommand->name)
{
GOptionContext *context;
gs_free char *help;
gs_free char *help = NULL;
context = compose_option_context_new_with_commands ();

View File

@ -167,7 +167,7 @@ rpmostree_builtin_db (int argc, char **argv, GCancellable *cancellable, GError *
if (!subcommand->name)
{
GOptionContext *context;
gs_free char *help;
gs_free char *help = NULL;
context = rpm_option_context_new_with_commands ();

View File

@ -190,7 +190,7 @@ transaction_progress_changed_cb (OstreeAsyncProgress *progress,
GVariant *arg_content;
GVariant *arg_transfer;
g_autofree gchar *status;
g_autofree gchar *status = NULL;
/* If there is a status that is all we output */
status = ostree_async_progress_get_status (progress);

View File

@ -920,7 +920,7 @@ void
rpmostree_print_transaction (HifContext *hifctx)
{
guint i;
g_autoptr(GPtrArray) install;
g_autoptr(GPtrArray) install = NULL;
install = hif_goal_get_packages (hif_context_get_goal (hifctx),
HIF_PACKAGE_INFO_INSTALL,