Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3178

glib C does not compile

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              simonsouth Simon South
              nijx nijx
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: