From 0d89e5acea99fc00d9b834eab6d228c47a71920a Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Sun, 27 Jan 2013 22:41:44 -0500 Subject: [PATCH] Fix warnings about functions not returning a value Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/gen_bitmap64.c | 2 +- resize/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c index 82a552d..7265f94 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 4cbfe69..b648a15 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)) { -- 1.8.3.1