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:
14
security/pdfcrack/patches/patch-benchmark_c
Normal file
14
security/pdfcrack/patches/patch-benchmark_c
Normal 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;
|
||||
}
|
||||
|
||||
14
security/pdfcrack/patches/patch-main_c
Normal file
14
security/pdfcrack/patches/patch-main_c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user