mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
package/cpulimit: correct function signature to use named parmeters
Update 0005-Correct-loop-function-signature.patch to include a named
parameter otherwise the following compiler warning turned error is
triggered:
busy.c:6:1: error: parameter name omitted
void *loop(void *)
^~~~
Interestingly, this builds with GCC > 10.x, but fails fails with GCC
<= 10.
Fixes: https://autobuild.buildroot.org/results/8592e4eb5959124acc885a1cbc2f9d24fb7bcbd1
Fixes: https://autobuild.buildroot.org/results/cf12d080ddd7a2398a79be430d935071ca3250a3/
Fixes: e63181bc00 ("package/cpulimit: Backport fix for function signature")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
33178c5385
commit
04ca5dc2cd
@@ -1,4 +1,4 @@
|
||||
From 74e95c96e8d82e4e374f86142972fcf4305fe1f2 Mon Sep 17 00:00:00 2001
|
||||
From e94b6dd7b3ca884f72f02879fd85792a3aee961d Mon Sep 17 00:00:00 2001
|
||||
From: Florian Fainelli <f.fainelli@gmail.com>
|
||||
Date: Wed, 2 Jul 2025 20:47:58 -0700
|
||||
Subject: [PATCH] Correct loop function signature
|
||||
@@ -23,7 +23,7 @@ Upstream: https://github.com/opsengine/cpulimit/pull/127
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/busy.c b/tests/busy.c
|
||||
index b3afb7cd853b..93f0bcce67a8 100644
|
||||
index b3afb7cd853b..8acbcd82e04f 100644
|
||||
--- a/tests/busy.c
|
||||
+++ b/tests/busy.c
|
||||
@@ -3,7 +3,7 @@
|
||||
@@ -31,7 +31,7 @@ index b3afb7cd853b..93f0bcce67a8 100644
|
||||
#include <unistd.h>
|
||||
|
||||
-void *loop()
|
||||
+void *loop(void *)
|
||||
+void *loop(void *unused)
|
||||
{
|
||||
while(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user