From 37971a9d54f0f9dbc64df3822db765af17019d22 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Fri, 5 Jan 2024 14:39:46 +0000 Subject: [PATCH] status: Fix build without GPGME If OSTREE_DISABLE_GPGME is not built in set remote to NULL. The ostree_repo_signature_verify_commit_data path is irrelevant in the no gpg case anyway. Having this set as NULL ensures an error gets thrown early. Signed-off-by: Eric Curtin --- src/ostree/ot-admin-builtin-status.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index bf94843f26..c910340e49 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -152,6 +152,8 @@ deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploym g_print ("%s", output_buffer->str); } +#else + g_autofree char *remote = NULL; #endif /* OSTREE_DISABLE_GPGME */ if (opt_verify) {