[rtems commit] psxkey01: Fix configuration
Sebastian Huber
sebh at rtems.org
Thu Aug 20 06:56:46 UTC 2020
Module: rtems
Branch: master
Commit: 65e027c9ed2b65fcd6737119b9cd6640e85c54b9
Changeset: http://git.rtems.org/rtems/commit/?id=65e027c9ed2b65fcd6737119b9cd6640e85c54b9
Author: Aschref Ben Thabet <aschref.ben-thabet at embedded-brains.de>
Date: Tue Aug 18 17:52:56 2020 +0200
psxkey01: Fix configuration
Key_ID array must have the right size, it shall have a value greater
than zero.
Note: In Standard C and C++, zero-size array is not
allowed..
---
testsuites/psxtests/psxkey01/system.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testsuites/psxtests/psxkey01/system.h b/testsuites/psxtests/psxkey01/system.h
index 02d98b7..186e1b7 100644
--- a/testsuites/psxtests/psxkey01/system.h
+++ b/testsuites/psxtests/psxkey01/system.h
@@ -41,7 +41,7 @@
#endif
TEST_EXTERN pthread_t Init_id;
-TEST_EXTERN pthread_key_t Key_id[CONFIGURE_MAXIMUM_POSIX_KEYS - 1];
+TEST_EXTERN pthread_key_t Key_id[ CONFIGURE_MAXIMUM_POSIX_KEYS ];
TEST_EXTERN uint32_t Data_array[ CONFIGURE_MAXIMUM_TASKS ];
#undef TEST_EXTERN
More information about the vc
mailing list