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

c_glib: Empty service produces unused-variable warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.3
    • 0.9.3
    • C glib - Compiler
    • Cloud 9 (Ubuntu 14.04.2 LTS; gcc 4.8.2)

    • Patch Available
    • Patch

    Description

      Building the test suite for C (GLib) yields this warning from the compiler:

      gen-c_glib/t_test_empty_service.c:176:1: warning: ‘t_test_empty_service_processor_process_function_defs’ defined but not used [-Wunused-variable]
       t_test_empty_service_processor_process_function_defs[0] = {
      

      The compiler should not generate a processing-function-definition array for a service with no methods, considering it is smart enough in this case not to generate the code that would use it.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: