Steven Van Ingelgem <[email protected]> writes:

> Mac OSX, gcc 4.0.1
>
> [ 19%] Building C object
> externals/libssh2/CMakeFiles/ssh2.dir/src/openssl.c.o
> /Users/steven/Src/server_monitor/externals/libssh2/src/openssl.c:212:
> warning: unused parameter 'enc'
> /Users/steven/Src/server_monitor/externals/libssh2/src/openssl.c:324:
> warning: unused parameter 'session'

Those are harmless.  There are a bunch of ways to fix these warnings,
I've seen this usage:

static int
aes_ctr_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
             const unsigned char *iv, int enc) /* init key */
{
  (void) enc;

And of course there are GCC attributes too.  How do people feel about
adding the above way to resolve unused parameter warnings?  I don't
really like it (it is a hack), and it isn't guaranteed to work in
general, but it does appear to solve the problem right now.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to