Simon South created THRIFT-3284: ----------------------------------- Summary: c_glib: Empty service produces unused-variable warning Key: THRIFT-3284 URL: https://issues.apache.org/jira/browse/THRIFT-3284 Project: Thrift Issue Type: Bug Components: C glib - Compiler Affects Versions: 0.9.3 Environment: Cloud 9 (Ubuntu 14.04.2 LTS; gcc 4.8.2) Reporter: Simon South Assignee: Simon South Priority: Minor
Building the test suite for C (GLib) yields this warning from the compiler: {code} 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] = { {code} 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)