1
0
mirror of https://github.com/openbsd/ports.git synced 2025-12-05 23:28:42 +00:00

Omitted parameter names is a C23 feature and gcc does not like it.

Just fix up the two functions and use a dummy name.

ok benoit@
This commit is contained in:
claudio
2025-12-04 20:04:10 +00:00
parent 9615f70dac
commit 70bfdf8d37
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Ommitted parameter names is a C23 feature.
Index: benchmark.c
--- benchmark.c.orig
+++ benchmark.c
@@ -40,7 +40,7 @@ static volatile bool finished = false;
/** interruptBench is used to stop the current benchmark */
static void
-interruptBench(int) {
+interruptBench(int dummy) {
finished = true;
}

View File

@@ -0,0 +1,14 @@
Ommitted parameter names is a C23 feature.
Index: main.c
--- main.c.orig
+++ main.c
@@ -37,7 +37,7 @@
/** alarmInterrupt is used to print out the progress at specific intervals */
static void
-alarmInterrupt(int) {
+alarmInterrupt(int dummy) {
if(!printProgress())
alarm(PRINTERVAL);
}