examples/sotest: Fix warning of unused variable 'devname'
Config: +CONFIG_EXAMPLES_SOTEST=y +CONFIG_EXAMPLES_SOTEST_BINDIR="/data" Log: sotest_main.c: In function 'sotest_main': sotest_main.c:105:8: error: unused variable 'devname' [-Werror=unused-variable] 105 | char devname[32]; | ^~~~~~~ Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
74b05468d6
commit
758ed55722
@ -102,7 +102,9 @@ extern const int g_sot_nexports;
|
|||||||
|
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, FAR char *argv[])
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS
|
||||||
char devname[32];
|
char devname[32];
|
||||||
|
#endif
|
||||||
#if CONFIG_MODLIB_MAXDEPEND > 0
|
#if CONFIG_MODLIB_MAXDEPEND > 0
|
||||||
FAR void *handle1;
|
FAR void *handle1;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user