]> diplodocus.org Git - nmh/commitdiff
Added some NMH_UNUSED's to prevent compile warnings without
authorDavid Levine <levinedl@acm.org>
Tue, 6 Sep 2016 22:02:46 +0000 (18:02 -0400)
committerDavid Levine <levinedl@acm.org>
Tue, 6 Sep 2016 22:02:46 +0000 (18:02 -0400)
OAUTH_SUPPORT.

mts/smtp/smtp.c
uip/sendsbr.c

index d407877cc21e2878abbe1663250482106dcc7b52..79c1e79b4d0da2b5850cab8899c1a93be27edf37 100644 (file)
@@ -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);
index ddce3a45d6b0a0f69351dfd8b21c5382cae2c782..c4d25029f26615d29d7ca6e9ee664b0756e23bf2 100644 (file)
@@ -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 */