[PATCH 03/13] pg: return value warning fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



void function 'makeprint' should not return void expression

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 text-utils/pg.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/text-utils/pg.c b/text-utils/pg.c
index 9fbbc0b..bf4ab6d 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -856,8 +856,10 @@ static void
 makeprint(char *s, size_t l)
 {
 #ifdef HAVE_WIDECHAR
-	if (MB_CUR_MAX > 1)
-		return makeprint_for_mb(s, l);
+	if (MB_CUR_MAX > 1) {
+		makeprint_for_mb(s, l);
+		return;
+	}
 #endif
 
 	while (l--) {
-- 
1.7.5.2

--
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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux