You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/05/13 09:54:35 UTC
[incubator-nuttx-apps] branch master updated: examples/module: Fix
error: unused variable 'desc'
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 e352bdc examples/module: Fix error: unused variable 'desc'
e352bdc is described below
commit e352bdca4fafdd15964f57241f9267481422453a
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Thu May 13 17:24:47 2021 +0800
examples/module: Fix error: unused variable 'desc'
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
examples/module/module_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/examples/module/module_main.c b/examples/module/module_main.c
index fcf07cf..5102bb8 100644
--- a/examples/module/module_main.c
+++ b/examples/module/module_main.c
@@ -151,6 +151,10 @@ int main(int argc, FAR char *argv[])
#ifdef CONFIG_BUILD_FLAT
struct boardioc_symtab_s symdesc;
#endif
+#if defined(CONFIG_EXAMPLES_MODULE_BUILTINFS) && \
+ defined(CONFIG_EXAMPLES_MODULE_ROMFS)
+ struct boardioc_romdisk_s desc;
+#endif
#if defined(CONFIG_EXAMPLES_MODULE_FSMOUNT) && \
defined(CONFIG_EXAMPLES_MODULE_FSREMOVEABLE)
struct stat buf;
@@ -160,7 +164,6 @@ int main(int argc, FAR char *argv[])
ssize_t nbytes;
int ret;
int fd;
- struct boardioc_romdisk_s desc;
#ifdef CONFIG_BUILD_FLAT
/* Set the OS symbol table indirectly through the boardctl() */