Fix unreferenced parameter warnings.
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Tue, 28 Jun 2011 18:28:13 +0000 (14:28 -0400)
committerSam Hartman <hartmans@debian.org>
Fri, 1 Jul 2011 10:20:21 +0000 (06:20 -0400)
...in the functions in inquire_cred_by_oid.c and set_sec_context_option.c
that used to throw zero-sized array errors under msvc

moonshot/mech_eap/inquire_cred_by_oid.c
moonshot/mech_eap/set_sec_context_option.c

index 169b636..b8ff40e 100644 (file)
@@ -74,6 +74,9 @@ gss_inquire_cred_by_oid(OM_uint32 *minor,
             break;
         }
     }
+#else
+    (void)i;
+    (void)desired_object;
 #endif
 
     GSSEAP_MUTEX_UNLOCK(&cred_handle->mutex);
index 2c7cc7b..14278dc 100644 (file)
@@ -74,6 +74,10 @@ gss_set_sec_context_option(OM_uint32 *minor,
             break;
         }
     }
+#else
+    (void)i;
+    (void)desired_object;
+    (void)value;
 #endif
 
     if (pCtx != NULL && *pCtx == NULL)