You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2026/09/08 13:46:00 UTC
[jira] [Comment Edited] (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=18112791#comment-18112791 ]
Sylwester Lachiewicz edited comment on THRIFT-4139 at 9/8/26 1:45 PM:
----------------------------------------------------------------------
The warning came from the {{thriftl.cc}} that flex generates, not from the {{thriftl.ll}} input. flex dropped the {{register}} storage class specifier from its skeleton in 2.6.0 (2015), so any current toolchain generates a lexer without it. I have not run a build against a pre-2.6 flex. Resolving as Fixed.
was (Author: slachiewicz):
The flex lexer no longer emits the {{register}} storage class specifier (zero occurrences in [compiler/cpp/src/thrift/thriftl.ll|https://github.com/apache/thrift/blob/master/compiler/cpp/src/thrift/thriftl.ll]). Resolving as Fixed.
> 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
> Priority: Major
> 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
(v8.20.10#820010)