disk-utils/mkfs.minix.c:366:3: warning: ISO C forbids 'return' with expression, in function returning void [-Wpedantic] Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/mkfs.minix.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index 9fdfc63..2dafc86 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -362,9 +362,11 @@ static void make_bad_inode_v2_v3 (void) static void make_bad_inode(void) { - if (fs_version < 2) - return make_bad_inode_v1(); - return make_bad_inode_v2_v3(); + if (fs_version < 2) { + make_bad_inode_v1(); + return; + } + make_bad_inode_v2_v3(); } static void make_root_inode_v1(void) { @@ -412,9 +414,11 @@ static void make_root_inode_v2_v3 (void) { static void make_root_inode(void) { - if (fs_version < 2) - return make_root_inode_v1(); - return make_root_inode_v2_v3(); + if (fs_version < 2) { + make_root_inode_v1(); + return; + } + make_root_inode_v2_v3(); } static void super_set_nzones(void) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html