From: Eric Curtin Date: Fri, 5 Jan 2024 14:39:46 +0000 (+0000) Subject: status: Fix build without GPGME X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~7^2~6^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=37971a9d54f0f9dbc64df3822db765af17019d22;p=ostree.git 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 --- diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index bf94843f..c910340e 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) {