From: Sami Kerola Date: Tue, 24 May 2011 20:56:34 +0000 (+0200) Subject: pg: return value warning fix X-Git-Tag: v2.20-rc1~216 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a699625d792e92a04af540bae144d982961cebd2;p=thirdparty%2Futil-linux.git pg: return value warning fix void function 'makeprint' should not return void expression Signed-off-by: Sami Kerola --- diff --git a/text-utils/pg.c b/text-utils/pg.c index 9fbbc0bbf0..bf4ab6d11f 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--) {