Closed Bug 1285831 Opened 8 years ago Closed 8 years ago

bluetoothd won't build with BOARD_BLUETOOTH_BDROID_USE_CAF_EXTENSIONS defined

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: b2g.bonstra, Unassigned)

References

Details

Attachments

(1 file)

65 bytes, text/x-github-pull-request
tzimmermann
: review+
Details | Review
bluetoothd will fail to build if BOARD_BLUETOOTH_BDROID_USE_CAF_EXTENSIONS is set to true in the BoardConfig.mk and building with a libhardware from CAF.
The problem comes from an unused parameter in the pin_request_cb() function, which causes the compiler to issue a warning and subsequently fail because of the -Werror option in the LOCAL_CFLAGS. That parameter "secure" is only present when Q_BLUETOOTH is defined, and Q_BLUETOOTH is defined only if BOARD_BLUETOOTH_BDROID_USE_CAF_EXTENSIONS is "true".

=== Compiler output ===
target thumb C: bluetoothd <= system/bluetoothd/src/bt-core-io.c
system/bluetoothd/src/bt-core-io.c: In function 'pin_request_cb':
system/bluetoothd/src/bt-core-io.c:529:38: error: unused parameter 'secure' [-Werror=unused-parameter]
cc1: all warnings being treated as errors
make: *** [out/target/product/zte_p821a10/obj/EXECUTABLES/bluetoothd_intermediates/bt-core-io.o] Error 1
===
Blocks: 1261740
Attached file github pull request
Attachment #8769504 - Flags: review?(tzimmermann)
Blocks: 1285834
No longer blocks: 1261740
Comment on attachment 8769504 [details] [review]
github pull request

Thank you!
Attachment #8769504 - Flags: review?(tzimmermann) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: