forked from espressif/esp-idf
Merge branch 'fix/vfs_compiler_warings' into 'master'
fix(components): Compiler reports some warnings Closes IDFGH-14289 See merge request espressif/esp-idf!36692
This commit is contained in:
@@ -91,9 +91,9 @@ static DRESULT ff_raw_write (BYTE pdrv, const BYTE *buff, DWORD sector, UINT cou
|
|||||||
|
|
||||||
static DRESULT ff_raw_ioctl (BYTE pdrv, BYTE cmd, void *buff)
|
static DRESULT ff_raw_ioctl (BYTE pdrv, BYTE cmd, void *buff)
|
||||||
{
|
{
|
||||||
const esp_partition_t* part = s_ff_raw_handles[pdrv];
|
|
||||||
ESP_LOGV(TAG, "ff_raw_ioctl: cmd=%in", cmd);
|
ESP_LOGV(TAG, "ff_raw_ioctl: cmd=%in", cmd);
|
||||||
assert(part);
|
assert(s_ff_raw_handles[pdrv]);
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case CTRL_SYNC:
|
case CTRL_SYNC:
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
|
@@ -500,8 +500,12 @@ esp_err_t esp_vfs_fat_sdcard_format_cfg(const char *base_path, sdmmc_card_t *car
|
|||||||
|
|
||||||
//format
|
//format
|
||||||
uint32_t id = FF_VOLUMES;
|
uint32_t id = FF_VOLUMES;
|
||||||
bool found = s_get_context_id_by_card(card, &id);
|
|
||||||
assert(found);
|
{
|
||||||
|
const bool found = s_get_context_id_by_card(card, &id);
|
||||||
|
(void)found;
|
||||||
|
assert(found);
|
||||||
|
}
|
||||||
|
|
||||||
if (cfg) {
|
if (cfg) {
|
||||||
s_ctx[id]->mount_config = *cfg;
|
s_ctx[id]->mount_config = *cfg;
|
||||||
|
Reference in New Issue
Block a user