From 1334027a832370fa47b7a721217ff66884b6a27e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 21 May 2011 23:19:34 +0200 Subject: [PATCH] Reacted on -Wextra -Wno-unused-parameter warnings of gcc for tree.c --- libisofs/tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libisofs/tree.c b/libisofs/tree.c index 655e180..60b8e23 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -478,12 +478,12 @@ int iso_tree_remove_exclude(IsoImage *image, const char *path) 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) { /* exclude found */ free(image->excludes[i]); --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 = 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); if (ret < 0) { iso_node_unref(new); - if (ret != ISO_NODE_NAME_NOT_UNIQUE) { + if (ret != (int) ISO_NODE_NAME_NOT_UNIQUE) { /* error */ goto dir_rec_continue; } else {