Browse Source

remove some compiler warning.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1467 bbd45198-f89e-11dd-88c7-29a3b14d5316
mbbill@gmail.com 14 years ago
parent
commit
4e5e1f8f55
2 changed files with 4 additions and 1 deletions
  1. 3 1
      components/finsh/cmd.c
  2. 1 0
      components/libdl/dlopen.c

+ 3 - 1
components/finsh/cmd.c

@@ -387,6 +387,9 @@ int list_module(void)
 		rt_kprintf("%-16s ", module->parent.name);
 		rt_kprintf("%-16s ", module->parent.name);
 		rt_kprintf("%-04d \n", module->nref);
 		rt_kprintf("%-04d \n", module->nref);
 	}
 	}
+
+	return 0;
+
 }
 }
 
 
 FINSH_FUNCTION_EXPORT(list_module, list module in system)
 FINSH_FUNCTION_EXPORT(list_module, list module in system)
@@ -395,7 +398,6 @@ int list_mod_detail(const char* name)
 {
 {
 	int i;
 	int i;
 	struct rt_module *module;
 	struct rt_module *module;
-	struct rt_list_node *list, *node;
 	
 	
 	/* find module */
 	/* find module */
 	if((module = rt_module_find(name)) != RT_NULL)
 	if((module = rt_module_find(name)) != RT_NULL)

+ 1 - 0
components/libdl/dlopen.c

@@ -14,6 +14,7 @@
  
  
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtm.h>
 #include <rtm.h>
+#include <string.h>
 
 
 #define MODULE_ROOT_DIR		"/module/lib"
 #define MODULE_ROOT_DIR		"/module/lib"