Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- target thumb C: l2test_ertm <= external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c
- Import includes file: /home/reconfreak/android/cfx/out/target/product/d800/obj/EXECUTABLES/linker_intermediates/import_includes
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:138:41: warning: missing field 'allowed_modes' initializer [-Wmissing-field-initializers]
- static tL2CAP_ERTM_INFO t_ertm_info = {0};
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:171:44: warning: missing field 'mtu_present' initializer [-Wmissing-field-initializers]
- static tL2CAP_CFG_INFO tl2cap_cfg_info = {0};
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:203:76: warning: unused parameter 'psm' [-Wunused-parameter]
- static void l2test_l2c_connect_ind_cb(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
- if ((result == L2CAP_CONN_OK) ) {
- ~~~~~~~^~~~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: note: remove extraneous parentheses around the comparison to silence this warning
- if ((result == L2CAP_CONN_OK) ) {
- ~ ^ ~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: note: use '=' to turn this equality comparison into an assignment
- if ((result == L2CAP_CONN_OK) ) {
- ^~
- =
- target thumb C++: libc_nomalloc <= bionic/libc/bionic/pthread_create.cpp
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:237:46: warning: unused parameter 'lcid' [-Wunused-parameter]
- static void l2test_l2c_connect_pnd_cb(UINT16 lcid)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:282:49: warning: unused parameter 'lcid' [-Wunused-parameter]
- static void l2test_l2c_disconnect_cfm_cb(UINT16 lcid, UINT16 result)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:282:62: warning: unused parameter 'result' [-Wunused-parameter]
- static void l2test_l2c_disconnect_cfm_cb(UINT16 lcid, UINT16 result)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:287:48: warning: unused parameter 'bd_addr' [-Wunused-parameter]
- static void l2test_l2c_QoSViolationInd(BD_ADDR bd_addr)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:291:43: warning: unused parameter 'lcid' [-Wunused-parameter]
- static void l2test_l2c_data_ind_cb(UINT16 lcid, BT_HDR *p_buf)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:295:49: warning: unused parameter 'lcid' [-Wunused-parameter]
- static void l2test_l2c_congestion_ind_cb(UINT16 lcid, BOOLEAN is_congested)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:295:63: warning: unused parameter 'is_congested' [-Wunused-parameter]
- static void l2test_l2c_congestion_ind_cb(UINT16 lcid, BOOLEAN is_congested)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:366:5: warning: implicit declaration of function 'capset' is invalid in C99 [-Wimplicit-function-declaration]
- capset(&header, &cap);
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:509:12: warning: 12 enumeration values not handled in switch: 'BT_PROPERTY_BDNAME', 'BT_PROPERTY_UUIDS', 'BT_PROPERTY_CLASS_OF_DEVICE'... [-Wswitch]
- switch(properties->type)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:502:52: warning: unused parameter 'status' [-Wunused-parameter]
- static void adapter_properties_changed(bt_status_t status, int num_properties, bt_property_t *properties)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:502:64: warning: unused parameter 'num_properties' [-Wunused-parameter]
- static void adapter_properties_changed(bt_status_t status, int num_properties, bt_property_t *properties)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:524:70: warning: unused parameter 'bd_name' [-Wunused-parameter]
- static void pin_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name, uint32_t cod)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:524:88: warning: unused parameter 'cod' [-Wunused-parameter]
- static void pin_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name, uint32_t cod)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:535:70: warning: unused parameter 'bd_name' [-Wunused-parameter]
- static void ssp_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name,
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:536:37: warning: unused parameter 'cod' [-Wunused-parameter]
- uint32_t cod, bt_ssp_variant_t pairing_variant, uint32_t pass_key)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:543:47: warning: unused parameter 'status' [-Wunused-parameter]
- static void bond_state_changed_cb(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_bond_state_t state)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:543:68: warning: unused parameter 'remote_bd_addr' [-Wunused-parameter]
- static void bond_state_changed_cb(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_bond_state_t state)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:43: warning: unused parameter 'status' [-Wunused-parameter]
- static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:64: warning: unused parameter 'remote_bd_addr' [-Wunused-parameter]
- static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:95: warning: unused parameter 'state' [-Wunused-parameter]
- static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:36: warning: unused parameter 'opcode' [-Wunused-parameter]
- static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:53: warning: unused parameter 'buf' [-Wunused-parameter]
- static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:66: warning: unused parameter 'len' [-Wunused-parameter]
- static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:567:5: warning: incompatible pointer types initializing 'ssp_request_callback' (aka 'void (*)(bt_bdaddr_t *, bt_bdname_t *, uint32_t, bt_ssp_variant_t, uint32_t)') with an expression of type 'void (bt_bdaddr_t *, bt_bdname_t *, uint32_t)' [-Wincompatible-pointer-types]
- pin_request_cb, /* pin_request_cb */
- ^~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:568:5: warning: incompatible pointer types initializing 'bond_state_changed_callback' (aka 'void (*)(bt_status_t, bt_bdaddr_t *, bt_bond_state_t)') with an expression of type 'void (bt_bdaddr_t *, bt_bdname_t *, uint32_t, bt_ssp_variant_t, uint32_t)' [-Wincompatible-pointer-types]
- ssp_request_cb, /* ssp_request_cb */
- ^~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:569:5: warning: incompatible pointer types initializing 'acl_state_changed_callback' (aka 'void (*)(bt_status_t, bt_bdaddr_t *, bt_acl_state_t)') with an expression of type 'void (bt_status_t, bt_bdaddr_t *, bt_bond_state_t)' [-Wincompatible-pointer-types]
- bond_state_changed_cb, /*bond_state_changed_cb */
- ^~~~~~~~~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:570:5: warning: incompatible pointer types initializing 'callback_thread_event' (aka 'void (*)(bt_cb_thread_evt)') with an expression of type 'void (bt_status_t, bt_bdaddr_t *, bt_acl_state_t)' [-Wincompatible-pointer-types]
- acl_state_changed, /* acl_state_changed_cb */
- ^~~~~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:572:5: warning: incompatible pointer types initializing 'le_test_mode_callback' (aka 'void (*)(bt_status_t, uint16_t)') with an expression of type 'void (uint16_t, uint8_t *, uint8_t)' [-Wincompatible-pointer-types]
- dut_mode_recv, /*dut_mode_recv_cb */
- ^~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:573:5: warning: excess elements in struct initializer
- NULL /*le_test_mode_cb*/
- ^~~~
- bionic/libc/kernel/common/linux/stddef.h:27:14: note: expanded from macro 'NULL'
- #define NULL ((void *)0)
- ^~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:613:40: error: no member named 'get_testapp_interface' in 'bt_interface_t'; did you mean 'get_profile_interface'?
- if ((sBtInterface)&&(sBtInterface->get_testapp_interface)) {
- ^~~~~~~~~~~~~~~~~~~~~
- get_profile_interface
- hardware/libhardware/include/hardware/bluetooth.h:442:19: note: 'get_profile_interface' declared here
- const void* (*get_profile_interface) (const char *profile_id);
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:30: error: no member named 'get_testapp_interface' in 'bt_interface_t'; did you mean 'get_profile_interface'?
- return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
- ^~~~~~~~~~~~~~~~~~~~~
- get_profile_interface
- hardware/libhardware/include/hardware/bluetooth.h:442:19: note: 'get_profile_interface' declared here
- const void* (*get_profile_interface) (const char *profile_id);
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:52: warning: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Wnon-literal-null-conversion]
- return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
- ^~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:16: warning: returning 'const void *' from a function with result type 'btl2cap_interface_t *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
- return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:623:20: warning: unused parameter 'p' [-Wunused-parameter]
- void do_quit(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:636:20: warning: unused parameter 'p' [-Wunused-parameter]
- void do_init(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:641:25: warning: unused parameter 'p' [-Wunused-parameter]
- BOOLEAN do_enable(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:652:26: warning: unused parameter 'p' [-Wunused-parameter]
- BOOLEAN do_disable(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:663:23: warning: unused parameter 'p' [-Wunused-parameter]
- void do_cleanup(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:685:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
- Arr[i] = tolower(Arr[i]);
- ^~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:685:29: warning: array subscript is of type 'char' [-Wchar-subscripts]
- Arr[i] = tolower(Arr[i]);
- ^~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:698:26: warning: array subscript is of type 'char' [-Wchar-subscripts]
- pbd_addr->address[i] = (k1<<4 | k2);
- ^~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:703:26: warning: unused parameter 'p' [-Wunused-parameter]
- void do_l2cap_init(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:744:32: warning: unused parameter 'p' [-Wunused-parameter]
- void do_l2cap_deregister(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:757:55: warning: incompatible pointer types passing 'uint8_t (*)[6]' to parameter of type 'UINT8 *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
- return sL2capInterface->ErtmConnectReq(g_PSM, &bd_addr.address, &t_ertm_info);
- ^~~~~~~~~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:776:35: warning: unused parameter 'p' [-Wunused-parameter]
- BOOLEAN do_l2cap_disconnect(char *p)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:877:24: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
- do_l2cap_DataWrite(tmpBuf, size);
- ^~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:781:32: note: passing argument to parameter 'p' here
- UINT8 do_l2cap_DataWrite(char *p , UINT32 len)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:893:28: warning: passing 'unsigned char [7]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
- do_l2cap_DataWrite(tmpBuffer, 5);
- ^~~~~~~~~
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:781:32: note: passing argument to parameter 'p' here
- UINT8 do_l2cap_DataWrite(char *p , UINT32 len)
- ^
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:895:53: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
- printf("Delaying before next send ...%d\n", g_delay);
- ~~ ^~~~~~~
- %lu
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:897:56: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
- printf("After Delay before next send ...%d\n", g_delay);
- ~~ ^~~~~~~
- %lu
- external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:400:13: warning: tentative array definition assumed to have one element
- const t_cmd console_cmd_list[];
- ^
- 52 warnings and 2 errors generated.
- make: *** [/home/reconfreak/android/cfx/out/target/product/d800/obj/EXECUTABLES/l2test_ertm_intermediates/l2test_ertm.o] Error 1
- make: *** Waiting for unfinished jobs....
- target thumb C++: libc_nomalloc <= bionic/libc/bionic/pthread_key.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement