projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f1818b
)
fix compilation warning on init
author
sunghan
<sh924.chang@samsung.com>
Mon, 27 Mar 2017 11:07:10 +0000
(20:07 +0900)
committer
sunghan
<sh924.chang@samsung.com>
Mon, 27 Mar 2017 11:07:10 +0000
(20:07 +0900)
The pid variable is only used when TASH or User Workqueue is enabled.
apps/system/init/init.c
patch
|
blob
|
history
diff --git
a/apps/system/init/init.c
b/apps/system/init/init.c
index
dafb3e9
..
63647be
100644
(file)
--- a/
apps/system/init/init.c
+++ b/
apps/system/init/init.c
@@
-82,7
+82,9
@@
int main(int argc, FAR char *argv[])
int preapp_start(int argc, char *argv[])
#endif
{
+#if defined(CONFIG_LIB_USRWORK) || defined(CONFIG_TASH)
int pid;
+#endif
#ifdef CONFIG_BUILD_PROTECTED
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_PROCFS)
@@
-122,6
+124,10
@@
int preapp_start(int argc, char *argv[])
}
#endif
+#if defined(CONFIG_LIB_USRWORK) || defined(CONFIG_TASH)
error_out:
return pid;
+#else
+ return 0;
+#endif
}