From 65e027c9ed2b65fcd6737119b9cd6640e85c54b9 Mon Sep 17 00:00:00 2001 From: Aschref Ben Thabet Date: Tue, 18 Aug 2020 17:52:56 +0200 Subject: 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 02d98b7623..186e1b71f0 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 -- cgit v1.2.3