mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
devel/pecl-ev: fix clang 3.6 build
PR: 198141 Submitted by: Dimitry Andric <dim@FreeBSD.org> Approved by: maintainer
This commit is contained in:
parent
e938a345b5
commit
424bb439ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=381515
18
devel/pecl-ev/files/patch-libev__ev.c
Normal file
18
devel/pecl-ev/files/patch-libev__ev.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- libev/ev.c.orig 2014-12-08 18:18:51.000000000 +0100
|
||||
+++ libev/ev.c 2015-03-01 22:43:14.480908000 +0100
|
||||
@@ -1006,12 +1006,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 */
|
Loading…
Reference in New Issue
Block a user