From 310b8c1014b8ea68c0d3ffcb8b5028adba79092d Mon Sep 17 00:00:00 2001 From: wolf Date: Sat, 13 Mar 2004 21:46:43 +0000 Subject: [PATCH] error: array bound forbidden after parenthesized type-id note: try removing the parentheses around the type-id Changed files: icewm-gcc34.patch -> 1.1 --- icewm-gcc34.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 icewm-gcc34.patch diff --git a/icewm-gcc34.patch b/icewm-gcc34.patch new file mode 100644 index 0000000..7985470 --- /dev/null +++ b/icewm-gcc34.patch @@ -0,0 +1,24 @@ +diff -ruN icewm-1.2.14pre10./src/iceicon.cc icewm-1.2.14pre10/src/iceicon.cc +--- icewm-1.2.14pre10./src/iceicon.cc 2004-02-29 16:09:01.000000000 +0100 ++++ icewm-1.2.14pre10/src/iceicon.cc 2004-03-13 22:37:58.480776816 +0100 +@@ -161,7 +161,7 @@ + void YIconView::updateItems() { + if (fItems == 0) { + //fMaxWidth = 0; +- fItems = new (YIconItem *)[fItemCount]; ++ fItems = new YIconItem *[fItemCount]; + if (fItems) { + YIconItem *a = getFirst(); + int n = 0; +diff -ruN icewm-1.2.14pre10./src/wmwinlist.cc icewm-1.2.14pre10/src/wmwinlist.cc +--- icewm-1.2.14pre10./src/wmwinlist.cc 2004-02-29 16:09:01.000000000 +0100 ++++ icewm-1.2.14pre10/src/wmwinlist.cc 2004-03-13 22:38:16.576025920 +0100 +@@ -269,7 +269,7 @@ + list->show(); + scroll->show(); + +- workspaceItem = new (WindowListItem *)[workspaceCount + 1]; ++ workspaceItem = new WindowListItem *[workspaceCount + 1]; + for (int ws = 0; ws < workspaceCount; ws++) { + workspaceItem[ws] = new WindowListItem(0, ws); + list->addItem(workspaceItem[ws]); -- 2.44.0