git: 5d27845e5a8b - main - ldns: Disable -Warray-parameter warnings from GCC 12 on sha2.c.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 28 Sep 2022 21:06:45 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d27845e5a8b7324b91d6a6c2a63db2635671205

commit 5d27845e5a8b7324b91d6a6c2a63db2635671205
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-28 21:02:30 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-09-28 21:02:30 +0000

    ldns: Disable -Warray-parameter warnings from GCC 12 on sha2.c.
    
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D36758
---
 lib/libldns/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libldns/Makefile b/lib/libldns/Makefile
index 34ffe7d2ed73..40efe0ff0fda 100644
--- a/lib/libldns/Makefile
+++ b/lib/libldns/Makefile
@@ -23,4 +23,6 @@ LIBADD=	ssl crypto
 
 WARNS ?= 3
 
+CWARNFLAGS.sha2.c=	${NO_WARRAY_PARAMETER}
+
 .include <bsd.lib.mk>