You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/09/16 03:39:46 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14746647#comment-14746647 ] 

ASF GitHub Bot commented on THRIFT-3284:
----------------------------------------

Github user jfarrell commented on the pull request:

    https://github.com/apache/thrift/pull/575#issuecomment-140595297
  
    Committed as part of THRIFT-3284


> 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
>             Fix For: 0.9.3
>
>
> 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)