Skip to content

Commit 758ed55

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 74b0546 commit 758ed55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/sotest/sotest_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ extern const int g_sot_nexports;
102102

103103
int main(int argc, FAR char *argv[])
104104
{
105+
#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS
105106
char devname[32];
107+
#endif
106108
#if CONFIG_MODLIB_MAXDEPEND > 0
107109
FAR void *handle1;
108110
#endif

0 commit comments

Comments
 (0)