diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2022-08-16 11:58:15 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-19 15:34:46 -0500 |
commit | f930206724e65f188fe3b095826ceb1b11000f65 (patch) | |
tree | 8463efbd79cd3c87b4e7b7b84ac627a47f22328e /cpukit/include | |
parent | threads.h: Add pragmas to get rid of gcc 12 errors (diff) | |
download | rtems-f930206724e65f188fe3b095826ceb1b11000f65.tar.bz2 |
linkersets.h: Fix gcc 12 warning
Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is
out of bounds.
Updates #4662
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/linkersets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h index cdfcd54cde..45f9dc1ef7 100644 --- a/cpukit/include/rtems/linkersets.h +++ b/cpukit/include/rtems/linkersets.h @@ -92,7 +92,7 @@ extern "C" { extern RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[] #define RTEMS_LINKER_RWSET( set, type ) \ - RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 0 ] \ + RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 1 ] \ RTEMS_SECTION( ".rtemsrwset." #set ".begin" ) RTEMS_USED; \ RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[ 0 ] \ RTEMS_SECTION( ".rtemsrwset." #set ".end" ) RTEMS_USED |