[PATCH 10/17] mkfs.minix: fix couple compiler warnings

Sami Kerola
2014-09-07T12:43:36Z

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@iki.fi>
---
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