summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-21 07:53:34 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-21 08:47:04 -0400
commit938426f3571cf223870bc6f8d26f1259bca4c84d (patch)
tree755e705be1956cf6719649f59c9c30d15b50412f /net-analyzer/pathload
parentmedia-gfx/xli: improve clang16/c2x fixes (diff)
downloadgentoo-938426f3571cf223870bc6f8d26f1259bca4c84d.tar.gz
gentoo-938426f3571cf223870bc6f8d26f1259bca4c84d.tar.bz2
gentoo-938426f3571cf223870bc6f8d26f1259bca4c84d.zip
net-analyzer/pathload: improve clang16/c2x fixes
Did not need much more to drop gnu89, and this could potentially have caused issues with clang16 either way. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-analyzer/pathload')
-rw-r--r--net-analyzer/pathload/files/pathload-1.3.2-clang16.patch24
-rw-r--r--net-analyzer/pathload/pathload-1.3.2-r1.ebuild3
2 files changed, 25 insertions, 2 deletions
diff --git a/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch b/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch
index 9cce41e48417..479aaeec520e 100644
--- a/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch
+++ b/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch
@@ -8,3 +8,27 @@ https://bugs.gentoo.org/870661
-main(){return(0);}
+int main(void){return(0);}
EOF
+--- a/pathload_rcv.h
++++ b/pathload_rcv.h
+@@ -85,3 +85,3 @@
+ EXTERN l_int32 get_sndr_time_interval(double snd_time[],double *sum);
+-EXTERN void sig_alrm();
++EXTERN void sig_alrm(int __attribute__((__unused__)) unused);
+ EXTERN void terminate_gracefully(struct timeval exp_start_time);
+@@ -100,3 +100,3 @@
+ EXTERN void help();
+-EXTERN void sig_sigusr1() ;
++EXTERN void sig_sigusr1(int __attribute__((__unused__)) unused) ;
+
+--- a/pathload_rcv_func.c
++++ b/pathload_rcv_func.c
+@@ -669,3 +669,3 @@
+
+-void sig_sigusr1()
++void sig_sigusr1(int __attribute__((__unused__)) unused)
+ {
+@@ -674,3 +674,3 @@
+
+-void sig_alrm()
++void sig_alrm(int __attribute__((__unused__)) unused)
+ {
diff --git a/net-analyzer/pathload/pathload-1.3.2-r1.ebuild b/net-analyzer/pathload/pathload-1.3.2-r1.ebuild
index c2fbec052f5d..b8e220379490 100644
--- a/net-analyzer/pathload/pathload-1.3.2-r1.ebuild
+++ b/net-analyzer/pathload/pathload-1.3.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit flag-o-matic toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="Non-intrusive utility for estimation of available bandwidth of Internet paths"
HOMEPAGE="https://www.cc.gatech.edu/fac/constantinos.dovrolis/bw-est/pathload.html"
@@ -21,7 +21,6 @@ PATCHES=(
src_configure() {
tc-export CC
- append-cflags -std=gnu89 # old codebase, incompatible with c2x
default
}