Date: Sun, 22 Mar 2015 15:22:24 +0000 (UTC) From: Bartek Rutkowski <robak@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381929 - head/net/shadowsocks-libev/files Message-ID: <201503221522.t2MFMOlc052732@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: robak Date: Sun Mar 22 15:22:23 2015 New Revision: 381929 URL: https://svnweb.freebsd.org/changeset/ports/381929 QAT: https://qat.redports.org/buildarchive/r381929/ Log: net/shadowsocks-libev: fix clang 3.6 build PR: 198194 Submitted by: Dimitry Andric <dim@FreeBSD.org> Added: head/net/shadowsocks-libev/files/patch-libev__ev.c (contents, props changed) Added: head/net/shadowsocks-libev/files/patch-libev__ev.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/shadowsocks-libev/files/patch-libev__ev.c Sun Mar 22 15:22:23 2015 (r381929) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503221522.t2MFMOlc052732>