aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-05-22 19:38:34 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-05-22 19:38:34 +0000
commitdd64155367840a3747d812577457a7ed7c8e9acb (patch)
tree83acf2816406b5d05ae50f4772356872410fdff6
parenteff5f220c379d4173fdc0e5ec00380888bf7649a (diff)
ldns: Fix unused variable on big-endian
MFC after: 1 week Fixes: 9ed998a81bab ("ldns: Update to 1.9.0")
-rw-r--r--contrib/ldns/sha2.c2
1 files changed, 2 insertions, 0 deletions
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];