Skip to contentSkip to conversation

systemd: Add -Wno-error=format-overflow to fix biuld with gcc9

PATCH New Khem Raj 1 participant 1 message May 7, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/2 systemd: Add -Wno-error=format-overflow to fix biuld with gcc9

gcc9 throws additional warnings about format string overflow

---
 meta/recipes-core/systemd/systemd_242.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/systemd/systemd_242.bb +2 -0
index a6b39d57e8..69b1f7ed0e 100644
@@ -204,6 +204,8 @@ EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \
                   -Dsulogin-path=${base_sbindir}/sulogin \
                   -Dumount-path=${base_bindir}/umount"
 
+CFLAGS += "-Wno-error=format-overflow"
+
 do_install() {
 	meson_do_install
 	install -d ${D}/${base_sbindir}
Signature · 1 line
2.21.0