From:
[email protected]
Package: gtklookat
Severity: normal
Tags: patch
When building 'gtklookat' with gcc-3.4 I get the following error:
gtklookat.cpp:482: note: try removing the parentheses around the type-id gtklookat.cpp:506: error: array bound forbidden after parenthesized type-id gtklookat.cpp:506: note: try removing the parentheses around the type-id gtklookat.cpp:515: warning: int format, different type arg (arg 3) gtklookat.cpp: At global scope:
gtklookat.cpp:113: warning: 'void file_save(void*, guint, GtkWidget*)' defined but not used
gtklookat.cpp:144: warning: 'void file_save_as(void*, guint, GtkWidget*)' defined but not used
gtklookat.cpp:202: warning: 'void tree_itemselect(GtkWidget*, node_info*)' defined but not used
gtklookat.cpp:214: warning: 'void tree_itemsignal(GtkWidget*, gchar*)' defined but not used
gtklookat.cpp:231: warning: 'void tree_unselect_child(GtkWidget*, GtkWidget*, GtkWidget*)' defined but not used
gtklookat.cpp:240: warning: 'void tree_select_child(GtkWidget*, GtkWidget*, GtkWidget*)' defined but not used
gtklookat.cpp:246: warning: 'void tree_selection_changed(GtkWidget*)' defined but not used
gtklookat.cpp:545: warning: 'void about_dialog(void*, guint, GtkWidget*)' defined but not used
make[3]: *** [gtklookat.o] Error 1
make[3]: Leaving directory `/gtklookat-0.13.0/src'
With the attached patch 'gtklookat' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/gtklookat-0.13.0/src/gtklookat.cpp ./src/gtklookat.cpp --- ../tmp-orig/gtklookat-0.13.0/src/gtklookat.cpp 2004-08-17 17:41:01.784889985 +0200
+++ ./src/gtklookat.cpp 2004-08-17 17:40:50.915542377 +0200
@@ -479,7 +479,7 @@
int *row = new int;
*row = -1;
- titles = new (gchar *)[2];
+ titles = new gchar *[2];
titles[0] = g_strdup("Name");
titles[1] = g_strdup("Description");
@@ -503,7 +503,7 @@
GtkWidget *clist = gtk_clist_new_with_titles(2, titles);
gtk_signal_connect(GTK_OBJECT(clist), "select_row",
GTK_SIGNAL_FUNC(viewpoint_selection), row);
- gchar **data = new (gchar *)[2];
+ gchar **data = new gchar *[2];
typedef std::list<openvrml::viewpoint_node *> viewpoint_list_t;
const viewpoint_list_t & viewpoints = my_browser->viewpoints();
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)