diff --git a/examples/elf/elf_main.c b/examples/elf/elf_main.c index 352f83500b..94e3454ffc 100644 --- a/examples/elf/elf_main.c +++ b/examples/elf/elf_main.c @@ -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 */