Whamcloud - gitweb
Fix warnings about functions not returning a value
authorPhilipp Thomas <pth@suse.de>
Mon, 28 Jan 2013 03:41:44 +0000 (22:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Jan 2013 03:41:50 +0000 (22:41 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/gen_bitmap64.c
resize/main.c

index 82a552d..7265f94 100644 (file)
@@ -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);
index 4cbfe69..b648a15 100644 (file)
@@ -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)) {