This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4b7b56a096a4021d9ddda951f1c0a7a39facae19 Author: zhaoxingyu1 <[email protected]> AuthorDate: Wed Mar 5 13:37:46 2025 +0800 mtd/nvs: Fix the issue of compilation failure using the tasking compiler the tasking compiler reports the error: expression must be constant in line 510 Signed-off-by: zhaoxingyu1 <[email protected]> --- drivers/mtd/mtd_config_nvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtd_config_nvs.c b/drivers/mtd/mtd_config_nvs.c index adf66be7721..1fddec9bf49 100644 --- a/drivers/mtd/mtd_config_nvs.c +++ b/drivers/mtd/mtd_config_nvs.c @@ -507,7 +507,7 @@ static int nvs_flash_direct_cmp(FAR struct nvs_fs *fs, uint32_t addr1, uint32_t addr2, size_t len) { uint8_t buf1[nvs_buffer_size(fs)]; - uint8_t buf2[sizeof(buf1)]; + uint8_t buf2[nvs_buffer_size(fs)]; size_t bytes_to_cmp; int rc;
