git: 0a7de174b779 - stable/14 - acpidump: bump WARNS to 6

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 12 Apr 2024 01:18:42 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0a7de174b77988437035e4ec333dd1e93cfd6413

commit 0a7de174b77988437035e4ec333dd1e93cfd6413
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-04-03 03:00:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-04-12 01:18:32 +0000

    acpidump: bump WARNS to 6
    
    (cherry picked from commit 29a6b72775eeed08a5ecb8f6c1b0c364196d73df)
---
 usr.sbin/acpi/acpidump/Makefile   | 1 -
 usr.sbin/acpi/acpidump/acpidump.h | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr.sbin/acpi/acpidump/Makefile b/usr.sbin/acpi/acpidump/Makefile
index 9bd54a80f779..d0bb14284c1a 100644
--- a/usr.sbin/acpi/acpidump/Makefile
+++ b/usr.sbin/acpi/acpidump/Makefile
@@ -2,6 +2,5 @@
 PROG=	acpidump
 MAN=	acpidump.8
 SRCS=	acpi.c acpi_user.c acpidump.c
-WARNS?=	3
 
 .include <bsd.prog.mk>
diff --git a/usr.sbin/acpi/acpidump/acpidump.h b/usr.sbin/acpi/acpidump/acpidump.h
index 857d230bb871..80f86a748d76 100644
--- a/usr.sbin/acpi/acpidump/acpidump.h
+++ b/usr.sbin/acpi/acpidump/acpidump.h
@@ -30,9 +30,12 @@
 #ifndef _ACPIDUMP_H_
 #define	_ACPIDUMP_H_
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
 #include <contrib/dev/acpica/include/acpi.h>
 #include <contrib/dev/acpica/include/acconfig.h>
 #include <contrib/dev/acpica/include/actbl1.h>
+#pragma GCC diagnostic pop
 
 /* GAS address space ID constants. */
 #define	ACPI_GAS_MEMORY		0