* RE: Add Bluetooth Ranging Service (RAS) support
2026-01-27 6:47 [PATCH BlueZ v1 1/5] lib/uuid: Add RAS service and characteristic UUIDs Prathibha Madugonde
@ 2026-01-27 7:04 ` bluez.test.bot
0 siblings, 0 replies; 10+ messages in thread
From: bluez.test.bot @ 2026-01-27 7:04 UTC (permalink / raw)
To: linux-bluetooth, prathibha.madugonde
[-- Attachment #1: Type: text/plain, Size: 158408 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1047390
---Test result---
Test Summary:
CheckPatch PENDING 0.29 seconds
GitLint PENDING 0.29 seconds
BuildEll PASS 20.24 seconds
BluezMake FAIL 19.06 seconds
MakeCheck FAIL 42.18 seconds
MakeDistcheck PASS 244.93 seconds
CheckValgrind FAIL 15.63 seconds
CheckSmatch FAIL 21.88 seconds
bluezmakeextell FAIL 13.66 seconds
IncrementalBuild PENDING 0.28 seconds
ScanBuild FAIL 33.88 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: BluezMake - FAIL
Desc: Build BlueZ
Output:
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:8069: src/shared/libshared_mainloop_la-rap.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:4272: all] Error 2
##############################
Test: MakeCheck - FAIL
Desc: Run Bluez Make Check
Output:
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:7789: src/shared/libshared_glib_la-rap.lo] Error 1
make: *** [Makefile:11120: check] Error 2
##############################
Test: CheckValgrind - FAIL
Desc: Run Bluez Make Check with Valgrind
Output:
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:8069: src/shared/libshared_mainloop_la-rap.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:11120: check] Error 2
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
src/shared/crypto.c:271:21: warning: Variable length array is used.
src/shared/crypto.c:272:23: warning: Variable length array is used.
src/shared/gatt-helpers.c:768:31: warning: Variable length array is used.
src/shared/gatt-helpers.c:830:31: warning: Variable length array is used.
src/shared/gatt-helpers.c:1323:31: warning: Variable length array is used.
src/shared/gatt-helpers.c:1354:23: warning: Variable length array is used.
src/shared/gatt-server.c:278:25: warning: Variable length array is used.
src/shared/gatt-server.c:618:25: warning: Variable length array is used.
src/shared/gatt-server.c:716:25: warning: Variable length array is used.
src/shared/bap.c:312:25: warning: array of flexible structures
src/shared/bap.c: note: in included file:
./src/shared/ascs.h:88:25: warning: array of flexible structures
src/shared/shell.c: note: in included file (through /usr/include/readline/readline.h):
/usr/include/readline/rltypedefs.h:35:23: warning: non-ANSI function declaration of function 'Function'
/usr/include/readline/rltypedefs.h:36:25: warning: non-ANSI function declaration of function 'VFunction'
/usr/include/readline/rltypedefs.h:37:27: warning: non-ANSI function declaration of function 'CPFunction'
/usr/include/readline/rltypedefs.h:38:29: warning: non-ANSI function declaration of function 'CPPFunction'
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:8069: src/shared/libshared_mainloop_la-rap.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:4272: all] Error 2
##############################
Test: bluezmakeextell - FAIL
Desc: Build Bluez with External ELL
Output:
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:8069: src/shared/libshared_mainloop_la-rap.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:4272: all] Error 2
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
##############################
Test: ScanBuild - FAIL
Desc: Run Scan Build
Output:
src/shared/gatt-client.c:451:21: warning: Use of memory after it is freed
gatt_db_unregister(op->client->db, op->db_id);
^~~~~~~~~~
src/shared/gatt-client.c:696:2: warning: Use of memory after it is freed
discovery_op_complete(op, false, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:996:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1102:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1296:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1361:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1636:6: warning: Use of memory after it is freed
if (read_db_hash(op)) {
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1641:2: warning: Use of memory after it is freed
discover_all(op);
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1697:56: warning: Use of memory after it is freed
notify_data->chrc->ccc_write_id = notify_data->att_id = att_id;
~~~~~~~~~~~~~~~~~~~ ^
src/shared/gatt-client.c:2150:6: warning: Use of memory after it is freed
if (read_db_hash(op)) {
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:2158:8: warning: Use of memory after it is freed
discovery_op_ref(op),
^~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:3183:2: warning: Use of memory after it is freed
complete_write_long_op(req, success, 0, false);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:3205:2: warning: Use of memory after it is freed
request_unref(req);
^~~~~~~~~~~~~~~~~~
13 warnings generated.
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:19:24: error: redundant redeclaration of ‘bt_gatt_client_new’ [-Werror=redundant-decls]
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:19:24: note: previous declaration of ‘bt_gatt_client_new’ was here
19 | struct bt_gatt_client *bt_gatt_client_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:23:24: error: redundant redeclaration of ‘bt_gatt_client_clone’ [-Werror=redundant-decls]
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:23:24: note: previous declaration of ‘bt_gatt_client_clone’ was here
23 | struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:25:24: error: redundant redeclaration of ‘bt_gatt_client_ref’ [-Werror=redundant-decls]
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:25:24: note: previous declaration of ‘bt_gatt_client_ref’ was here
25 | struct bt_gatt_client *bt_gatt_client_ref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:26:6: error: redundant redeclaration of ‘bt_gatt_client_unref’ [-Werror=redundant-decls]
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:26:6: note: previous declaration of ‘bt_gatt_client_unref’ was here
26 | void bt_gatt_client_unref(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:48:6: error: redundant redeclaration of ‘bt_gatt_client_is_ready’ [-Werror=redundant-decls]
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:48:6: note: previous declaration of ‘bt_gatt_client_is_ready’ was here
48 | bool bt_gatt_client_is_ready(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:49:14: error: redundant redeclaration of ‘bt_gatt_client_ready_register’ [-Werror=redundant-decls]
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:49:14: note: previous declaration of ‘bt_gatt_client_ready_register’ was here
49 | unsigned int bt_gatt_client_ready_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:53:6: error: redundant redeclaration of ‘bt_gatt_client_ready_unregister’ [-Werror=redundant-decls]
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:53:6: note: previous declaration of ‘bt_gatt_client_ready_unregister’ was here
53 | bool bt_gatt_client_ready_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:55:6: error: redundant redeclaration of ‘bt_gatt_client_set_service_changed’ [-Werror=redundant-decls]
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:55:6: note: previous declaration of ‘bt_gatt_client_set_service_changed’ was here
55 | bool bt_gatt_client_set_service_changed(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:59:6: error: redundant redeclaration of ‘bt_gatt_client_set_debug’ [-Werror=redundant-decls]
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:59:6: note: previous declaration of ‘bt_gatt_client_set_debug’ was here
59 | bool bt_gatt_client_set_debug(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:64:10: error: redundant redeclaration of ‘bt_gatt_client_get_mtu’ [-Werror=redundant-decls]
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:64:10: note: previous declaration of ‘bt_gatt_client_get_mtu’ was here
64 | uint16_t bt_gatt_client_get_mtu(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:65:16: error: redundant redeclaration of ‘bt_gatt_client_get_att’ [-Werror=redundant-decls]
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:65:16: note: previous declaration of ‘bt_gatt_client_get_att’ was here
65 | struct bt_att *bt_gatt_client_get_att(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:66:17: error: redundant redeclaration of ‘bt_gatt_client_get_db’ [-Werror=redundant-decls]
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:66:17: note: previous declaration of ‘bt_gatt_client_get_db’ was here
66 | struct gatt_db *bt_gatt_client_get_db(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:67:9: error: redundant redeclaration of ‘bt_gatt_client_get_features’ [-Werror=redundant-decls]
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:67:9: note: previous declaration of ‘bt_gatt_client_get_features’ was here
67 | uint8_t bt_gatt_client_get_features(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:69:6: error: redundant redeclaration of ‘bt_gatt_client_cancel’ [-Werror=redundant-decls]
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:69:6: note: previous declaration of ‘bt_gatt_client_cancel’ was here
69 | bool bt_gatt_client_cancel(struct bt_gatt_client *client, unsigned int id);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:70:6: error: redundant redeclaration of ‘bt_gatt_client_cancel_all’ [-Werror=redundant-decls]
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:70:6: note: previous declaration of ‘bt_gatt_client_cancel_all’ was here
70 | bool bt_gatt_client_cancel_all(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:72:14: error: redundant redeclaration of ‘bt_gatt_client_read_value’ [-Werror=redundant-decls]
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:72:14: note: previous declaration of ‘bt_gatt_client_read_value’ was here
72 | unsigned int bt_gatt_client_read_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:77:14: error: redundant redeclaration of ‘bt_gatt_client_read_long_value’ [-Werror=redundant-decls]
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:77:14: note: previous declaration of ‘bt_gatt_client_read_long_value’ was here
77 | unsigned int bt_gatt_client_read_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:82:14: error: redundant redeclaration of ‘bt_gatt_client_read_multiple’ [-Werror=redundant-decls]
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:82:14: note: previous declaration of ‘bt_gatt_client_read_multiple’ was here
82 | unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:88:14: error: redundant redeclaration of ‘bt_gatt_client_write_without_response’ [-Werror=redundant-decls]
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:88:14: note: previous declaration of ‘bt_gatt_client_write_without_response’ was here
88 | unsigned int bt_gatt_client_write_without_response(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:93:14: error: redundant redeclaration of ‘bt_gatt_client_write_value’ [-Werror=redundant-decls]
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:93:14: note: previous declaration of ‘bt_gatt_client_write_value’ was here
93 | unsigned int bt_gatt_client_write_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:99:14: error: redundant redeclaration of ‘bt_gatt_client_write_long_value’ [-Werror=redundant-decls]
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:99:14: note: previous declaration of ‘bt_gatt_client_write_long_value’ was here
99 | unsigned int bt_gatt_client_write_long_value(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:106:14: error: redundant redeclaration of ‘bt_gatt_client_prepare_write’ [-Werror=redundant-decls]
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:106:14: note: previous declaration of ‘bt_gatt_client_prepare_write’ was here
106 | unsigned int bt_gatt_client_prepare_write(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:113:14: error: redundant redeclaration of ‘bt_gatt_client_write_execute’ [-Werror=redundant-decls]
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:113:14: note: previous declaration of ‘bt_gatt_client_write_execute’ was here
113 | unsigned int bt_gatt_client_write_execute(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:119:14: error: redundant redeclaration of ‘bt_gatt_client_register_notify’ [-Werror=redundant-decls]
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:119:14: note: previous declaration of ‘bt_gatt_client_register_notify’ was here
119 | unsigned int bt_gatt_client_register_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:125:6: error: redundant redeclaration of ‘bt_gatt_client_unregister_notify’ [-Werror=redundant-decls]
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:125:6: note: previous declaration of ‘bt_gatt_client_unregister_notify’ was here
125 | bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:128:6: error: redundant redeclaration of ‘bt_gatt_client_set_security’ [-Werror=redundant-decls]
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:128:6: note: previous declaration of ‘bt_gatt_client_set_security’ was here
128 | bool bt_gatt_client_set_security(struct bt_gatt_client *client, int level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:129:5: error: redundant redeclaration of ‘bt_gatt_client_get_security’ [-Werror=redundant-decls]
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:129:5: note: previous declaration of ‘bt_gatt_client_get_security’ was here
129 | int bt_gatt_client_get_security(struct bt_gatt_client *client);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:131:14: error: redundant redeclaration of ‘bt_gatt_client_idle_register’ [-Werror=redundant-decls]
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:131:14: note: previous declaration of ‘bt_gatt_client_idle_register’ was here
131 | unsigned int bt_gatt_client_idle_register(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:135:6: error: redundant redeclaration of ‘bt_gatt_client_idle_unregister’ [-Werror=redundant-decls]
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:135:6: note: previous declaration of ‘bt_gatt_client_idle_unregister’ was here
135 | bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:12,
from src/shared/rap.c:27:
./src/shared/gatt-client.h:137:6: error: redundant redeclaration of ‘bt_gatt_client_set_retry’ [-Werror=redundant-decls]
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:26:
./src/shared/gatt-client.h:137:6: note: previous declaration of ‘bt_gatt_client_set_retry’ was here
137 | bool bt_gatt_client_set_retry(struct bt_gatt_client *client,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:15:24: error: redundant redeclaration of ‘bt_gatt_server_new’ [-Werror=redundant-decls]
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:15:24: note: previous declaration of ‘bt_gatt_server_new’ was here
15 | struct bt_gatt_server *bt_gatt_server_new(struct gatt_db *db,
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:18:10: error: redundant redeclaration of ‘bt_gatt_server_get_mtu’ [-Werror=redundant-decls]
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:18:10: note: previous declaration of ‘bt_gatt_server_get_mtu’ was here
18 | uint16_t bt_gatt_server_get_mtu(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:19:16: error: redundant redeclaration of ‘bt_gatt_server_get_att’ [-Werror=redundant-decls]
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:19:16: note: previous declaration of ‘bt_gatt_server_get_att’ was here
19 | struct bt_att *bt_gatt_server_get_att(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:21:24: error: redundant redeclaration of ‘bt_gatt_server_ref’ [-Werror=redundant-decls]
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:21:24: note: previous declaration of ‘bt_gatt_server_ref’ was here
21 | struct bt_gatt_server *bt_gatt_server_ref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:22:6: error: redundant redeclaration of ‘bt_gatt_server_unref’ [-Werror=redundant-decls]
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:22:6: note: previous declaration of ‘bt_gatt_server_unref’ was here
22 | void bt_gatt_server_unref(struct bt_gatt_server *server);
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:28:6: error: redundant redeclaration of ‘bt_gatt_server_set_debug’ [-Werror=redundant-decls]
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:28:6: note: previous declaration of ‘bt_gatt_server_set_debug’ was here
28 | bool bt_gatt_server_set_debug(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:36:6: error: redundant redeclaration of ‘bt_gatt_server_set_authorize’ [-Werror=redundant-decls]
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:36:6: note: previous declaration of ‘bt_gatt_server_set_authorize’ was here
36 | bool bt_gatt_server_set_authorize(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:40:6: error: redundant redeclaration of ‘bt_gatt_server_send_notification’ [-Werror=redundant-decls]
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:40:6: note: previous declaration of ‘bt_gatt_server_send_notification’ was here
40 | bool bt_gatt_server_send_notification(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/shared/rap.h:13,
from src/shared/rap.c:27:
./src/shared/gatt-server.h:44:6: error: redundant redeclaration of ‘bt_gatt_server_send_indication’ [-Werror=redundant-decls]
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/shared/rap.c:25:
./src/shared/gatt-server.h:44:6: note: previous declaration of ‘bt_gatt_server_send_indication’ was here
44 | bool bt_gatt_server_send_indication(struct bt_gatt_server *server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:135:13: error: no previous declaration for ‘rap_get_ras’ [-Werror=missing-declarations]
135 | struct ras *rap_get_ras(struct bt_rap *rap)
| ^~~~~~~~~~~
src/shared/rap.c:636:21: error: ‘bt_rap_register_notify’ defined but not used [-Werror=unused-function]
636 | static unsigned int bt_rap_register_notify(struct bt_rap *rap,
| ^~~~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:598:13: error: ‘rap_pending_complete’ defined but not used [-Werror=unused-function]
598 | static void rap_pending_complete(bool success, uint8_t att_ecode,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:589:13: error: ‘rap_pending_destroy’ defined but not used [-Werror=unused-function]
589 | static void rap_pending_destroy(void *data)
| ^~~~~~~~~~~~~~~~~~~
src/shared/rap.c:301:13: error: ‘ras_realtime_read_cb’ defined but not used [-Werror=unused-function]
301 | static void ras_realtime_read_cb(struct gatt_db_attribute *attrib,
| ^~~~~~~~~~~~~~~~~~~~
src/shared/rap.c:124:26: error: ‘rap_get_rapdb’ defined but not used [-Werror=unused-function]
124 | static struct bt_rap_db *rap_get_rapdb(struct bt_rap *rap)
| ^~~~~~~~~~~~~
src/shared/rap.c:117:13: error: ‘on_demand_enabled’ defined but not used [-Werror=unused-variable]
117 | static bool on_demand_enabled;
| ^~~~~~~~~~~~~~~~~
src/shared/rap.c:116:13: error: ‘real_time_enabled’ defined but not used [-Werror=unused-variable]
116 | static bool real_time_enabled;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:8069: src/shared/libshared_mainloop_la-rap.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
src/shared/bap.c:1529:8: warning: Use of memory after it is freed
bap = bt_bap_ref_safe(bap);
^~~~~~~~~~~~~~~~~~~~
src/shared/bap.c:2340:20: warning: Use of memory after it is freed
return queue_find(stream->bap->streams, NULL, stream);
^~~~~~~~~~~~~~~~~~~~
2 warnings generated.
make: *** [Makefile:4272: all] Error 2
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 10+ messages in thread