1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[util] Work around silly compiler warnings on GCC 12.1

No, we're not actually reading 64 bytes from a 1-byte area.
This commit is contained in:
Philip Rebohle 2022-07-11 19:23:42 +02:00
parent 52038b2f83
commit 379c2e545e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ typedef union {
* Hash a single 512-bit block. This is the core of the algorithm.
*/
void
SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH])
SHA1Transform(uint32_t state[5], const uint8_t* buffer)
{
uint32_t a, b, c, d, e;
uint8_t workspace[SHA1_BLOCK_LENGTH];

View File

@ -28,7 +28,7 @@ typedef struct _SHA1_CTX {
void SHA1Init(SHA1_CTX *);
void SHA1Pad(SHA1_CTX *);
void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
void SHA1Transform(uint32_t [5], const uint8_t*);
void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);