epson-workforce-635-nx625-series: fix GCC 14 build (#378049)

This commit is contained in:
Arne Keller 2025-03-13 11:01:41 +01:00 committed by GitHub
commit 2b4960c707
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,21 @@
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
index 6e621c8..a5ca797 100644
--- a/src/raster_to_epson.c
+++ b/src/raster_to_epson.c
@@ -438,14 +438,14 @@ static int print_page (void)
break;
}
- if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, &nraster)) {
+ if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, (int *) &nraster)) {
error = 1;
break;
}
}
// flushing page
- eps_raster_print(raster_h, NULL, 0, 0, &nraster);
+ eps_raster_print(raster_h, NULL, 0, 0, (int *) &nraster);
bAbort = (error) ? TRUE : FALSE;
if (epcgEndPage (bAbort)) {

View File

@ -0,0 +1,24 @@
diff --git a/src/pagemanager/pagemanager.c b/src/pagemanager/pagemanager.c
index 029e6d3..2881585 100644
--- a/src/pagemanager/pagemanager.c
+++ b/src/pagemanager/pagemanager.c
@@ -23,6 +23,7 @@
#include "debuglog.h"
#include "memory.h"
#include "raster.h"
+#include "raster-helper.h"
#include "pagemanager.h"
extern int JobCanceled;
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
index 6e621c8..6eea77c 100644
--- a/src/raster_to_epson.c
+++ b/src/raster_to_epson.c
@@ -36,6 +36,7 @@
#include "raster.h"
#include "memory.h"
#include "raster_to_epson.h"
+#include "raster-helper.h"
#include "pagemanager.h"
#include "filter_option.h"

View File

@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
done
'';
patches = [
./eps_raster_print-cast.patch
./include-raster-helper.patch
];
preConfigure = ''
chmod u+x configure
'';