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:
wangjianyu3 2024-03-06 22:30:46 +08:00 committed by Xiang Xiao
parent 74b05468d6
commit 758ed55722

View File

@ -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