From e5f339f3bb5b9bbea11d45a4f9c98c56c53d71ea Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 24 Sep 2016 12:10:28 -0400 Subject: [PATCH] Wrapped some variables and arguments to prevent compile warnings when configured without SASL and OAUTH support. --- sbr/netsec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbr/netsec.c b/sbr/netsec.c index 45212d4d..97d306b4 100644 --- a/sbr/netsec.c +++ b/sbr/netsec.c @@ -1100,7 +1100,9 @@ netsec_negotiate_sasl(netsec_context *nsc, const char *mechlist, char **errstr) unsigned char *xoauth_client_res; size_t xoauth_client_res_len; #endif /* OAUTH_SUPPORT */ +#if defined CYRUS_SASL || defined OAUTH_SUPPORT int rc; +#endif /* CYRUS_SASL || OAUTH_SUPPORT */ /* * If we've been passed a requested mechanism, check our mechanism @@ -1403,6 +1405,8 @@ netsec_set_oauth_service(netsec_context *nsc, const char *service) nsc->oauth_service = getcpy(service); return OK; #else /* OAUTH_SUPPORT */ + NMH_UNUSED(nsc); + NMH_UNUSED(service); return NOTOK; #endif /* OAUTH_SUPPORT */ } -- 2.56.0