From a700e7c210841587ef22aa79fa06dd542e0850ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Rohl=C3=ADnek?= Date: Wed, 29 Jan 2025 09:08:44 +0100 Subject: [PATCH] fix(storage/fatfs): use standard flex-array fields, instead of extension --- components/fatfs/vfs/vfs_fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fatfs/vfs/vfs_fat.c b/components/fatfs/vfs/vfs_fat.c index e64f63c8ff..b0b32fa9dc 100644 --- a/components/fatfs/vfs/vfs_fat.c +++ b/components/fatfs/vfs/vfs_fat.c @@ -48,7 +48,7 @@ typedef struct { char dir_path[FILENAME_MAX]; /* variable to store path of opened directory*/ struct cached_data cached_fileinfo; #endif - FIL files[0]; /* array with max_files entries; must be the final member of the structure */ + FIL files[]; /* array with max_files entries; must be the final member of the structure */ } vfs_fat_ctx_t; typedef struct {