From 15f253747ed3f522b52726fae899f77167c676b4 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 12 Dec 2017 23:05:45 -0500 Subject: [PATCH] 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 --- lib/ext2fs/sha256.c | 1 - lib/ext2fs/sha512.c | 1 - 2 files changed, 2 deletions(-) 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; -- 1.8.3.1