diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-02-02 00:19:08 -0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-10-24 06:31:58 -0700 |
| commit | dfe311ef7a1809a595d1d6efdff23800b7343b73 (patch) | |
| tree | a4a36f0441a3af4ea19ff191ec8284bef608036f /meta/recipes-devtools/syslinux | |
| parent | b41fb087dac4fcb1e580a3d5a8c439c0486e242d (diff) | |
| download | poky-dfe311ef7a1809a595d1d6efdff23800b7343b73.tar.gz | |
syslinux: Disable error on implicit-function-declaration
syslinux has vendored copy of ext2fs/ext2_fs.h but uses ext2fs/ext2fs.h
from e2fsprogs package, however, ext2fs/ext2fs.h has dependencies on
ext2fs/ext2_fs.h coming from e2fsprogs package as these both headers
come from same package, here syslinux uses ext2fs.h from e2fsprogs but
supplies its own copy of ext2_fs.h which maybe out of sync and that
results in warnings about implicit implicit-function-declarations
e.g.
recipe-sysroot/usr/include/ext2fs/ext2fs.h:727:16: error: implicit declaration of function 'ext2fs_has_feature_gdt_csum' [-Wimplicit-function-declaration]
| 727 | ext2fs_has_feature_gdt_csum(fs->super);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ext2fs_has_feature_gdt_csum here comes from newer version of
ext2fs/ext2_fs.h but missing from vendored copy, hence the warning.
With gcc-14 this warning is treated as error by default, which breaks
the build, so lets treat it as warning only.
All these functions are never used in syslinux, so functionality-wise we
are fine.
(From OE-Core rev: 14fdee535c37aaa44898dc22149004c97b2456ca)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a2b30108055e68b62fdad7319d7d569bc38a07b4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/syslinux')
| -rw-r--r-- | meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb index 0e4a23c1b4..4b4b6d4b64 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb | |||
| @@ -48,7 +48,7 @@ TARGET_LDFLAGS = "" | |||
| 48 | SECURITY_LDFLAGS = "" | 48 | SECURITY_LDFLAGS = "" |
| 49 | LDFLAGS_SECTION_REMOVAL = "" | 49 | LDFLAGS_SECTION_REMOVAL = "" |
| 50 | 50 | ||
| 51 | CFLAGS:append = " -DNO_INLINE_FUNCS" | 51 | CFLAGS:append = " -DNO_INLINE_FUNCS -Wno-error=implicit-function-declaration" |
| 52 | 52 | ||
| 53 | EXTRA_OEMAKE = " \ | 53 | EXTRA_OEMAKE = " \ |
| 54 | BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \ | 54 | BINDIR=${bindir} SBINDIR=${sbindir} LIBDIR=${libdir} \ |
