fix(bt): fix unused-but-set-variable warnings

This commit is contained in:
Alexey Lapshin
2026-07-13 12:01:15 +07:00
parent 683088e89f
commit 46ddc0f4b2
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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;
@@ -2350,6 +2350,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) ) {