Date: Fri, 29 May 2026 23:04:52 +0000 From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e02114425827 - stable/14 - Work around unterminated-string-initialization warnings in acpidb Message-ID: <6a1a1b94.4242d.6c9429c7@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e02114425827bb40e2d9f12a546672be652de8c9 commit e02114425827bb40e2d9f12a546672be652de8c9 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2026-05-29 22:59:24 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2026-05-29 22:59:49 +0000 Work around unterminated-string-initialization warnings in acpidb ACPICA 20250807 fixes these warnings by adding nonstring attributes, but since ACPICA in stable/14 has not been updated for quite some time, suppress the warning for clang >= 21 instead. Direct commit to stable/14, since stable/15 and main already have ACPICA 20250807. --- usr.sbin/acpi/acpidb/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/acpi/acpidb/Makefile b/usr.sbin/acpi/acpidb/Makefile index dc3a871edf3f..714d43b3755a 100644 --- a/usr.sbin/acpi/acpidb/Makefile +++ b/usr.sbin/acpi/acpidb/Makefile @@ -88,6 +88,10 @@ LIBADD= pthread # Turn off the warning, because this is in contributed code. .if ${COMPILER_TYPE} == "clang" CWARNFLAGS+= -Wno-null-pointer-arithmetic +.if ${COMPILER_VERSION} >= 210000 +# XXX: Workaround for these warnings, which are fixed in ACPICA 20250807 +CWARNFLAGS+= -Wno-unterminated-string-initialization +.endif .endif # AcpiUtInitStackPtrTrace intentionally leaks a pointer to anhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1a1b94.4242d.6c9429c7>
