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

Missing parenthesis breaks "IS_..." macro in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.9.1
    • C glib - Compiler
    • None
    • CentOS 6.3 on x86 (32-bit)

    • Patch Available

    Description

      A missing parenthesis in the generated header file for a service interface breaks the "IS_..." macro, making client code that uses it fail to compile with messages like

      hello_world_processor.c:41:59: error: macro "G_TYPE_CHECK_INSTANCE_TYPE" requires 2 arguments, but only 1 given
      hello_world_processor.c:101:1: error: unterminated argument list invoking macro "G_LIKELY"
      In file included from /usr/include/glib-2.0/glib.h:79,
      from /usr/include/glib-2.0/gobject/gtype.h:26,
      from /usr/include/glib-2.0/gobject/gboxed.h:26,
      from /usr/include/glib-2.0/glib-object.h:25,
      from hello_world_processor.h:4,
      from hello_world_processor.c:1:

      I'll attach a patch with the fix.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: