mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
18 lines
653 B
C
18 lines
653 B
C
--- 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 */
|