Skip to content

Commit 73ebd37

Browse files
committed
bt: Build with -Werror
Change-Id: If1ccdf5995ec4dc416b5db12777094a34f014a14
1 parent 4663baf commit 73ebd37

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

msm8996/libbt-vendor/Android.bp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cc_library_shared {
3030

3131
cflags: [
3232
"-DBT_SOC_TYPE_ROME",
33-
"-Wno-error",
33+
"-Werror",
3434
],
3535

3636
srcs: [

msm8998/libbt-vendor/Android.bp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ cc_library_shared {
3030

3131
cflags: [
3232
"-Werror",
33-
"-Wno-error=user-defined-warnings",
34-
"-Wno-incompatible-pointer-types-discards-qualifiers",
35-
"-Wno-unused-function",
36-
"-Wno-unused-label",
37-
"-Wno-unused-variable",
3833
],
3934

4035
srcs: [

msm8998/libbt-vendor/src/bt_vendor_qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static int bt_powerup(int en )
480480

481481
if (q.soc_type >= BT_SOC_CHEROKEE && q.soc_type < BT_SOC_RESERVED) {
482482
ALOGI("open bt power devnode,send ioctl power op :%d ",en);
483-
fd_btpower = open(BT_PWR_CNTRL_DEVICE, O_RDWR, O_NONBLOCK);
483+
fd_btpower = open(BT_PWR_CNTRL_DEVICE, O_RDWR | O_NONBLOCK);
484484
if (fd_btpower < 0) {
485485
ALOGE("\nfailed to open bt device error = (%s)\n",strerror(errno));
486486
#ifdef WIFI_BT_STATUS_SYNC

0 commit comments

Comments
 (0)