Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2024 15:18:04 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 29a6b72775ee - main - acpidump: bump WARNS to 6
Message-ID:  <202404051518.435FI4WK078327@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=29a6b72775eeed08a5ecb8f6c1b0c364196d73df

commit 29a6b72775eeed08a5ecb8f6c1b0c364196d73df
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-04-03 03:00:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-04-05 15:17:55 +0000

    acpidump: bump WARNS to 6
    
    and disable warnings about unused function args coming from the vendor
    acpi headers.
    
    Reviewed by:    markj
    Sponsored by:   Advanced Micro Devices (AMD)
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D44634
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404051518.435FI4WK078327>