diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2016-02-25 23:19:06 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-01 12:10:18 -0500 |
commit | 09977dd095f3c655c99b9e1810a213f7eafa7364 (patch) | |
tree | 1d0e769c39fc50b51d6197deb6b684f25ee96bf8 /crypto/sha/sha_locl.h | |
parent | 0f97a12112bf748474662080848f75804a8fddc4 (diff) |
RT4347: Fix GCC unused-value warnings with HOST_c2l()
The HOST_c2l() macro assigns the value to the specified variable, but also
evaluates to the same value. Which we ignore, triggering a warning.
To fix this, just cast it to void like we did in commit 08e553644
("Fix some clang warnings.") for a bunch of other instances.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/sha/sha_locl.h')
-rw-r--r-- | crypto/sha/sha_locl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha/sha_locl.h b/crypto/sha/sha_locl.h index 87e69d8984..649cdeda09 100644 --- a/crypto/sha/sha_locl.h +++ b/crypto/sha/sha_locl.h @@ -430,7 +430,7 @@ static void HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num) for (;;) { for (i = 0; i < 16; i++) { - HOST_c2l(data, l); + (void)HOST_c2l(data, l); X[i] = l; BODY_00_15(X[i]); } |