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/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new e25a303 examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable] e25a303 is described below commit e25a303a738e4926fc55b4ab2f91910944a4d9c0 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Thu May 13 10:16:45 2021 +0800 examples/elf: Fix error: unused variable 'desc' [-Werror=unused-variable] Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- examples/elf/elf_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/elf/elf_main.c b/examples/elf/elf_main.c index 352f835..94e3454 100644 --- a/examples/elf/elf_main.c +++ b/examples/elf/elf_main.c @@ -203,10 +203,12 @@ 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 */