From: Andreas Dilger Date: Mon, 28 Jan 2013 03:29:01 +0000 (-0500) Subject: build: quiet build warnings for "gcc -Wall" X-Git-Tag: v1.42.8~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b55705e0ba83147f16a3abb955f3761f78b7db94;p=thirdparty%2Fe2fsprogs.git build: quiet build warnings for "gcc -Wall" Signed-off-by: Andreas Dilger Signed-off-by: "Theodore Ts'o" --- diff --git a/config/parse-types.sh b/config/parse-types.sh index c02d8cb9d..00371ff94 100755 --- a/config/parse-types.sh +++ b/config/parse-types.sh @@ -26,7 +26,7 @@ cp asm_types.h asm_types.c cat >> asm_types.c < #include -main(int argc, char **argv) +int main(int argc, char **argv) { #ifdef __U8_TYPEDEF if (sizeof(__U8_TYPEDEF) != 1) { @@ -102,7 +102,7 @@ main(int argc, char **argv) #else #warning __S64_TYPEDEF not defined #endif - exit(0); + return 0; } EOF diff --git a/lib/ext2fs/alloc_sb.c b/lib/ext2fs/alloc_sb.c index 868d724d0..223ec5168 100644 --- a/lib/ext2fs/alloc_sb.c +++ b/lib/ext2fs/alloc_sb.c @@ -47,7 +47,7 @@ int ext2fs_reserve_super_and_bgd(ext2_filsys fs, { blk64_t super_blk, old_desc_blk, new_desc_blk; blk_t used_blks; - int j, old_desc_blocks, num_blocks; + int old_desc_blocks, num_blocks; ext2fs_super_and_bgd_loc2(fs, group, &super_blk, &old_desc_blk, &new_desc_blk, &used_blks);