changeset 1091:eef377591301

Fix unused parameters warnings [-Werror=unused-parameter]
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 12:16:06 +0200
parents 93e1a0eb40ef
children 0e1465709336
files libtomcrypt/src/ciphers/aes/aes.c libtomcrypt/src/ciphers/des.c libtomcrypt/src/ciphers/twofish/twofish.c libtomcrypt/src/hashes/helper/hash_file.c libtomcrypt/src/hashes/helper/hash_filehandle.c libtomcrypt/src/mac/hmac/hmac_file.c
diffstat 6 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libtomcrypt/src/ciphers/aes/aes.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/ciphers/aes/aes.c	Sat May 02 12:16:06 2015 +0200
@@ -728,6 +728,7 @@
 */
 void ECB_DONE(symmetric_key *skey)
 {
+   (void)skey;
 }
 
 
--- a/libtomcrypt/src/ciphers/des.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/ciphers/des.c	Sat May 02 12:16:06 2015 +0200
@@ -1871,6 +1871,7 @@
 */
 void des3_done(symmetric_key *skey)
 {
+   (void)skey;
 }
 
 
--- a/libtomcrypt/src/ciphers/twofish/twofish.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/ciphers/twofish/twofish.c	Sat May 02 12:16:06 2015 +0200
@@ -684,6 +684,7 @@
 */
 void twofish_done(symmetric_key *skey)
 {
+   (void)skey;
 }
 
 /**
--- a/libtomcrypt/src/hashes/helper/hash_file.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/hashes/helper/hash_file.c	Sat May 02 12:16:06 2015 +0200
@@ -25,6 +25,7 @@
 int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *outlen)
 {
 #ifdef LTC_NO_FILE
+    (void)hash; (void)fname; (void)out; (void)outlen;
     return CRYPT_NOP;
 #else
     FILE *in;
--- a/libtomcrypt/src/hashes/helper/hash_filehandle.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/hashes/helper/hash_filehandle.c	Sat May 02 12:16:06 2015 +0200
@@ -26,6 +26,7 @@
 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen)
 {
 #ifdef LTC_NO_FILE
+    (void)hash; (void)in; (void)out; (void)outlen;
     return CRYPT_NOP;
 #else
     hash_state md;
--- a/libtomcrypt/src/mac/hmac/hmac_file.c	Sat May 02 11:26:22 2015 +0200
+++ b/libtomcrypt/src/mac/hmac/hmac_file.c	Sat May 02 12:16:06 2015 +0200
@@ -32,6 +32,7 @@
                     unsigned char *out, unsigned long *outlen)
 {
 #ifdef LTC_NO_FILE
+    (void)hash; (void)fname; (void)key; (void)keylen; (void)out; (void)outlen;
     return CRYPT_NOP;
 #else
    hmac_state hmac;