GNOME Bugzilla – Bug 618051
gio/tests/socket-server|client.c fail to compile under AIX/VisualAge C compiler
Last modified: 2010-05-07 23:09:34 UTC
Both socket-server.c and socket-client.c fail to compile with a slew of confusing errors because IBM VisualAge C compiler does not allow this: gchar buffer[4096] = { }; To fix this bug, simply change that line to: gchar buffer[4096] = {0}; ... in both files and they will compile fine.
I also discovered this fails to build on HP-UX using acc: "socket-server.c", line 208: error #2029: expected an expression gchar buffer[4096] = { }; ^ 1 error detected in the compilation of "socket-server.c". gmake[4]: *** [socket-server.o] Error 2 "socket-client.c", line 206: error #2029: expected an expression gchar buffer[4096] = { }; ^ 1 error detected in the compilation of "socket-client.c".
The following fix has been pushed: af263a3 remove broken useless initialization in socket-client/socket-server
Created attachment 160547 [details] [review] remove broken useless initialization in socket-client/socket-server