examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-05-13 10:16:45 +08:00 committed by Xiang Xiao
parent f0c044adb1
commit e25a303a73

View File

@ -202,11 +202,13 @@ int main(int argc, FAR char *argv[])
{
#ifdef CONFIG_EXAMPLES_ELF_FSREMOVEABLE
struct stat buf;
#endif
#ifdef CONFIG_EXAMPLES_ELF_ROMFS
struct boardioc_romdisk_s desc;
#endif
FAR char *args[1];
int ret;
int i;
struct boardioc_romdisk_s desc;
/* Initialize the memory monitor */