diff --git a/security/pdfcrack/patches/patch-benchmark_c b/security/pdfcrack/patches/patch-benchmark_c new file mode 100644 index 00000000000..490af3c9df8 --- /dev/null +++ b/security/pdfcrack/patches/patch-benchmark_c @@ -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; + } + diff --git a/security/pdfcrack/patches/patch-main_c b/security/pdfcrack/patches/patch-main_c new file mode 100644 index 00000000000..2df09c19f05 --- /dev/null +++ b/security/pdfcrack/patches/patch-main_c @@ -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); + }