Reacted on -Wextra -Wno-unused-parameter warnings of gcc for ecma119_tree.c

This commit is contained in:
Thomas Schmitt 2011-05-21 23:10:21 +02:00
parent b51232fef4
commit 944b5a6152
1 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ void ecma119_node_free(Ecma119Node *node)
return; return;
} }
if (node->type == ECMA119_DIR) { if (node->type == ECMA119_DIR) {
int i; size_t i;
for (i = 0; i < node->info.dir->nchildren; i++) { for (i = 0; i < node->info.dir->nchildren; i++) {
ecma119_node_free(node->info.dir->children[i]); ecma119_node_free(node->info.dir->children[i]);
} }
@ -643,7 +643,7 @@ int mangle_single_dir(Ecma119Image *img, Ecma119Node *dir, int max_file_len,
max = max_file_len - digits; max = max_file_len - digits;
} }
name = full_name; name = full_name;
if (max < strlen(name)) { if ((size_t) max < strlen(name)) {
name[max] = '\0'; name[max] = '\0';
} }
/* let ext be an empty string */ /* let ext be an empty string */