Bug 1281596 - fix evutil_rand.c for clang/android builds; r=jld

clang apparently dislikes |return func(...)| in a function which returns
void.  Remove the return to make everybody happy.
This commit is contained in:
Nathan Froyd 2016-06-23 17:16:25 -04:00
parent 378278ea83
commit e0ab4c059f
2 changed files with 15 additions and 1 deletions

View File

@ -59,7 +59,7 @@ static void
ev_arc4random_buf(void *buf, size_t n)
{
#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !defined(__APPLE__)
return arc4random_buf(buf, n);
arc4random_buf(buf, n);
#else
unsigned char *b = buf;

View File

@ -0,0 +1,14 @@
e6dd814 evutil_rand.c fixup for clang
diff --git a/ipc/chromium/src/third_party/libevent/evutil_rand.c b/ipc/chromium/src/third_party/libevent/evutil_rand.c
index 86c86b2..0c41765 100644
--- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
+++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
@@ -59,7 +59,7 @@ static void
ev_arc4random_buf(void *buf, size_t n)
{
#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !defined(__APPLE__)
- return arc4random_buf(buf, n);
+ arc4random_buf(buf, n);
#else
unsigned char *b = buf;