]> Savannah Git Hosting - gnulib.git/commitdiff
base64: fix recent compilation regression on some compilers
authorRV971 <rv1971@web.de>
Fri, 29 Nov 2013 15:35:33 +0000 (15:35 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 29 Nov 2013 15:47:55 +0000 (15:47 +0000)
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.

ChangeLog
lib/base64.c

index 21659eafe91ddc1eb756a364fbbfeab6d9498ca9..4765a7d307c2e41f60468783fb51875330c311c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 99c2d2e56627c3d0e830aadbab0d5fca33f7a0c1..b8a52fd8868ea47da8b6de8ef713f5519343938b 100644 (file)
@@ -96,7 +96,10 @@ base64_encode (const char *restrict in, size_t inlen,
      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)
     {