Skip to content

Commit

Permalink
examples/elf: Fix error: unused variable 'desc' [-Werror=unused-varia…
Browse files Browse the repository at this point in the history
…ble]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 committed May 13, 2021
1 parent f0c044a commit e25a303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/elf/elf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit e25a303

Please sign in to comment.