]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bluez: Fix invalid-pp-token warning found with clang
authorKhem Raj <raj.khem@gmail.com>
Thu, 24 Jul 2025 05:57:01 +0000 (22:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jul 2025 16:16:10 +0000 (17:16 +0100)
commit23a87f27b1837bd35bea356f0a10816fb35826f2
tree8575e3b3c4778e58135a9b5f871ef22f4c1ec1e4
parenta74eaca8e1830d09c5ff678c7d361cedbfc6f68a
bluez: Fix invalid-pp-token warning found with clang

We add FIRMWARE_DIR via CFLAGS using escapes for string and clang
option parser flags it

<command line>:4:23: warning: missing terminating '"' character [-Winvalid-pp-token]
    4 | #define FIRMWARE_DIR \"/usr/lib/firmware\"
      |                       ^

emitting this warning during configure means some tests fail wrongly. e.g.
test for enable -fPIC -DPIC, which results in textrels in libbbluetooth.so

Pass the string definition using single quotes to avoid the shell
"eating" the quotes and other characters

This works well across gcc and clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/bluez5/bluez5.inc