From 5fd6cd22f7d2c0978a5b02841becff042f7e387f Mon Sep 17 00:00:00 2001 From: Linus Yang Date: Sat, 15 Mar 2014 15:33:53 +0800 Subject: [PATCH] darwin: applecc: fix compile warnings --- src/encrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encrypt.c b/src/encrypt.c index 7b6b10a0..a5c7dde5 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -108,6 +108,7 @@ static const CCAlgorithm supported_ciphers_applecc[CIPHER_NUM] = kCCAlgorithmInvalid }; +#ifdef USE_CRYPTO_POLARSSL static const int supported_ciphers_iv_size[CIPHER_NUM] = { 0, 0, 16, 16, 16, 8, 16, 16, 16, 8, 8, 8, 8, 16 }; @@ -116,6 +117,7 @@ static const int supported_ciphers_key_size[CIPHER_NUM] = { 0, 16, 16, 24, 32, 16, 16, 24, 32, 16, 8, 16, 16, 16 }; #endif +#endif static int random_compare(const void *_x, const void *_y, uint32_t i, uint64_t a) {