
- add patch fixing build with c99 from fedora:070de52694
Fixes build error: ``` t1asm.c: In function 'main': t1asm.c:501:15: error: implicit declaration of function 'getopt'; did you mean 'getsubopt'? [] 501 | while ((c = getopt(argc, argv, "bl:")) != -1) | ^~~~~~ | getsubopt ``` - add patch fixing build with gcc14 from fedora1ebb612acb
Patch does not apply as is with `fetchpatch` because of incorrect listed files: `diff -u ft.c{.orig,}`. Fixes `-Wincompatible-pointer-types` errors: `error: intialization of ... from incompatible pointer type ...` for `outl_moveto`, `outl_lineto`, `outl_conicto` and `outl_cubicto` in `ft.c`
48 lines
740 B
Diff
48 lines
740 B
Diff
diff --git a/ft.c b/ft.c
|
|
index 4ca1ca6..3ae9ac9 100644
|
|
--- a/ft.c
|
|
+++ b/ft.c
|
|
@@ -457,7 +457,7 @@ static double lastx, lasty;
|
|
|
|
static int
|
|
outl_moveto(
|
|
- FT_Vector *to,
|
|
+ const FT_Vector *to,
|
|
void *unused
|
|
)
|
|
{
|
|
@@ -477,7 +477,7 @@ outl_moveto(
|
|
|
|
static int
|
|
outl_lineto(
|
|
- FT_Vector *to,
|
|
+ const FT_Vector *to,
|
|
void *unused
|
|
)
|
|
{
|
|
@@ -493,8 +493,8 @@ outl_lineto(
|
|
|
|
static int
|
|
outl_conicto(
|
|
- FT_Vector *control1,
|
|
- FT_Vector *to,
|
|
+ const FT_Vector *control1,
|
|
+ const FT_Vector *to,
|
|
void *unused
|
|
)
|
|
{
|
|
@@ -514,9 +514,9 @@ outl_conicto(
|
|
|
|
static int
|
|
outl_cubicto(
|
|
- FT_Vector *control1,
|
|
- FT_Vector *control2,
|
|
- FT_Vector *to,
|
|
+ const FT_Vector *control1,
|
|
+ const FT_Vector *control2,
|
|
+ const FT_Vector *to,
|
|
void *unused
|
|
)
|
|
{
|
|
|