From 44baeabd068f69518f4dfe25bcb88b0f7fb03d31 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Tue, 28 Jun 2011 14:28:13 -0400 Subject: [PATCH] Fix unreferenced parameter warnings. ...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 | 3 +++ moonshot/mech_eap/set_sec_context_option.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/moonshot/mech_eap/inquire_cred_by_oid.c b/moonshot/mech_eap/inquire_cred_by_oid.c index 169b636..b8ff40e 100644 --- a/moonshot/mech_eap/inquire_cred_by_oid.c +++ b/moonshot/mech_eap/inquire_cred_by_oid.c @@ -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); diff --git a/moonshot/mech_eap/set_sec_context_option.c b/moonshot/mech_eap/set_sec_context_option.c index 2c7cc7b..14278dc 100644 --- a/moonshot/mech_eap/set_sec_context_option.c +++ b/moonshot/mech_eap/set_sec_context_option.c @@ -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) -- 2.1.4