FreeBSD Bugzilla – Attachment 153681 Details for
Bug 198194
Fix net/shadowsocks-libev build with clang 3.6.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix positioning of _Noreturn attribute for shadowsocks's copy of libev
net__shadowsocks-libev-fix-libev-noreturn-1.diff (text/plain), 1.27 KB, created by
Dimitry Andric
on 2015-03-02 19:42:59 UTC
(
hide
)
Description:
Fix positioning of _Noreturn attribute for shadowsocks's copy of libev
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-03-02 19:42:59 UTC
Size:
1.27 KB
patch
obsolete
>Index: net/shadowsocks-libev/files/patch-libev__ev.c >=================================================================== >--- net/shadowsocks-libev/files/patch-libev__ev.c (revision 0) >+++ net/shadowsocks-libev/files/patch-libev__ev.c (working copy) >@@ -0,0 +1,18 @@ >+--- libev/ev.c.orig 2015-01-07 13:54:19.000000000 +0100 >++++ libev/ev.c 2015-03-02 20:39:18.150956000 +0100 >+@@ -1022,12 +1022,12 @@ >+ } >+ #endif >+ >+-#if ECB_GCC_VERSION(4,5) >++#if ECB_GCC_VERSION(4,5) || defined __clang__ >+ #define ecb_unreachable() __builtin_unreachable () >+ #else >+ /* this seems to work fine, but gcc always emits a warning for it :/ */ >+- ecb_inline void ecb_unreachable (void) ecb_noreturn; >+- ecb_inline void ecb_unreachable (void) { } >++ ecb_inline ecb_noreturn void ecb_unreachable (void); >++ ecb_inline ecb_noreturn void ecb_unreachable (void) { } >+ #endif >+ >+ /* try to tell the compiler that some condition is definitely true */ > >Property changes on: net/shadowsocks-libev/files/patch-libev__ev.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198194
: 153681