[rtems commit] splinkersets01: Fix declaration

Sebastian Huber sebh at rtems.org
Sat Jan 23 19:04:08 UTC 2021


Module:    rtems
Branch:    master
Commit:    70c34fb58c1d609010b4d668b7c7527a844ec455
Changeset: http://git.rtems.org/rtems/commit/?id=70c34fb58c1d609010b4d668b7c7527a844ec455

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Jan 23 20:01:43 2021 +0100

splinkersets01: Fix declaration

GCC 11 produced warnings like this:

items.c:21:1: warning: ignoring attribute
'section (".rtemsrwset.test_rw.content.0.1")' because it conflicts with
previous 'section (".rtemsrwset.test_rw.content.1")' [-Wattributes]

items.c:23:1: warning: ignoring attribute
'section (".rtemsroset.test_ro.content.0.OC")' because it conflicts with
previous 'section (".rtemsroset.test_ro.content.1")' [-Wattributes]

---

 testsuites/sptests/splinkersets01/splinkersets01.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuites/sptests/splinkersets01/splinkersets01.h b/testsuites/sptests/splinkersets01/splinkersets01.h
index 10b4670..1133fce 100644
--- a/testsuites/sptests/splinkersets01/splinkersets01.h
+++ b/testsuites/sptests/splinkersets01/splinkersets01.h
@@ -33,9 +33,9 @@ RTEMS_LINKER_RWSET_DECLARE(test_content_rw, char);
 
 RTEMS_LINKER_ROSET_DECLARE(test_content_ro, char);
 
-RTEMS_LINKER_RWSET_ITEM_DECLARE(test_rw, const int *, a1);
+RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(test_rw, const int *, a1, 1);
 
-RTEMS_LINKER_ROSET_ITEM_DECLARE(test_ro, const int *, ca2);
+RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE(test_ro, const int *, ca2, OC);
 
 RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1);
 RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2);



More information about the vc mailing list