From a699625d792e92a04af540bae144d982961cebd2 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 24 May 2011 22:56:34 +0200 Subject: pg: return value warning fix void function 'makeprint' should not return void expression Signed-off-by: Sami Kerola --- text-utils/pg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'text-utils/pg.c') diff --git a/text-utils/pg.c b/text-utils/pg.c index 9fbbc0bbf..bf4ab6d11 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--) { -- cgit v1.2.3-55-g7522