[ 
https://issues.apache.org/jira/browse/THRIFT-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon South reassigned THRIFT-3178:
-----------------------------------

    Assignee: Simon South

> glib C does not compile
> -----------------------
>
>                 Key: THRIFT-3178
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3178
>             Project: Thrift
>          Issue Type: Bug
>          Components: C glib - Compiler, C glib - Library
>    Affects Versions: 0.9.2
>         Environment: Ubuntu GCC, CGLIB 2 Hypertable
>            Reporter: nijx
>            Assignee: Simon South
>              Labels: Hypertable
>
> 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,



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to