From: Luca BRUNO Date: Mon, 28 Nov 2022 16:45:38 +0000 (+0000) Subject: lib/repo: fix an 'unused-function' warning X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~3^2~13^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa6064beb4205be079e0f26659f9b61a8b336da6;p=ostree.git lib/repo: fix an 'unused-function' warning This silences a warning when building the project with `--with-gpme=no`. --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 7bdb3c4e..f3a3e039 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -2528,6 +2528,7 @@ out: #endif /* OSTREE_DISABLE_GPGME */ } +#ifndef OSTREE_DISABLE_GPGME static gboolean _ostree_repo_gpg_prepare_verifier (OstreeRepo *self, const gchar *remote_name, @@ -2537,6 +2538,7 @@ _ostree_repo_gpg_prepare_verifier (OstreeRepo *self, OstreeGpgVerifier **out_verifier, GCancellable *cancellable, GError **error); +#endif /* OSTREE_DISABLE_GPGME */ /** * ostree_repo_remote_get_gpg_keys: