pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/nsca-ng



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun Jan 12 23:02:16 UTC 2020

Modified Files:
        pkgsrc/net/nsca-ng: distinfo
Added Files:
        pkgsrc/net/nsca-ng/patches: patch-lib_ev_ev.c

Log Message:
Fix noreturn use.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/nsca-ng/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/nsca-ng/patches/patch-lib_ev_ev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/nsca-ng/distinfo
diff -u pkgsrc/net/nsca-ng/distinfo:1.1 pkgsrc/net/nsca-ng/distinfo:1.2
--- pkgsrc/net/nsca-ng/distinfo:1.1     Sat Sep  7 16:25:53 2019
+++ pkgsrc/net/nsca-ng/distinfo Sun Jan 12 23:02:15 2020
@@ -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

Added files:

Index: pkgsrc/net/nsca-ng/patches/patch-lib_ev_ev.c
diff -u /dev/null pkgsrc/net/nsca-ng/patches/patch-lib_ev_ev.c:1.1
--- /dev/null   Sun Jan 12 23:02:16 2020
+++ pkgsrc/net/nsca-ng/patches/patch-lib_ev_ev.c        Sun Jan 12 23:02:16 2020
@@ -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