Remove some unused variables
authorEric Biggers <ebiggers3@gmail.com>
Thu, 23 May 2013 16:35:21 +0000 (11:35 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 23 May 2013 16:35:21 +0000 (11:35 -0500)
src/dentry.c
src/split.c

index d8c2fd0..02db923 100644 (file)
@@ -2380,7 +2380,6 @@ do_iterate_dir_tree(WIMStruct *wim,
                    wimlib_iterate_dir_tree_callback_t cb,
                    void *user_ctx)
 {
                    wimlib_iterate_dir_tree_callback_t cb,
                    void *user_ctx)
 {
-       u32 level;
        struct wimlib_dir_entry *wdentry;
        int ret = WIMLIB_ERR_NOMEM;
 
        struct wimlib_dir_entry *wdentry;
        int ret = WIMLIB_ERR_NOMEM;
 
@@ -2443,8 +2442,6 @@ wimlib_iterate_dir_tree(WIMStruct *wim, int image, const tchar *path,
                        int flags,
                        wimlib_iterate_dir_tree_callback_t cb, void *user_ctx)
 {
                        int flags,
                        wimlib_iterate_dir_tree_callback_t cb, void *user_ctx)
 {
-       int ret;
-       struct wim_dentry *dentry;
        struct image_iterate_dir_tree_ctx ctx = {
                .path = path,
                .flags = flags,
        struct image_iterate_dir_tree_ctx ctx = {
                .path = path,
                .flags = flags,
index 25ca3cd..296b03f 100644 (file)
@@ -220,8 +220,6 @@ wimlib_split(WIMStruct *w, const tchar *swm_name,
        for (int i = 1; i <= total_parts; i++) {
                const tchar *part_name;
                int part_fd;
        for (int i = 1; i <= total_parts; i++) {
                const tchar *part_name;
                int part_fd;
-               le16 part_data[2];
-               size_t bytes_written;
                int ret2;
 
                if (i == 1) {
                int ret2;
 
                if (i == 1) {