1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix build with gcc34 & open-motif

PR:		ports/75900
Noticed by:	Tyler Davidson
This commit is contained in:
Volker Stolz 2005-01-19 17:54:58 +00:00
parent 60f066fb9f
commit 1114861e5a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126849
2 changed files with 43 additions and 5 deletions

View File

@ -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);
}

View File

@ -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: {}
/* ??? */
}
}