From 8cb19492031989a57de5a5ec29c92a58c63a9b9d Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 15 Jul 2015 16:27:50 -0700 Subject: [PATCH] fix some build warnings from VS --- src/ssl.c | 16 ++++++++-------- wolfssl/openssl/ecdh.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 146c4f56d..efd30e6d6 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -11514,11 +11514,11 @@ int wolfSSL_BN_add(WOLFSSL_BIGNUM *r, WOLFSSL_BIGNUM *a, WOLFSSL_BIGNUM *b) int wolfSSL_BN_is_prime_ex(const WOLFSSL_BIGNUM *bn, int nbchecks, WOLFSSL_BN_CTX *ctx, WOLFSSL_BN_GENCB *cb) { + int res; + (void)ctx; (void)cb; - int res; - WOLFSSL_MSG("wolfSSL_BN_is_prime_ex"); if (bn == NULL || bn->internal == NULL) { @@ -13150,13 +13150,13 @@ int wolfSSL_PEM_write_buf_RSAPrivateKey(RSA* rsa, const EVP_CIPHER* cipher, unsigned char* passwd, int len, byte **pem, int *plen) { + byte *der, *tmp; + int der_max_len = 0, derSz = 0; + (void)cipher; (void)passwd; (void)len; - byte *der, *tmp; - int der_max_len = 0, derSz = 0; - WOLFSSL_MSG("wolfSSL_PEM_write_buf_RSAPrivateKey"); if (pem == NULL || plen == NULL || rsa == NULL || rsa->internal == NULL) { @@ -13231,15 +13231,15 @@ int wolfSSL_PEM_write_RSAPrivateKey(FILE *fp, WOLFSSL_RSA *rsa, unsigned char *kstr, int klen, pem_password_cb *cb, void *u) { + byte* pem; + int plen, ret; + (void)enc; (void)kstr; (void)klen; (void)cb; (void)u; - byte *pem; - int plen, ret; - WOLFSSL_MSG("wolfSSL_PEM_write_RSAPrivateKey"); if (fp == NULL || rsa == NULL || rsa->internal == NULL) { diff --git a/wolfssl/openssl/ecdh.h b/wolfssl/openssl/ecdh.h index b5583dd93..57d9e2e37 100644 --- a/wolfssl/openssl/ecdh.h +++ b/wolfssl/openssl/ecdh.h @@ -7,7 +7,7 @@ #include #ifdef __cplusplus -extern C { +extern "C" { #endif