]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: Add -Wno-error=format-overflow to fix build with gcc9
authorKhem Raj <raj.khem@gmail.com>
Tue, 7 May 2019 01:18:50 +0000 (18:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 May 2019 11:15:17 +0000 (12:15 +0100)
gcc9 throws additional warnings about format string overflow

(From OE-Core rev: 59f93503dcec4e5b8ab46db73095d2669aba8c7e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_242.bb

index a6b39d57e8f993fb52b557fc7d19f3edaf2fbb86..69b1f7ed0e59e8f79246a44c44e754ae32b9d47a 100644 (file)
@@ -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}