File: 0002-process_pipeline-fix-build-with-GCC-15.patch

package info (click to toggle)
megapixels 1.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,848 kB
  • sloc: ansic: 6,981; xml: 326; sh: 61; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Arnaud Ferraris <aferraris@debian.org>
Date: Tue, 16 Sep 2025 00:04:15 +0200
Subject: process_pipeline: fix build with GCC-15

We need to add the expected function arguments to the `capture()`
callback otherwise GCC errors out with an "incompatible pointer type"
message.

Forwarded: not-needed
---
 src/process_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/process_pipeline.c b/src/process_pipeline.c
index cbe374d..d9ace69 100644
--- a/src/process_pipeline.c
+++ b/src/process_pipeline.c
@@ -964,7 +964,7 @@ mp_process_pipeline_process_image(MPBuffer buffer)
 }
 
 static void
-capture()
+capture(MPPipeline *pipeline, const void *data)
 {
         char template[] = "/tmp/megapixels.XXXXXX";
         char *tempdir;