зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
378278ea83
Коммит
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
поставляемый
Normal file
14
ipc/chromium/src/third_party/libevent/patches/android-arc4random-buf.patch
поставляемый
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;
|
||||
|
Загрузка…
Ссылка в новой задаче