diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-07-12 23:24:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-07-12 23:24:52 +0200 |
commit | ee4ed461288ec74641e3b96d5508628c07f689b0 (patch) | |
tree | 9c9e5a463346a77ad4cb8536356c8f567ee24e64 /lib/krb5.c | |
parent | 2af0287856ca0ba7fc4d80bf94e46bb2d4c6d96c (diff) | |
download | curl-ee4ed461288ec74641e3b96d5508628c07f689b0.tar.gz |
silence picky compilers: mark unused parameters
Modern gcc versions (4.6.X) get more picky by default and have started
to warn for unused parameters, but luckily gcc also allows us to mark
them as unused so that we can avoid the warnings.
Diffstat (limited to 'lib/krb5.c')
-rw-r--r-- | lib/krb5.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/krb5.c b/lib/krb5.c index 74a6b572b..34329dc6a 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -83,16 +83,16 @@ krb5_check_prot(void *app_data, int level) } static int -krb5_decode(void *app_data, void *buf, int len, int level, - struct connectdata *conn) +krb5_decode(void *app_data, void *buf, int len, + int level UNUSED_PARAM, + struct connectdata *conn UNUSED_PARAM) { gss_ctx_id_t *context = app_data; OM_uint32 maj, min; gss_buffer_desc enc, dec; - /* shut gcc up */ - level = 0; - conn = NULL; + (void)level; + (void)conn; enc.value = buf; enc.length = len; @@ -122,7 +122,7 @@ krb5_overhead(void *app_data, int level, int len) static int krb5_encode(void *app_data, const void *from, int length, int level, void **to, - struct connectdata *conn) + struct connectdata *conn UNUSED_PARAM) { gss_ctx_id_t *context = app_data; gss_buffer_desc dec, enc; |