]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ext2fs: fix ext2fs_warn_bitmap32() return warning
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 11 Jun 2011 15:33:02 +0000 (11:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jun 2011 15:33:02 +0000 (11:33 -0400)
This was reported as "control reaches end of non-void function",
but comparing to other similar functions it should be a void
function.  Since it is only declared in the "private" ext2fsP.h
header, it should be OK to change the function prototype.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fsP.h
lib/ext2fs/gen_bitmap64.c

index ab9ee76677bf9185d12506ee96290c60c086f8b7..b182d7fe65ddc704a77559b90ae2bbca972bd2a3 100644 (file)
@@ -138,6 +138,6 @@ extern errcode_t ext2fs_set_generic_bmap_range(ext2fs_generic_bitmap bitmap,
 extern errcode_t ext2fs_get_generic_bmap_range(ext2fs_generic_bitmap bitmap,
                                               __u64 start, unsigned int num,
                                               void *out);
-extern int ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap, const char *func);
+extern void ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap,const char *func);
 
 extern int ext2fs_mem_is_zero(const char *mem, size_t len);
index 91dd133ce2ca1b7396354db7a2f53bececc87b3f..f75876de835f8e3ef5ee7ad8b23a50b1d16ffabe 100644 (file)
@@ -556,7 +556,7 @@ void ext2fs_unmark_block_bitmap_range2(ext2fs_block_bitmap bmap,
        bmap->bitmap_ops->unmark_bmap_extent(bmap, block, num);
 }
 
-int ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap, const char *func)
+void ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap, const char *func)
 {
 #ifndef OMIT_COM_ERR
        if (bitmap && bitmap->description)