Skip to content

Commit 748a4d6

Browse files
hujun260xiaoxiang781216
authored andcommitted
fix compile error
Error: smp_call.c:36:31: error: 'g_call_data' defined but not used [-Werror=unused-variable] 36 | static struct smp_call_data_s g_call_data; | ^~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [/github/workspace/sources/apps/Application.mk:237: smp_call.c.github.workspace.sources.apps.testing.ostest.o] Error 1 make[2]: Target 'all' not remade because of errors. make[1]: *** [Makefile:52: /github/workspace/sources/apps/testing/ostest_all] Error 2 make[1]: Target 'all' not remade because of errors. make: *** [tools/LibTargets.mk:248: /github/workspace/sources/apps/libapps.a] Error 2 make: Target 'all' not remade because of errors. /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory Signed-off-by: hujun5 <[email protected]>
1 parent a320e6d commit 748a4d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/ostest/smp_call.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929

3030
#include <nuttx/sched.h>
3131

32+
#if defined(CONFIG_SMP) && defined(CONFIG_BUILD_FLAT)
33+
3234
/****************************************************************************
3335
* Private Data
3436
****************************************************************************/
3537

3638
static struct smp_call_data_s g_call_data;
3739

38-
#if defined(CONFIG_SMP) && defined(CONFIG_BUILD_FLAT)
3940
/****************************************************************************
4041
* Private Functions
4142
****************************************************************************/

0 commit comments

Comments
 (0)