lib/repo: fix an 'unused-function' warning
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 28 Nov 2022 16:45:38 +0000 (16:45 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Tue, 29 Nov 2022 08:51:53 +0000 (08:51 +0000)
This silences a warning when building the project with `--with-gpme=no`.

src/libostree/ostree-repo.c

index 7bdb3c4e1e30435eedf36a3a2cc07e1d551f7daf..f3a3e039c681fb030c28509fa75e8f072f63734f 100644 (file)
@@ -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: