Browse Source

Fix some warnings

Serj Kalichev 9 years ago
parent
commit
ae7c3b8d46
3 changed files with 4 additions and 4 deletions
  1. 2 1
      clish/ptype.h
  2. 2 2
      clish/shell/shell_dump.c
  3. 0 1
      clish/shell/shell_new.c

+ 2 - 1
clish/ptype.h

@@ -116,7 +116,8 @@ char *clish_ptype_translate(const clish_ptype_t * instance, const char *text);
  */
 void clish_ptype_word_generator(clish_ptype_t * instance,
 	lub_argv_t *matches, const char *text);
-void clish_ptype_dump(clish_ptype_t * instance);
+void clish_ptype_dump(clish_ptype_t *instance);
+void clish_ptype_xml2c(clish_ptype_t *instance);
 /*-----------------
  * attributes
  *----------------- */

+ 2 - 2
clish/shell/shell_dump.c

@@ -51,9 +51,9 @@ void clish_shell_dump(clish_shell_t * this)
 /*--------------------------------------------------------- */
 void clish_shell_xml2c(clish_shell_t *this)
 {
-	clish_view_t *v;
+//	clish_view_t *v;
 	clish_ptype_t *t;
-	clish_var_t *var;
+//	clish_var_t *var;
 	lub_bintree_iterator_t iter;
 
 	printf("#include \"private.h\"\n"

+ 0 - 1
clish/shell/shell_new.c

@@ -18,7 +18,6 @@
 static void clish_shell_init(clish_shell_t * this,
 	FILE * istream, FILE * ostream, bool_t stop_on_error)
 {
-	clish_ptype_t *tmp_ptype = NULL;
 	int i;
 
 	/* initialise the tree of views */