From b55705e0ba83147f16a3abb955f3761f78b7db94 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Sun, 27 Jan 2013 22:29:01 -0500 Subject: [PATCH] build: quiet build warnings for "gcc -Wall" Signed-off-by: Andreas Dilger Signed-off-by: "Theodore Ts'o" --- config/parse-types.sh | 4 ++-- lib/ext2fs/alloc_sb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2