You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2015/08/02 16:35:04 UTC
[jira] [Resolved] (THRIFT-3284) c_glib: Empty service produces
unused-variable warning
[ https://issues.apache.org/jira/browse/THRIFT-3284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-3284.
---------------------------------
Resolution: Fixed
Thanks Simon!
> 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
> Labels: c_glib, compiler, test
>
> 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)