[rtems commit] rtems/test.h: Use __attribute__

Sebastian Huber sebh at rtems.org
Thu Mar 16 15:00:22 UTC 2023


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar 16 16:14:58 2023 +0100

rtems/test.h: Use __attribute__

---

 cpukit/include/rtems/test.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h
index e1f2fe90b9..0eb2c37b67 100644
--- a/cpukit/include/rtems/test.h
+++ b/cpukit/include/rtems/test.h
@@ -2365,8 +2365,8 @@ T_case_context T_case_instance_##name = {			\
     NULL							\
 };								\
 static T_case_context * const T_case_item_##name		\
-__attribute((__section__(".rtemsroset._T.content.0." #name)))	\
-__attribute((__used__)) = &T_case_instance_##name;		\
+__attribute__((__section__(".rtemsroset._T.content.0." #name)))	\
+__attribute__((__used__)) = &T_case_instance_##name;		\
 void T_case_body_##name(void)
 #else /* __rtems__ */
 #define T_TEST_CASE_FIXTURE(name, fixture)			\
@@ -2377,7 +2377,7 @@ T_case_context T_case_instance_##name = {			\
     fixture,							\
     NULL							\
 };								\
-__attribute((__constructor__)) static void			\
+__attribute__((__constructor__)) static void			\
 T_case_register_##name(void)					\
 {								\
 	T_case_register(&T_case_instance_##name);		\



More information about the vc mailing list