Whamcloud - gitweb
Fix -Wunused-variable compilation warnings
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Dec 2017 04:05:45 +0000 (23:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Dec 2017 04:05:45 +0000 (23:05 -0500)
Fix the following compilation warnings:

sha256.c: In function 'main':
sha256.c:238:20: warning: unused variable 'md' [-Wunused-variable]
sha512.c: In function 'main':
sha512.c:286:20: warning: unused variable 'md' [-Wunused-variable]

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/sha256.c
lib/ext2fs/sha512.c

index 103c338..f67848d 100644 (file)
@@ -235,7 +235,6 @@ int main(int argc, char **argv)
        int i;
        int errors = 0;
        unsigned char tmp[32];
-       struct hash_state md;
 
        for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
                unsigned char *msg = (unsigned char *) tests[i].msg;
index f113053..fe2dd52 100644 (file)
@@ -283,7 +283,6 @@ int main(int argc, char **argv)
        int i;
        int errors = 0;
        unsigned char tmp[64];
-       struct hash_state md;
 
        for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
                unsigned char *msg = (unsigned char *) tests[i].msg;