From: Cœur Date: Thu, 2 Mar 2023 06:07:44 +0000 (+0800) Subject: Fix "Value stored to 'a' is never read" in SHA1Transform() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b84fee24abdeccf70748f6387a056057ec6ce882;p=libevent Fix "Value stored to 'a' is never read" in SHA1Transform() Using same fix as used in android [1]. [1]: android.googlesource.com/platform/dalvik/+/android-4.4.2_r2/libdex/sha1.cpp#193 --- diff --git a/sha1.c b/sha1.c index 09cf6e69..dd88f103 100644 --- a/sha1.c +++ b/sha1.c @@ -198,8 +198,6 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) { state[2] += c; state[3] += d; state[4] += e; - /* Wipe variables */ - a = b = c = d = e = 0; #ifdef SHA1HANDSOFF memset(block, '\0', sizeof(block)); #endif