source: rtems/testsuites/sptests/splinkersets01/splinkersets01.h @ 70c34fb

Last change on this file since 70c34fb was 70c34fb, checked in by Sebastian Huber <sebastian.huber@…>, on 01/23/21 at 19:01:43

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]

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 * Copyright (c) 2015, 2016 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#ifndef SPLINKERSET01_H
16#define SPLINKERSET01_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22#include <rtems/linkersets.h>
23
24extern const int a[4];
25
26extern const int ca[5];
27
28RTEMS_LINKER_RWSET_DECLARE(test_rw, const int *);
29
30RTEMS_LINKER_ROSET_DECLARE(test_ro, const int *);
31
32RTEMS_LINKER_RWSET_DECLARE(test_content_rw, char);
33
34RTEMS_LINKER_ROSET_DECLARE(test_content_ro, char);
35
36RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(test_rw, const int *, a1, 1);
37
38RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE(test_ro, const int *, ca2, OC);
39
40RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1);
41RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2);
42RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_3);
43
44RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const int content_ro_1);
45RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_2);
46RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_3);
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* SPLINKERSET01_H */
Note: See TracBrowser for help on using the repository browser.