]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
bluez: Fix build with GCC-15
authorKhem Raj <raj.khem@gmail.com>
Wed, 19 Mar 2025 08:15:34 +0000 (01:15 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Mar 2025 11:29:00 +0000 (11:29 +0000)
commit5afef9ba63364c6c93c8a1359020f038d06881fa
tree3751b43f93ac0c305b7875bde2f660a98e01f858
parent0fe8ec57f19d79e94f02e3c710a1b76c04b34143
bluez: Fix build with GCC-15

gcc-15 switched to -std=c23 by default:

    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212

As a result `bluez` fails the build as:

    src/shared/ad.c:1090:24: error: incompatible types when returning type '_Bool' but 'const char *' was expected
     1090 |                 return false;
          |                        ^~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/bluez5/bluez5.inc
meta/recipes-connectivity/bluez5/bluez5/0001-shared-ad-fix-std-c23-build-failure.patch [new file with mode: 0644]
meta/recipes-connectivity/bluez5/bluez5/0002-shared-shell-fix-std-c23-build-failure.patch [new file with mode: 0644]
meta/recipes-connectivity/bluez5/bluez5/0003-shared-gatt-helpers-fix-std-c23-build-failure.patch [new file with mode: 0644]