GitHub user simonsouth opened a pull request: https://github.com/apache/thrift/pull/575
c_glib: Compiler: Omit processing-function defs for empty services With this change the compiler omits the processing-function-definition array for a service with no methods, corresponding to the checks on lines 2555 and 2562 that omit the code that would use this array under the same condition. You can merge this pull request into a Git repository by running: $ git pull https://github.com/simonsouth/thrift thrift-3284-c_glib-empty-service-produces-unused-variable-warning Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/575.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #575 ---- commit c0b20aceb75111e1f5fd7763bc8ff02188b44f37 Author: Simon South <sso...@simonsouth.com> Date: 2015-08-01T10:57:21Z c_glib: Compiler: Omit processing-function defs for empty services ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---