Fix build with gcc 3.4

This commit is contained in:
Tilman Keskinoz 2004-08-17 13:58:21 +00:00
parent d0d6642010
commit b52b39c34f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116523
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- diacanvas/diamagnifytool.c.orig Tue Aug 17 15:52:45 2004
+++ diacanvas/diamagnifytool.c Tue Aug 17 15:53:00 2004
@@ -118,6 +118,7 @@
}
break;
default:
+ break;
} /* switch */
return FALSE;
}

View file

@ -0,0 +1,30 @@
--- src/ui.cpp.orig Tue Aug 17 15:50:17 2004
+++ src/ui.cpp Tue Aug 17 15:56:34 2004
@@ -320,7 +320,7 @@
GLUI_RadioGroup *group = win_control->add_radiogroup_to_panel(panel, &d,1,ctrl_callback);
- radio = new (GLUI_RadioButton*)[ndefl];
+ radio = new GLUI_RadioButton*[ndefl];
for(i=0;i<ndefl;i++)
{
@@ -406,12 +406,12 @@
int i;
- st = new (GLUI_StaticText*)[n];
- cb = new (GLUI_Checkbox*)[n];
- ex = new (GLUI_EditText*)[n];
- ey = new (GLUI_EditText*)[n];
- ez = new (GLUI_EditText*)[n];
- em = new (GLUI_EditText*)[n];
+ st = new GLUI_StaticText*[n];
+ cb = new GLUI_Checkbox*[n];
+ ex = new GLUI_EditText*[n];
+ ey = new GLUI_EditText*[n];
+ ez = new GLUI_EditText*[n];
+ em = new GLUI_EditText*[n];
char text[10];