Lines 1-26
Link Here
|
1 |
--- libeio/ecb.h.orig 2016-07-24 19:02:19.000000000 +0200 |
|
|
2 |
+++ libeio/ecb.h 2016-12-26 10:31:13.000232000 +0100 |
3 |
@@ -452,12 +452,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_noreturn ecb_inline void ecb_unreachable (void); |
13 |
- ecb_inline void ecb_unreachable (void) { } |
14 |
+ ecb_noreturn ecb_inline void ecb_unreachable (void) { } |
15 |
#endif |
16 |
|
17 |
/* try to tell the compiler that some condition is definitely true */ |
18 |
@@ -478,7 +478,7 @@ ecb_byteorder_helper (void) |
19 |
#elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
20 |
return 0x44; |
21 |
#elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
22 |
- retrurn 0x11; |
23 |
+ return 0x11; |
24 |
#else |
25 |
union |
26 |
{ |