From bb90a366cb0f6d8213832c136271abf96da44e99 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 22 Mar 2022 22:30:55 +0100 Subject: [PATCH] test: fix compile warnings --- platform/posix/btstack_audio_portaudio.c | 2 ++ test/classic-oob-pairing/spp_counter.c | 6 ------ test/sdp/Makefile | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/platform/posix/btstack_audio_portaudio.c b/platform/posix/btstack_audio_portaudio.c index 732c45805..77cd25fc9 100644 --- a/platform/posix/btstack_audio_portaudio.c +++ b/platform/posix/btstack_audio_portaudio.c @@ -230,6 +230,7 @@ static int btstack_audio_portaudio_sink_init( const PaDeviceInfo *outputDeviceInfo; outputDeviceInfo = Pa_GetDeviceInfo( theOutputParameters.device ); log_info("PortAudio: sink device: %s", outputDeviceInfo->name); + UNUSED(outputDeviceInfo); /* -- setup stream -- */ err = Pa_OpenStream( @@ -296,6 +297,7 @@ static int btstack_audio_portaudio_source_init( const PaDeviceInfo *inputDeviceInfo; inputDeviceInfo = Pa_GetDeviceInfo( theInputParameters.device ); log_info("PortAudio: source device: %s", inputDeviceInfo->name); + UNUSED(inputDeviceInfo); /* -- setup stream -- */ err = Pa_OpenStream( diff --git a/test/classic-oob-pairing/spp_counter.c b/test/classic-oob-pairing/spp_counter.c index 29e3925a9..32d187b37 100644 --- a/test/classic-oob-pairing/spp_counter.c +++ b/test/classic-oob-pairing/spp_counter.c @@ -178,8 +178,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack /* LISTING_PAUSE */ bd_addr_t event_addr; - uint8_t rfcomm_channel_nr; - uint16_t mtu; switch (packet_type) { case HCI_EVENT_PACKET: @@ -201,9 +199,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack case RFCOMM_EVENT_INCOMING_CONNECTION: // data: event (8), len(8), address(48), channel (8), rfcomm_cid (16) rfcomm_event_incoming_connection_get_bd_addr(packet, event_addr); - rfcomm_channel_nr = rfcomm_event_incoming_connection_get_server_channel(packet); rfcomm_channel_id = rfcomm_event_incoming_connection_get_rfcomm_cid(packet); - log_info("RFCOMM channel %u requested for %s\n", rfcomm_channel_nr, bd_addr_to_str(event_addr)); rfcomm_accept_connection(rfcomm_channel_id); break; @@ -213,8 +209,6 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack log_info("RFCOMM channel open failed, status %u\n", rfcomm_event_channel_opened_get_status(packet)); } else { rfcomm_channel_id = rfcomm_event_channel_opened_get_rfcomm_cid(packet); - mtu = rfcomm_event_channel_opened_get_max_frame_size(packet); - log_info("RFCOMM channel open succeeded. New RFCOMM Channel ID %u, max frame size %u\n", rfcomm_channel_id, mtu); } break; case RFCOMM_EVENT_CAN_SEND_NOW: diff --git a/test/sdp/Makefile b/test/sdp/Makefile index 0da698a03..405af7041 100644 --- a/test/sdp/Makefile +++ b/test/sdp/Makefile @@ -28,6 +28,7 @@ COMMON = \ btstack_memory_pool.c \ device_id_server.c \ avdtp.c \ + a2dp.c \ a2dp_source.c \ a2dp_sink.c \ avdtp.c \