From: Dmitry V. Levin Date: Wed, 13 Dec 2017 04:05:45 +0000 (-0500) Subject: Fix -Wunused-variable compilation warnings X-Git-Tag: v1.43.8~17 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=15f253747ed3f522b52726fae899f77167c676b4;p=tools%2Fe2fsprogs.git Fix -Wunused-variable compilation warnings 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 Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/sha256.c b/lib/ext2fs/sha256.c index 103c338..f67848d 100644 --- a/lib/ext2fs/sha256.c +++ b/lib/ext2fs/sha256.c @@ -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; diff --git a/lib/ext2fs/sha512.c b/lib/ext2fs/sha512.c index f113053..fe2dd52 100644 --- a/lib/ext2fs/sha512.c +++ b/lib/ext2fs/sha512.c @@ -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;