mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user