Skip to contentSkip to conversation

build: Disable -Wformat-truncation

PATCH New Jan Kiszka 1 participant 1 message Aug 6, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 build: Disable -Wformat-truncation

From: Jan Kiszka <[email protected]>

This is default-on in Debian 11 and triggers in heapobj_pkg_init_shared or heapobj_bind_session without adding value - we truncate for good reasons.

---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure.ac +2 -1
index bd5fd5ba9a..b6742c4b92 100644
@@ -692,7 +692,8 @@ fi
 dnl Internal CFLAGS and LDFLAGS, may be enhanced per-arch below
 XENO_USER_CFLAGS="$XENO_USER_APP_CFLAGS -pipe -fstrict-aliasing \
 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long \
--Wno-unused-parameter -Werror -Wformat-security -D__XENO__ -D__IN_XENO__"
+-Wno-unused-parameter -Wno-format-truncation -Werror -Wformat-security \
+-D__XENO__ -D__IN_XENO__"
 if test x$want_fortify = xyes -a x$debug_mode != xfull; then
    XENO_USER_CFLAGS="$XENO_USER_CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
 fi
Signature · 1 line
2.31.1