From e3ee42a534a703c942c431b7019451aa82c73889 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 29 Jan 2018 12:20:27 +0100 Subject: [PATCH] avrcp: fix compile warning --- src/classic/avrcp_browsing_controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classic/avrcp_browsing_controller.c b/src/classic/avrcp_browsing_controller.c index eed024097..47f347266 100644 --- a/src/classic/avrcp_browsing_controller.c +++ b/src/classic/avrcp_browsing_controller.c @@ -442,6 +442,7 @@ static void avrcp_browsing_controller_packet_handler(uint8_t packet_type, uint16 avrcp_pdu_id_t pdu_id = packet[pos++]; uint16_t length = big_endian_read_16(packet, pos); pos += 2; + UNUSED(length); // if (browsing_connection->num_packets > 1) // if (browsing_connection->num_packets == 1 && (pos + length > size)){ // printf("pos + length > size, %d, %d, %d \n", pos, length, size);