You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Simon South (JIRA)" <ji...@apache.org> on 2016/12/11 00:55:58 UTC

[jira] [Commented] (THRIFT-3967) gobject/gparam.h:166:33: warning: enumerator value for ‘G_PARAM_DEPRECATED’ is not an integer constant expression

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

Simon South commented on THRIFT-3967:
-------------------------------------

This is apparently a compatibility issue with GCC 6. [A similar bug report|https://glyptodon.org/jira/browse/GUAC-1530] has been filed against [Apache Guacamole|http://guacamole.incubator.apache.org/] as well.

Note the warning is originating from one of the GObject headers, not Thrift's own code.

> gobject/gparam.h:166:33: warning: enumerator value for ‘G_PARAM_DEPRECATED’ is not an integer constant expression
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3967
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3967
>             Project: Thrift
>          Issue Type: Bug
>          Components: C glib - Library
>         Environment: openSUSE Tumbleweed
>            Reporter: Jens Geyer
>            Assignee: Simon South
>
> {code}
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I../../lib/c_glib/src/thrift -Isrc -I src/thrift/c_glib -Wall -Wextra -pedantic -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -MT src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.lo -MD -MP -MF src/thrift/c_glib/transport/.deps/libthrift_c_glib_la-thrift_buffered_transport.Tpo -c src/thrift/c_glib/transport/thrift_buffered_transport.c  -fPIC -DPIC -o src/thrift/c_glib/transport/.libs/libthrift_c_glib_la-thrift_buffered_transport.o
> In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:23,
>                  from src/thrift/c_glib/transport/thrift_transport.h:23,
>                  from src/thrift/c_glib/transport/thrift_buffered_transport.c:28:
> /usr/include/glib-2.0/gobject/gparam.h:166:33: warning: enumerator value for ‘G_PARAM_DEPRECATED’ is not an integer constant expression [-Wpedantic]
>    G_PARAM_DEPRECATED          = 1 << 31
>                                  ^
> {code}
> I get tons of these messages during a build.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)