Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.2
-
Ubuntu GCC, CGLIB 2 Hypertable
Description
Generated glibc files in c compile error
/home/ubuntu/Downloads/ht_thrf/gen-c_glib/client_service.c: In function ‘client_service_client_recv_scanner_get_cells_as_arrays’:
/home/node/ubuntu/ht_thrf/gen-c_glib/client_service.c:8525:38: warning: passing argument 1 of ‘g_ptr_array_add’ from incompatible pointer type
g_ptr_array_add (_elem119, _elem120);
^
In file included from /usr/include/glib-2.0/glib.h:31:0,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:23,
from /opt/hypertable/current/include/thrift/c_glib/transport/thrift_socket.h:23,
from <command-line>:1:
/usr/include/glib-2.0/glib/garray.h:168:12: note: expected ‘struct GPtrArray *’ but argument is of type ‘struct GPtrArray **’
void g_ptr_array_add (GPtrArray *array,
^
/home/ubuntu/Downloads/ht_thrf/gen-c_glib/client_service.c: In function ‘client_service_client_recv_next_cells_as_arrays’:
/home/node/Downloads/ht_thrf/gen-c_glib/client_service.c:8771:38: warning: passing argument 1 of ‘g_ptr_array_add’ from incompatible pointer type
g_ptr_array_add (_elem121, _elem122);
^
In file included from /usr/include/glib-2.0/glib.h:31:0,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:23,
from /opt/hypertable/current/include/thrift/c_glib/transport/thrift_socket.h:23,
from <command-line>:1:
/usr/include/glib-2.0/glib/garray.h:168:12: note: expected ‘struct GPtrArray *’ but argument is of type ‘struct GPtrArray **’
void g_ptr_array_add (GPtrArray *array,
Attachments
Issue Links
- duplicates
-
THRIFT-1925 c_glib generated code does not compile
- Closed