mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(bt): fix unused-but-set-variable warnings
This commit is contained in:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user