[ https://issues.apache.org/jira/browse/THRIFT-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon South updated THRIFT-2832: -------------------------------- Comment: was deleted (was: I've attached a patch that fixes the compiler for the three cases I listed in the description. [~wuhzj], please apply this and let me know if it resolves the compiler warnings you're seeing.) > c_glib: Handle string lists correctly > ------------------------------------- > > Key: THRIFT-2832 > URL: https://issues.apache.org/jira/browse/THRIFT-2832 > Project: Thrift > Issue Type: Question > Components: C glib - Compiler > Affects Versions: 0.9.2 > Reporter: wuhzj > Assignee: Simon South > Priority: Minor > > The C (GLib) compiler in its present form will generate incorrect code for > string lists (i.e. variables of type {{list<string>}}) that are > - Passed as a parameter to a method, > - Returned from a method, or > - Assigned a default value. > In each case, the issue relates to the compiler not recognizing a string list > is represented as an instance of GLib's {{GPtrArray}}, instead of {{GArray}} > used to represent most other types of lists. > Fixing this will silence a number of compiler warnings when building the > generated code. > ---- > I noticed that in latest thrift v0.9.2, the C (GLib) compiler and library to > add support for implementing servers. > But in my case, I got some compiling warnings in when compiling the generated > server side code after upgrade to 0.9.2. Actually, I just use thrift c glib > in client side, Is it possible to generate the client side code only? -- This message was sent by Atlassian JIRA (v6.3.4#6332)