[gmime: 25/27] fix compiler warnings when building without gpgme support (#35)
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime: 25/27] fix compiler warnings when building without gpgme support (#35)
- Date: Thu, 23 Nov 2017 15:46:00 +0000 (UTC)
commit 8ff615b81e15dfa4a7adc1ece14a1f869bccce94
Author: albrechtd <albrecht dress arcor de>
Date: Thu Nov 16 03:44:31 2017 +0100
fix compiler warnings when building without gpgme support (#35)
gmime/gmime-gpg-context.c | 2 +-
gmime/gmime-pkcs7-context.c | 2 +-
tests/test-autocrypt.c | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gmime/gmime-gpg-context.c b/gmime/gmime-gpg-context.c
index 31c9ffa..b6daaf4 100644
--- a/gmime/gmime-gpg-context.c
+++ b/gmime/gmime-gpg-context.c
@@ -169,9 +169,9 @@ g_mime_gpg_context_init (GMimeGpgContext *gpg, GMimeGpgContextClass *klass)
static void
g_mime_gpg_context_finalize (GObject *object)
{
+#ifdef ENABLE_CRYPTO
GMimeGpgContext *gpg = (GMimeGpgContext *) object;
-#ifdef ENABLE_CRYPTO
if (gpg->ctx)
gpgme_release (gpg->ctx);
#endif
diff --git a/gmime/gmime-pkcs7-context.c b/gmime/gmime-pkcs7-context.c
index a451460..d788244 100644
--- a/gmime/gmime-pkcs7-context.c
+++ b/gmime/gmime-pkcs7-context.c
@@ -168,9 +168,9 @@ g_mime_pkcs7_context_init (GMimePkcs7Context *pkcs7, GMimePkcs7ContextClass *kla
static void
g_mime_pkcs7_context_finalize (GObject *object)
{
+#ifdef ENABLE_CRYPTO
GMimePkcs7Context *pkcs7 = (GMimePkcs7Context *) object;
-#ifdef ENABLE_CRYPTO
if (pkcs7->ctx)
gpgme_release (pkcs7->ctx);
#endif
diff --git a/tests/test-autocrypt.c b/tests/test-autocrypt.c
index b153e92..5feac6c 100644
--- a/tests/test-autocrypt.c
+++ b/tests/test-autocrypt.c
@@ -928,6 +928,7 @@ test_ah_message_parse (void)
}
+#ifdef ENABLE_CRYPTO
static void
import_secret_key (void)
{
@@ -1041,6 +1042,7 @@ import_secret_key (void)
}
testsuite_check_passed ();
}
+#endif
int main (int argc, char **argv)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]