pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nsca-ng Fix noreturn use.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e0159f2836c6
branches: trunk
changeset: 347517:e0159f2836c6
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Jan 12 23:02:15 2020 +0000
description:
Fix noreturn use.
diffstat:
net/nsca-ng/distinfo | 3 ++-
net/nsca-ng/patches/patch-lib_ev_ev.c | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r d33bc0a33932 -r e0159f2836c6 net/nsca-ng/distinfo
--- a/net/nsca-ng/distinfo Sun Jan 12 23:01:38 2020 +0000
+++ b/net/nsca-ng/distinfo Sun Jan 12 23:02:15 2020 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.1 2019/09/07 16:25:53 maya Exp $
+$NetBSD: distinfo,v 1.2 2020/01/12 23:02:15 joerg Exp $
SHA1 (nsca-ng-1.4.tar.gz) = 5b8423d14d1bab2dc87605694f828363a1e671e4
RMD160 (nsca-ng-1.4.tar.gz) = 17fa9aaff47f1790aaae090a9fdea4955b85c4e2
SHA512 (nsca-ng-1.4.tar.gz) = 79b52fb2e5a7f1523958a24846ac15826738a28454e6e2c9e20dda2202b99fce042d0733ac8dfc98619210312af8eff748c22f82208528f54243061054273c41
Size (nsca-ng-1.4.tar.gz) = 354012 bytes
SHA1 (patch-etc_nsca-ng.cfg) = 54e67b420d4905c3c7a8d1fe2268bc787b5ed6f3
+SHA1 (patch-lib_ev_ev.c) = 3b706353f688e616521c9e0c5cae1d7119a25817
SHA1 (patch-src_common_tls.c) = 30d5a28225bd8f0c1b8222c977490410fd1531a0
diff -r d33bc0a33932 -r e0159f2836c6 net/nsca-ng/patches/patch-lib_ev_ev.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nsca-ng/patches/patch-lib_ev_ev.c Sun Jan 12 23:02:15 2020 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_ev_ev.c,v 1.1 2020/01/12 23:02:16 joerg Exp $
+
+clang has __builtin_unreachable, but also fix _Noreturn use for C11
+compiler.
+
+--- lib/ev/ev.c.orig 2020-01-12 21:38:53.341023307 +0000
++++ lib/ev/ev.c
+@@ -963,11 +963,11 @@ ecb_inline uint64_t ecb_rotr64 (uint64_t
+ }
+ #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 ecb_noreturn void ecb_unreachable (void);
+ ecb_inline void ecb_unreachable (void) { }
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index