summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-16 07:34:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-16 07:37:06 +0200
commitf35c3be9f8968daaa1b3e81808f9b99079d17a68 (patch)
treeadb84f327c8e50e83b2107d6539fa8fa3d5aca09 /cpukit/score/cpu/m68k/include/rtems/score/cpu.h
parentlibdl: Fix the tests loading the correct files (diff)
downloadrtems-f35c3be9f8968daaa1b3e81808f9b99079d17a68.tar.bz2
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.
Diffstat (limited to 'cpukit/score/cpu/m68k/include/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/m68k/include/rtems/score/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
index fc6847f37e..9b140d0da3 100644
--- a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
@@ -501,7 +501,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
- register int dumby; \
+ int dumby; \
\
__asm__ volatile ( \
" clr.l %1\n" \
@@ -521,7 +521,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];
#elif ( M68K_HAS_EXTB_L == 1 )
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
- register int dumby; \
+ int dumby; \
\
__asm__ volatile ( " move.w %2,%1\n" \
" lsr.w #8,%1\n" \
@@ -539,7 +539,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];
#else
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
{ \
- register int dumby; \
+ int dumby; \
\
__asm__ volatile ( " move.w %2,%1\n" \
" lsr.w #8,%1\n" \