Opened on 04/16/18 at 05:22:14
Closed on 04/17/18 at 05:06:01
#3397 closed defect (fixed)
The register keyword is deprecated in C++11
Reported by: | Sebastian Huber | Owned by: | Sebastian Huber |
---|---|---|---|
Priority: | normal | Milestone: | 5.1 |
Component: | unspecified | Version: | 5 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
The following code gives a warning with GCC and -std=c++17:
void f(void) { register int i; }
test.cc: In function ‘void f()’: test.cc:3:15: warning: ISO C++1z does not allow ‘register’ storage class specifier [-Wregister] register int i; ^
Remove the use of the register keyword at least in the public header files for C++ compatibility.
Change History (1)
comment:1 Changed on 04/17/18 at 05:06:01 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In f35c3be9/rtems: