From 1114861e5adb064f51f1df5bc7dc5d473a8aa8e5 Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Wed, 19 Jan 2005 17:54:58 +0000 Subject: [PATCH] Fix build with gcc34 & open-motif PR: ports/75900 Noticed by: Tyler Davidson --- math/oleo/files/patch-al | 19 +++++++++++++----- math/oleo/files/patch-src::plotter.c | 29 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 math/oleo/files/patch-src::plotter.c diff --git a/math/oleo/files/patch-al b/math/oleo/files/patch-al index 940a4d3c3903..383b6930ba57 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 000000000000..def62641a299 --- /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: {} + /* ??? */ + } + }