From: Philipp Thomas Date: Mon, 28 Jan 2013 03:41:44 +0000 (-0500) Subject: Fix warnings about functions not returning a value X-Git-Tag: v1.42.8~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d89e5acea99fc00d9b834eab6d228c47a71920a;p=thirdparty%2Fe2fsprogs.git Fix warnings about functions not returning a value Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c index 82a552d30..7265f94c3 100644 --- a/lib/ext2fs/gen_bitmap64.c +++ b/lib/ext2fs/gen_bitmap64.c @@ -657,7 +657,7 @@ int ext2fs_test_block_bitmap_range2(ext2fs_block_bitmap bmap, if ((block < bmap->start) || (block+num-1 > bmap->end)) { ext2fs_warn_bitmap(EXT2_ET_BAD_BLOCK_TEST, block, bmap->description); - return; + return EINVAL; } return bmap->bitmap_ops->test_clear_bmap_extent(bmap, block, num); diff --git a/resize/main.c b/resize/main.c index 4cbfe69bd..b648a15e4 100644 --- a/resize/main.c +++ b/resize/main.c @@ -147,7 +147,7 @@ static void determine_fs_stride(ext2_filsys fs) #endif } -static bigalloc_check(ext2_filsys fs, int force) +static void bigalloc_check(ext2_filsys fs, int force) { if (!force && EXT2_HAS_RO_COMPAT_FEATURE(fs->super, EXT4_FEATURE_RO_COMPAT_BIGALLOC)) {