git: dd6415536784 - main - ldns: Fix unused variable on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 May 2026 19:50:21 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=dd64155367840a3747d812577457a7ed7c8e9acb
commit dd64155367840a3747d812577457a7ed7c8e9acb
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-05-22 19:38:34 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-05-22 19:38:34 +0000
ldns: Fix unused variable on big-endian
MFC after: 1 week
Fixes: 9ed998a81bab ("ldns: Update to 1.9.0")
---
contrib/ldns/sha2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/contrib/ldns/sha2.c b/contrib/ldns/sha2.c
index 59a6b9d30fc6..dcd7d5dbf69b 100644
--- a/contrib/ldns/sha2.c
+++ b/contrib/ldns/sha2.c
@@ -738,7 +738,9 @@ static void ldns_sha512_Transform(ldns_sha512_CTX* context,
sha2_word64 a, b, c, d, e, f, g, h, s0, s1;
sha2_word64 T1, T2, *W512 = (sha2_word64*)context->buffer;
int j;
+#if BYTE_ORDER == LITTLE_ENDIAN
sha2_word64 aligned;
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
/* initialize registers with the prev. intermediate value */
a = context->state[0];