Mercurial > gnulib
changeset 37244:1ded04c3e4bb
base64: fix recent compilation regression on some compilers
This fixes a compile failure with
"Sun C 5.8 Patch 121015-05 2007/08/01"
which returns:
"base64.c", line 99: void function cannot return value
* lib/base64.c: Don't return the void function,
instead split to a separate return statement.
author | RV971 <rv1971@web.de> |
---|---|
date | Fri, 29 Nov 2013 15:35:33 +0000 |
parents | c7029bbdfb2e |
children | 135e82dafbea |
files | ChangeLog lib/base64.c |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Nov 28 14:39:26 2013 -0800 +++ b/ChangeLog Fri Nov 29 15:35:33 2013 +0000 @@ -1,3 +1,9 @@ +2013-11-29 RV1971 <rv1971@web.de> + + base64: (trivial) fix compilation regression on some compilers + * lib/base64.c: Don't return the void function, + instead split to a separate return statement. + 2013-11-28 Paul Eggert <eggert@cs.ucla.edu> ignore-value: revert previous code change
--- a/lib/base64.c Thu Nov 28 14:39:26 2013 -0800 +++ b/lib/base64.c Fri Nov 29 15:35:33 2013 +0000 @@ -96,7 +96,10 @@ large inputs is to have both constraints satisfied, so we depend on both in base_encode_fast(). */ if (outlen % 4 == 0 && inlen == outlen / 4 * 3) - return base64_encode_fast (in, inlen, out); + { + base64_encode_fast (in, inlen, out); + return; + } while (inlen && outlen) {