[
https://issues.apache.org/jira/browse/THRIFT-3331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14877376#comment-14877376
]
Simon South commented on THRIFT-3331:
-------------------------------------
Which version of gcc are you using, [~jensg]? I understand why the compiler is
complaining about this code but I haven't been able to reproduce the warning
myself (using gcc 4.8.4), even when explicitly setting
{{-Wmaybe-uninitialized}}.
> warning: ‘etype’ may be used uninitialized in this function
> -----------------------------------------------------------
>
> Key: THRIFT-3331
> URL: https://issues.apache.org/jira/browse/THRIFT-3331
> Project: Thrift
> Issue Type: Bug
> Components: C glib - Compiler
> Affects Versions: 0.9.3
> Environment: openSuse 13.2
> Reporter: Jens Geyer
> Assignee: Simon South
> Priority: Minor
>
> Compiling the compiler produces this warning:
> {code}
> src/generate/t_c_glib_generator.cc: In member function ‘void
> t_c_glib_generator::generate_object(t_struct*)’:
> src/generate/t_c_glib_generator.cc:3122:59: warning: ‘etype’ may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> if ((etype->is_base_type() && !etype->is_string())
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)