mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
378278ea83
commit
e0ab4c059f
@ -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;
|
||||
|
||||
|
14
ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
vendored
Normal file
14
ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
vendored
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user