diff --git a/components/bt/common/osi/config.c b/components/bt/common/osi/config.c index 38c981bc7b8..89f50651d8a 100644 --- a/components/bt/common/osi/config.c +++ b/components/bt/common/osi/config.c @@ -20,6 +20,7 @@ #include "osi/allocator.h" #include "osi/config.h" #include "osi/list.h" +#include "osi/osi.h" #define CONFIG_FILE_MAX_SIZE (1536)//1.5k #define CONFIG_FILE_DEFAULE_LENGTH (2048) @@ -612,7 +613,7 @@ static bool config_parse(nvs_handle_t fp, config_t *config) assert(config != NULL); esp_err_t err; - int line_num = 0; + UNUSED_ATTR int line_num = 0; int err_code = 0; uint16_t i = 0; size_t length = CONFIG_FILE_DEFAULE_LENGTH; diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_api.c b/components/bt/host/bluedroid/stack/l2cap/l2c_api.c index 35953afcd11..183b708b965 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_api.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_api.c @@ -2358,6 +2358,8 @@ UINT16 L2CA_FlushChannel (UINT16 lcid, UINT16 num_to_flush) num_flushed1 = 0, num_flushed2 = 0; + UNUSED(num_flushed1); + p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); if ( !p_ccb || ((p_lcb = p_ccb->p_lcb) == NULL) ) {