Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 871864 Details for
Bug 875419
media-gfx/transfig-3.2.5e-r1 - fig2dev.c: error: type specifier missing, defaults to int; ISO C99 and
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
transfig-3.2.5e-r1-clang-17.patch
transfig-3.2.5e-r1-clang-17.patch (text/plain), 4.44 KB, created by
ppw0
on 2023-10-01 02:08:36 UTC
(
hide
)
Description:
transfig-3.2.5e-r1-clang-17.patch
Filename:
MIME Type:
Creator:
ppw0
Created:
2023-10-01 02:08:36 UTC
Size:
4.44 KB
patch
obsolete
>diff --git a/fig2dev/dev/genibmgl.c b/fig2dev/dev/genibmgl.c >index a14b96f..e24b181 100644 >--- a/fig2dev/dev/genibmgl.c >+++ b/fig2dev/dev/genibmgl.c >@@ -50,7 +50,7 @@ > #include "fig2dev.h" > #include "object.h" > >-static set_style(); >+static void set_style(); > > #define FONTS 35 > #define COLORS 8 >@@ -458,7 +458,7 @@ F_compound *objects; > fprintf(tfp, "VS%.2f;\n", pen_speed); > } > >-static arc_tangent(x1, y1, x2, y2, direction, x, y) >+static void arc_tangent(x1, y1, x2, y2, direction, x, y) > double x1, y1, x2, y2, *x, *y; > int direction; > { >@@ -474,7 +474,7 @@ int direction; > > /* draw arrow heading from (x1, y1) to (x2, y2) */ > >-static draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid) >+static void draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid) > double x1, y1, x2, y2, arrowht, arrowwid; > { > double x, y, xb, yb, dx, dy, l, sina, cosa; >@@ -512,7 +512,7 @@ double x1, y1, x2, y2, arrowht, arrowwid; > /* > * set_style - issue line style commands as appropriate > */ >-static set_style(style, length) >+static void set_style(style, length) > int style; > double length; > { >@@ -567,7 +567,7 @@ double length; > * set_width - issue line width commands as appropriate > * NOTE: HPGL/2 command used > */ >-static set_width(w) >+static int set_width(w) > int w; > { > static int current_width=-1; >@@ -585,7 +585,7 @@ static set_width(w) > /* > * set_color - issue line color commands as appropriate > */ >-static set_color(color) >+static void set_color(color) > int color; > { > static int number = 0; /* 1 <= number <= 8 */ >@@ -604,7 +604,7 @@ static set_color(color) > } > } > >-static fill_polygon(pattern, color) >+static void fill_polygon(pattern, color) > int pattern; > int color; > { >@@ -876,7 +876,7 @@ void genibmgl_line(l) > > #define THRESHOLD .05 /* inch */ > >-static bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3) >+static void bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3) > double a0, b0, a1, b1, a2, b2, a3, b3; > { > double x0, y0, x3, y3; >@@ -932,7 +932,7 @@ F_spline *s; > s->for_arrow->ht/ppi, s->for_arrow->wid/ppi); > } > >-static quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4) >+static void quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4) > double a1, b1, a2, b2, a3, b3, a4, b4; > { > double x1, y1, x4, y4; >diff --git a/fig2dev/dev/genpstex.c b/fig2dev/dev/genpstex.c >index 7ab1fb5..3e45594 100644 >--- a/fig2dev/dev/genpstex.c >+++ b/fig2dev/dev/genpstex.c >@@ -42,6 +42,7 @@ > #include "genpdf.h" > #include "object.h" > #include "texfonts.h" >+#include "setfigfont.h" > > extern double rad2deg; > >@@ -105,7 +106,7 @@ static void genpstex_p_finalize_objects(int depth); > > /************************************************************************* > *************************************************************************/ >-static >+static int > translate2(xp, yp) > int *xp, *yp; > { >@@ -113,7 +114,7 @@ translate2(xp, yp) > *yp = (double)(TOP - *yp -1); > } > >-static >+static int > translate1_d(xp, yp) > double *xp, *yp; > { >@@ -121,7 +122,7 @@ translate1_d(xp, yp) > *yp = *yp + 1.0; > } > >-static >+static int > translate2_d(xp, yp) > double *xp, *yp; > { >diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c >index 93df432..a0b829e 100644 >--- a/fig2dev/fig2dev.c >+++ b/fig2dev/fig2dev.c >@@ -373,7 +373,7 @@ grid_usage() > fprintf(stderr," Ignoring grid.\n"); > } > >-main(argc, argv) >+void main(argc, argv) > int argc; > char *argv[]; > { >diff --git a/fig2dev/fig2dev.h b/fig2dev/fig2dev.h >index 512cddf..346793f 100644 >--- a/fig2dev/fig2dev.h >+++ b/fig2dev/fig2dev.h >@@ -160,6 +160,10 @@ extern Boolean psencode_header_done; /* if we have already emitted PSencode head > extern Boolean transp_header_done; /* if we have already emitted transparent image header */ > extern Boolean grayonly; /* convert colors to grayscale (-N option) */ > >+static void arc_tangent(double x1, double y1, double x2, double y2, int direction, double *x, double *y); >+extern void arc_tangent_int(double x1, double y1, double x2, double y2, int direction, int *x, int *y); >+extern int depth_filter(int); >+ > struct paperdef > { > char *name; /* name for paper size */ >diff --git a/fig2dev/latex_line.c b/fig2dev/latex_line.c >index cede1d2..cef37d0 100644 >--- a/fig2dev/latex_line.c >+++ b/fig2dev/latex_line.c >@@ -173,7 +173,7 @@ get_slope(dx, dy, sxp, syp, arrow) > if (dy < 0) *syp = -*syp; > } > >-latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet) >+void latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet) > int x1, y1, x2, y2; > int *xout, *yout; > int arrow, magnet;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 875419
:
820963
|
820966
|
820969
|
820972
|
820975
|
820978
|
820981
|
871864
|
871865