Changeset f35c3be9 in rtems for cpukit/score/cpu/m68k

Timestamp:
04/16/18 05:34:18 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
90013f59
Parents:
696b9121
git-author:
Sebastian Huber <sebastian.huber@…> (04/16/18 05:34:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/16/18 05:37:06)
Message:

Remove register keyword from public header files

The following code

void f(void)
{

register int i;

}

gives a warning with GCC and -std=c++17

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;


and clang with -std=c++14

test.cc:3:3: warning: 'register' storage class specifier is deprecated
and incompatible with C++1z [-Wdeprecated-register]

register int i;

1 warning generated.

Remove the use of the register keyword at least in the public header
files for C++ compatibility.

Close #3397.

(No files)

Note: See TracChangeset for help on using the changeset viewer.