Skip to content

Commit aa23c80

Browse files
committed
Merge branch 'fix/vfs_compiler_warings' into 'master'
fix(components): Compiler reports some warnings Closes IDFGH-14289 See merge request espressif/esp-idf!36692
2 parents 1e8a48d + 4da9b86 commit aa23c80

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

components/fatfs/diskio/diskio_rawflash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ static DRESULT ff_raw_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT cou
9191

9292
static DRESULT ff_raw_ioctl (BYTE pdrv, BYTE cmd, void *buff)
9393
{
94-
const esp_partition_t* part = s_ff_raw_handles[pdrv];
9594
ESP_LOGV(TAG, "ff_raw_ioctl: cmd=%in", cmd);
96-
assert(part);
95+
assert(s_ff_raw_handles[pdrv]);
96+
9797
switch (cmd) {
9898
case CTRL_SYNC:
9999
return RES_OK;

components/fatfs/vfs/vfs_fat_sdmmc.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,12 @@ esp_err_t esp_vfs_fat_sdcard_format_cfg(const char *base_path, sdmmc_card_t *car
500500

501501
//format
502502
uint32_t id = FF_VOLUMES;
503-
bool found = s_get_context_id_by_card(card, &id);
504-
assert(found);
503+
504+
{
505+
const bool found = s_get_context_id_by_card(card, &id);
506+
(void)found;
507+
assert(found);
508+
}
505509

506510
if (cfg) {
507511
s_ctx[id]->mount_config = *cfg;

0 commit comments

Comments
 (0)