diff options
author | Jonathan Lebon <jlebon@redhat.com> | 2017-10-03 21:34:43 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-10-04 12:54:53 +0000 |
commit | 0c364337365986d4bf44bf0c30da6aab660384a5 (patch) | |
tree | 323883ed5db29febc450adb3e16f50143c856f46 /src/ostree/ot-main.c | |
parent | 8a61f5423952db275c99876b273a8fb32f761eb1 (diff) | |
download | ostree-0c364337365986d4bf44bf0c30da6aab660384a5.tar.gz |
tree: fix compiler warnings
Mostly innocuous warnings, except for -Wtautological-compare, which
caught a shady guint64 subtraction.
Closes: #1245
Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-main.c')
-rw-r--r-- | src/ostree/ot-main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c index 1f7e9382..8e8c4631 100644 --- a/src/ostree/ot-main.c +++ b/src/ostree/ot-main.c @@ -163,10 +163,8 @@ ostree_run (int argc, if (!command->fn) { - g_autoptr(GOptionContext) context = NULL; - g_autofree char *help = NULL; - - context = ostree_option_context_new_with_commands (commands); + g_autoptr(GOptionContext) context = + ostree_option_context_new_with_commands (commands); /* This will not return for some options (e.g. --version). */ if (ostree_option_context_parse (context, NULL, &argc, &argv, OSTREE_BUILTIN_FLAG_NO_REPO, NULL, cancellable, &error)) |