From 1b8c4c1b45482363e29bd4cca483d84645f8ac9d Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 22 Jan 2013 16:32:29 -0700 Subject: [PATCH] build: quiet build warnings for "gcc -Wall" Signed-off-by: Andreas Dilger Signed-off-by: "Theodore Ts'o" --- e2fsck/recovery.c | 2 +- lib/ext2fs/csum.c | 4 +--- lib/ext2fs/inode.c | 1 - misc/tune2fs.c | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) 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)) && \ -- 1.8.3.1