examples/module: Fix error: unused variable 'desc'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
e25a303a73
commit
e352bdca4f
@ -151,6 +151,10 @@ int main(int argc, FAR char *argv[])
|
|||||||
#ifdef CONFIG_BUILD_FLAT
|
#ifdef CONFIG_BUILD_FLAT
|
||||||
struct boardioc_symtab_s symdesc;
|
struct boardioc_symtab_s symdesc;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_EXAMPLES_MODULE_BUILTINFS) && \
|
||||||
|
defined(CONFIG_EXAMPLES_MODULE_ROMFS)
|
||||||
|
struct boardioc_romdisk_s desc;
|
||||||
|
#endif
|
||||||
#if defined(CONFIG_EXAMPLES_MODULE_FSMOUNT) && \
|
#if defined(CONFIG_EXAMPLES_MODULE_FSMOUNT) && \
|
||||||
defined(CONFIG_EXAMPLES_MODULE_FSREMOVEABLE)
|
defined(CONFIG_EXAMPLES_MODULE_FSREMOVEABLE)
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
@ -160,7 +164,6 @@ int main(int argc, FAR char *argv[])
|
|||||||
ssize_t nbytes;
|
ssize_t nbytes;
|
||||||
int ret;
|
int ret;
|
||||||
int fd;
|
int fd;
|
||||||
struct boardioc_romdisk_s desc;
|
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_FLAT
|
#ifdef CONFIG_BUILD_FLAT
|
||||||
/* Set the OS symbol table indirectly through the boardctl() */
|
/* Set the OS symbol table indirectly through the boardctl() */
|
||||||
|
Loading…
Reference in New Issue
Block a user