View | Details | Raw Unified | Return to bug 198007
Collapse All | Expand All

(-)devel/rubygem-nio4r/files/patch-ext__libev__ev.c (+18 lines)
Line 0 Link Here
1
--- ext/libev/ev.c.orig	2015-02-24 21:22:11.038934000 +0100
2
+++ ext/libev/ev.c	2015-02-24 21:23:03.298987000 +0100
3
@@ -1026,12 +1026,12 @@
4
   }
5
 #endif
6
 
7
-#if ECB_GCC_VERSION(4,5)
8
+#if ECB_GCC_VERSION(4,5) || defined __clang__
9
   #define ecb_unreachable() __builtin_unreachable ()
10
 #else
11
   /* this seems to work fine, but gcc always emits a warning for it :/ */
12
-  ecb_inline void ecb_unreachable (void) ecb_noreturn;
13
-  ecb_inline void ecb_unreachable (void) { }
14
+  ecb_inline void ecb_noreturn ecb_unreachable (void);
15
+  ecb_inline void ecb_noreturn ecb_unreachable (void) { }
16
 #endif
17
 
18
 /* try to tell the compiler that some condition is definitely true */

Return to bug 198007