Reacted on -Wextra -Wno-unused-parameter warnings of gcc for tree.c
This commit is contained in:
parent
8d3a0a6a9e
commit
1334027a83
@ -478,12 +478,12 @@ int iso_tree_remove_exclude(IsoImage *image, const char *path)
|
|||||||
return ISO_NULL_POINTER;
|
return ISO_NULL_POINTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < image->nexcludes; ++i) {
|
for (i = 0; (int) i < image->nexcludes; ++i) {
|
||||||
if (strcmp(image->excludes[i], path) == 0) {
|
if (strcmp(image->excludes[i], path) == 0) {
|
||||||
/* exclude found */
|
/* exclude found */
|
||||||
free(image->excludes[i]);
|
free(image->excludes[i]);
|
||||||
--image->nexcludes;
|
--image->nexcludes;
|
||||||
for (j = i; j < image->nexcludes; ++j) {
|
for (j = i; (int) j < image->nexcludes; ++j) {
|
||||||
image->excludes[j] = image->excludes[j+1];
|
image->excludes[j] = image->excludes[j+1];
|
||||||
}
|
}
|
||||||
image->excludes = realloc(image->excludes, image->nexcludes *
|
image->excludes = realloc(image->excludes, image->nexcludes *
|
||||||
@ -847,7 +847,7 @@ int iso_add_dir_src_rec(IsoImage *image, IsoDir *parent, IsoFileSource *dir)
|
|||||||
ret = iso_dir_insert(parent, new, pos, replace);
|
ret = iso_dir_insert(parent, new, pos, replace);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
iso_node_unref(new);
|
iso_node_unref(new);
|
||||||
if (ret != ISO_NODE_NAME_NOT_UNIQUE) {
|
if (ret != (int) ISO_NODE_NAME_NOT_UNIQUE) {
|
||||||
/* error */
|
/* error */
|
||||||
goto dir_rec_continue;
|
goto dir_rec_continue;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user