HomeFreeBSD

libzpool: Set -Wno-error=typedef-redefinition for clang

Description

libzpool: Set -Wno-error=typedef-redefinition for clang

In some versions of LLVM (at least 21), the <*intrin.h> headers contain
unguarded duplicate typedefs; this isn't permitted prior to C11, and
libzpool is built as C99. FreeBSD's LLVM backported LLVM PR #153820
to fix this, but other versions of LLVM (e.g., upstream, or on Linux)
don't have the patch, so this breaks the build.

Add -Wno-error=typedef-redefinition to downgrade this from an error
to a warning.

MFC after: 2 weeks
Reviewed by: dim, emaste
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D56653

Details

Provenance
ivyAuthored on Apr 27 2026, 9:31 PM
Reviewer
dim
Differential Revision
D56653: libzpool: Set -Wno-error=typedef-redefinition for clang
Parents
rGb866d05ea286: Makefile.inc1: Always use ${PKG_CMD}
Branches
Unknown
Tags
Unknown