You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/04/04 16:32:41 UTC
[jira] [Commented] (THRIFT-4139) warning: 'register' storage class
specifier is deprecated and incompatible with C++1z [-Wdeprecated-register]
[ https://issues.apache.org/jira/browse/THRIFT-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955350#comment-15955350 ]
James E. King, III commented on THRIFT-4139:
--------------------------------------------
This happens on clang specifically.
I'm going to add a cmake directive to squelch it as part of THRIFT-4165, where I'm upping the minimum required cmake version to 3.1 to properly support CMAKE_CXX_STANDARD.
There will be separate efforts to build successfully with {{-std=c++14}} or {{-std=c++17}} in the future.
If you want to address it separately, add this to the end of DefinePlatformSpecific.cmake:
{noformat}
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register")
endif()
{noformat}
> warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register]
> -------------------------------------------------------------------------------------------------------------
>
> Key: THRIFT-4139
> URL: https://issues.apache.org/jira/browse/THRIFT-4139
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (General)
> Reporter: Jens Geyer
> Attachments: travis.log
>
>
> There's a number of occurrences in the travis log of this:
> {code}
> thrift/thriftl.cc:2916:2: warning: 'register' storage class specifier is
> deprecated and incompatible with C++1z [-Wdeprecated-register]
> register YY_CHAR yy_c = 1;
> ^~~~~~~~~
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)