From: Andreas Dilger Date: Tue, 22 Jan 2013 23:32:29 +0000 (-0700) Subject: build: quiet build warnings for "gcc -Wall" X-Git-Tag: v1.43-WIP-2015-05-18~400 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1b8c4c1b45482363e29bd4cca483d84645f8ac9d;p=tools%2Fe2fsprogs.git build: quiet build warnings for "gcc -Wall" Signed-off-by: Andreas Dilger Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c index 69ed68a..ae3d238 100644 --- a/e2fsck/recovery.c +++ b/e2fsck/recovery.c @@ -595,7 +595,7 @@ static int do_one_pass(journal_t *journal, success = -EIO; printk(KERN_ERR "JBD: Invalid " "checksum recovering " - "block %ld in log\n", + "block %lld in log\n", blocknr); continue; } diff --git a/lib/ext2fs/csum.c b/lib/ext2fs/csum.c index 6c18513..ebd544f 100644 --- a/lib/ext2fs/csum.c +++ b/lib/ext2fs/csum.c @@ -113,10 +113,8 @@ static errcode_t ext2fs_ext_attr_block_csum(ext2_filsys fs, ext2_ino_t inum, struct ext2_ext_attr_header *hdr, __u32 *crc) { - errcode_t retval; char *buf = (char *)hdr; - __u32 gen, old_crc = hdr->h_checksum; - struct ext2_inode inode; + __u32 old_crc = hdr->h_checksum; hdr->h_checksum = 0; block = ext2fs_cpu_to_le64(block); diff --git a/lib/ext2fs/inode.c b/lib/ext2fs/inode.c index f877146..f46c407 100644 --- a/lib/ext2fs/inode.c +++ b/lib/ext2fs/inode.c @@ -95,7 +95,6 @@ static errcode_t create_icache(ext2_filsys fs) { int i; errcode_t retval; - void *p; if (fs->icache) return 0; diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 66fbc54..c1ecae8 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -768,9 +768,8 @@ static void disable_uninit_bg(ext2_filsys fs, __u32 csum_feature_flag) static int update_feature_set(ext2_filsys fs, char *features) { struct ext2_super_block *sb = fs->super; - struct ext2_group_desc *gd; __u32 old_features[3]; - int i, type_err; + int type_err; unsigned int mask_err; #define FEATURE_ON(type, mask) (!(old_features[(type)] & (mask)) && \