1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

compiler warnings fixed

Use (void)[variable] to inhibit unused argument/variables warnings.
This commit is contained in:
Daniel Stenberg 2011-03-16 00:08:32 +01:00
parent 521e88e009
commit 025b9368f8

View File

@ -1,8 +1,8 @@
/* GSSAPI/krb5 support for FTP - loosely based on old krb4.c /* GSSAPI/krb5 support for FTP - loosely based on old krb4.c
* *
* Copyright (c) 1995, 1996, 1997, 1998, 1999, 2010 Kungliga Tekniska Högskolan * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* Copyright (c) 2004 - 2009 Daniel Stenberg * Copyright (c) 2004 - 2011 Daniel Stenberg
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -124,10 +124,10 @@ krb5_decode(void *app_data, void *buf, int len, int level,
static int static int
krb5_overhead(void *app_data, int level, int len) krb5_overhead(void *app_data, int level, int len)
{ {
/* no arguments are used, just init them to prevent compiler warnings */ /* no arguments are used */
app_data = NULL; (void)app_data;
level = 0; (void)level;
len = 0; (void)len;
return 0; return 0;
} }