diff options
author | vs <vs@FreeBSD.org> | 2005-01-20 01:54:58 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-01-20 01:54:58 +0800 |
commit | 09eadfeeed79eb8de93ecff75ab7caf1db85a794 (patch) | |
tree | c6baf35539db36e7c250844761eb6a62a2d0083d /math | |
parent | 128953ddb0e6d86a45ee3fe32bd538a5a59fcc15 (diff) | |
download | freebsd-ports-graphics-09eadfeeed79eb8de93ecff75ab7caf1db85a794.tar.gz freebsd-ports-graphics-09eadfeeed79eb8de93ecff75ab7caf1db85a794.tar.zst freebsd-ports-graphics-09eadfeeed79eb8de93ecff75ab7caf1db85a794.zip |
Fix build with gcc34 & open-motif
PR: ports/75900
Noticed by: Tyler Davidson
Diffstat (limited to 'math')
-rw-r--r-- | math/oleo/files/patch-al | 19 | ||||
-rw-r--r-- | math/oleo/files/patch-src::plotter.c | 29 |
2 files changed, 43 insertions, 5 deletions
diff --git a/math/oleo/files/patch-al b/math/oleo/files/patch-al index 940a4d3c390..383b6930ba5 100644 --- a/math/oleo/files/patch-al +++ b/math/oleo/files/patch-al @@ -1,6 +1,15 @@ ---- src/io-motif.c.orig Thu Nov 23 05:38:22 2000 -+++ src/io-motif.c Sat Dec 2 09:47:19 2000 -@@ -5995,7 +5995,11 @@ +--- src/io-motif.c.orig Wed Jan 19 18:23:57 2005 ++++ src/io-motif.c Wed Jan 19 18:26:41 2005 +@@ -1495,7 +1495,7 @@ + #endif + XmTextFieldSetEditable(tw, True); + break; +- default: ++ default: {} + #if 0 + fprintf(stderr, "Huh ? TickTypeCB(axis %d type %d) -> sensitive \n", axis, val); + #endif +@@ -6058,7 +6058,11 @@ #endif #ifdef HAVE_LIBPLOT @@ -12,7 +21,7 @@ xms1 = xms; xms2 = XmStringCreateLtoR(xbae, XmFONTLIST_DEFAULT_TAG); xms = XmStringConcat(xms1, xms2); -@@ -6079,6 +6083,7 @@ +@@ -6142,6 +6146,7 @@ return; } @@ -20,7 +29,7 @@ if (XbaeMatrixGetCellWidget(mat, r-1, c-1) == NULL) { button = XtVaCreateManagedWidget(lbl, xmPushButtonWidgetClass, mat, NULL); XbaeMatrixSetCellWidget(mat, r-1, c-1, button); -@@ -6088,4 +6093,5 @@ +@@ -6151,4 +6156,5 @@ fprintf(stderr, "MotifButton(%d,%d,%s,%s)\n", r-1, c-1, lbl, command); } diff --git a/math/oleo/files/patch-src::plotter.c b/math/oleo/files/patch-src::plotter.c new file mode 100644 index 00000000000..def62641a29 --- /dev/null +++ b/math/oleo/files/patch-src::plotter.c @@ -0,0 +1,29 @@ +--- src/plotter.c.orig Wed Jan 19 18:27:00 2005 ++++ src/plotter.c Wed Jan 19 18:27:27 2005 +@@ -2639,7 +2639,7 @@ + case SP_PLOT_PIE: + sp_pie_plot_point(mg, point); + break; +- default: ++ default: {} + /* ?? */ + } + } +@@ -2770,7 +2770,7 @@ + case SP_PLOT_PIE: + sp_pie_begin_graph(mg, scale, trans_x, trans_y); + break; +- default: ++ default: {} + /* ??? */ + } + +@@ -2790,7 +2790,7 @@ + case SP_PLOT_PIE: + sp_pie_end_graph(mg); + break; +- default: ++ default: {} + /* ??? */ + } + } |