[U-Boot] [PATCH] lib:sha1: remove unused constant

This prevents a clang warning. Signed-off-by: Jeroen Hofstee jeroen@myspectrum.nl --- lib/sha1.c:392:19: warning: unused variable '_sha1_src' [-Wunused-const-variable] static const char _sha1_src[] = "_sha1_src"; ^ --- lib/sha1.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/lib/sha1.c b/lib/sha1.c index 0a5f688..05b17a2 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -389,8 +389,6 @@ void sha1_hmac(const unsigned char *key, int keylen, memset (&ctx, 0, sizeof (sha1_context)); }
-static const char _sha1_src[] = "_sha1_src"; - #ifdef SELF_TEST /* * FIPS-180-1 test vectors

On Thu, Jul 10, 2014 at 08:12:45PM +0200, Jeroen Hofstee wrote:
This prevents a clang warning. Signed-off-by: Jeroen Hofstee jeroen@myspectrum.nl
Applied to u-boot/master, thanks!
participants (2)
-
Jeroen Hofstee
-
Tom Rini