git: edf9a2fae94a - main - jemalloc: don't error out on initializer warning in gcc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Aug 2025 17:13:53 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=edf9a2fae94a4b0ffa11d40ce52a48a609da9353
commit edf9a2fae94a4b0ffa11d40ce52a48a609da9353
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-08-17 16:36:16 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-08-17 17:13:33 +0000
jemalloc: don't error out on initializer warning in gcc
gcc doesn't like something about the initializer that comes with
jemalloc. Since it's vendor code, make this warning not an error
for -Werror purposes.
Sponsored by: Netflix
---
lib/libc/stdlib/malloc/jemalloc/Makefile.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libc/stdlib/malloc/jemalloc/Makefile.inc b/lib/libc/stdlib/malloc/jemalloc/Makefile.inc
index b9e34edfdea5..7722a7b755f3 100644
--- a/lib/libc/stdlib/malloc/jemalloc/Makefile.inc
+++ b/lib/libc/stdlib/malloc/jemalloc/Makefile.inc
@@ -14,6 +14,8 @@ CFLAGS+=-I${SRCTOP}/contrib/jemalloc/include -I${LIBC_SRCTOP}/stdlib/malloc/jema
.if ${MK_JEMALLOC_LG_VADDR_WIDE} != no
CFLAGS+=-D_USE_LG_VADDR_WIDE
.endif
+CFLAGS.gcc+=-Wno-error=missing-braces
+
.for src in ${JEMALLOCSRCS}
MISRCS+=jemalloc_${src}