mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 07:43:38 +00:00
example/panu_demo: fix unused argument warnings
This commit is contained in:
parent
c9bf9c270c
commit
c83b02157f
@ -269,6 +269,9 @@ static int tap_alloc(char *dev, bd_addr_t bd_addr)
|
||||
/* LISTING_START(processTapData): Process incoming network packets */
|
||||
static void process_tap_dev_data(btstack_data_source_t *ds, btstack_data_source_callback_type_t callback_type)
|
||||
{
|
||||
UNUSED(ds);
|
||||
UNUSED(callback_type);
|
||||
|
||||
ssize_t len;
|
||||
len = read(ds->fd, network_buffer, sizeof(network_buffer));
|
||||
if (len <= 0){
|
||||
@ -317,6 +320,10 @@ static char * get_string_from_data_element(uint8_t * element){
|
||||
*/
|
||||
static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size) {
|
||||
|
||||
UNUSED(packet_type);
|
||||
UNUSED(channel);
|
||||
UNUSED(size);
|
||||
|
||||
des_iterator_t des_list_it;
|
||||
des_iterator_t prot_it;
|
||||
char *str;
|
||||
@ -424,6 +431,8 @@ static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel
|
||||
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
|
||||
{
|
||||
/* LISTING_PAUSE */
|
||||
UNUSED(channel);
|
||||
|
||||
int rc;
|
||||
uint8_t event;
|
||||
bd_addr_t event_addr;
|
||||
@ -561,6 +570,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
int btstack_main(int argc, const char * argv[]);
|
||||
int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
printf("Client HCI init done\n");
|
||||
|
||||
panu_setup();
|
||||
|
Loading…
x
Reference in New Issue
Block a user