From c433c99eb6cdc949b73a1c0781002a0bed6ef7b7 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 23 Oct 2009 21:18:47 +0000 Subject: [PATCH] Comment out empty definition of krb5_gss_set_sec_context_option_ops and its usage, because ISO C apparently forbids empty array initializers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23002 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/gssapi_krb5.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/gssapi/krb5/gssapi_krb5.c b/src/lib/gssapi/krb5/gssapi_krb5.c index 351bead8a..d2509df32 100644 --- a/src/lib/gssapi/krb5/gssapi_krb5.c +++ b/src/lib/gssapi/krb5/gssapi_krb5.c @@ -450,11 +450,13 @@ krb5_gss_inquire_cred_by_oid(OM_uint32 *minor_status, /* * gss_set_sec_context_option() methods */ +#if 0 static struct { gss_OID_desc oid; OM_uint32 (*func)(OM_uint32 *, gss_ctx_id_t *, const gss_OID, const gss_buffer_t); } krb5_gss_set_sec_context_option_ops[] = { }; +#endif static OM_uint32 krb5_gss_set_sec_context_option (OM_uint32 *minor_status, @@ -484,6 +486,7 @@ krb5_gss_set_sec_context_option (OM_uint32 *minor_status, ctx = (krb5_gss_ctx_id_rec *) context_handle; } +#if 0 for (i = 0; i < sizeof(krb5_gss_set_sec_context_option_ops)/ sizeof(krb5_gss_set_sec_context_option_ops[0]); i++) { if (g_OID_prefix_equal(desired_object, &krb5_gss_set_sec_context_option_ops[i].oid)) { @@ -493,6 +496,7 @@ krb5_gss_set_sec_context_option (OM_uint32 *minor_status, value); } } +#endif *minor_status = EINVAL; -- 2.26.2