[ 
https://issues.apache.org/jira/browse/THRIFT-3284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14651095#comment-14651095
 ] 

Hudson commented on THRIFT-3284:
--------------------------------

SUCCESS: Integrated in Thrift #1636 (See 
[https://builds.apache.org/job/Thrift/1636/])
THRIFT-3284 c_glib: Compiler: Omit processing-function defs for empty services 
(roger: rev c1febebef64f854824a5fb5a93c6d06789242942)
* compiler/cpp/src/generate/t_c_glib_generator.cc


> 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)

Reply via email to