summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-01-02 19:18:53 +0100
committerYang Tse <yangsita@gmail.com>2012-01-04 19:11:54 +0100
commit7bd2add06f98251520735edb62848afff61e6303 (patch)
tree331b995c99758f3d79d87abba29482013f6a8ba8 /lib/krb5.c
parent3b06f1fb367fc03d7198d809964d78e32c2a3764 (diff)
downloadcurl-7bd2add06f98251520735edb62848afff61e6303.tar.gz
krb5.c: fix compiler warning: variable set but not used
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index 96938dd6e..8614acb00 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -2,7 +2,7 @@
*
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
- * Copyright (c) 2004 - 2011 Daniel Stenberg
+ * Copyright (c) 2004 - 2012 Daniel Stenberg
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -313,10 +313,13 @@ krb5_auth(void *app_data, struct connectdata *conn)
static void krb5_end(void *app_data)
{
- OM_uint32 maj, min;
+ OM_uint32 min;
gss_ctx_id_t *context = app_data;
if(*context != GSS_C_NO_CONTEXT) {
- maj = gss_delete_sec_context(&min, context, GSS_C_NO_BUFFER);
+#ifdef DEBUGBUILD
+ OM_uint32 maj =
+#endif
+ gss_delete_sec_context(&min, context, GSS_C_NO_BUFFER);
DEBUGASSERT(maj == GSS_S_COMPLETE);
}
}