From: David Levine Date: Tue, 6 Sep 2016 22:02:46 +0000 (-0400) Subject: Added some NMH_UNUSED's to prevent compile warnings without X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a60491a9f4992343e88e32f586170c868889b9c1?ds=inline;hp=-c Added some NMH_UNUSED's to prevent compile warnings without OAUTH_SUPPORT. --- a60491a9f4992343e88e32f586170c868889b9c1 diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index d407877c..79c1e79b 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -1164,11 +1164,14 @@ sm_auth_xoauth2(const char *user, const char *oauth_svc, int snoop) xoauth_client_res = mh_oauth_do_xoauth(user, oauth_svc, snoop ? stderr : NULL); - if (xoauth_client_res == NULL) + if (xoauth_client_res == NULL) { return sm_ierror("Internal error: mh_oauth_do_xoauth() returned NULL"); + } #else - adios(NULL, "sendfrom built without OAUTH_SUPPORT, " - "so oauth_svc %s is not supported", oauth_svc); + NMH_UNUSED(user); + NMH_UNUSED(snoop); + adios(NULL, "sendfrom built without OAUTH_SUPPORT, " + "so oauth_svc %s is not supported", oauth_svc); #endif /* OAUTH_SUPPORT */ status = smtalk(SM_AUTH, "AUTH XOAUTH2 %s", xoauth_client_res); diff --git a/uip/sendsbr.c b/uip/sendsbr.c index ddce3a45..c4d25029 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -770,6 +770,7 @@ handle_sendfrom(char **vec, int *vecp, char *draft, const char *auth_svc) { } break; #else + NMH_UNUSED(auth_svc); adios(NULL, "send built without OAUTH_SUPPORT, " "so -saslmech xoauth2 is not supported"); #endif /* OAUTH_SUPPORT */