diff options
author | Chris Johns <chrisj@rtems.org> | 2022-06-20 12:04:43 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-06-21 10:21:13 +1000 |
commit | 6b2c5b5da1a0394c9ffa81fc55e73920be9f6bff (patch) | |
tree | 9009f1b3038a36ecd7c3ada3170c4603aca36d9d /testsuites/psxtests/psxkey07 | |
parent | jffs2: Update baseline version to Linux v5.9 (diff) | |
download | rtems-6b2c5b5da1a0394c9ffa81fc55e73920be9f6bff.tar.bz2 |
testsuite: Fix gcc 12 warnings
Diffstat (limited to 'testsuites/psxtests/psxkey07')
-rw-r--r-- | testsuites/psxtests/psxkey07/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c index d9696a0e28..593df739db 100644 --- a/testsuites/psxtests/psxkey07/init.c +++ b/testsuites/psxtests/psxkey07/init.c @@ -55,6 +55,7 @@ rtems_task Test_Thread(rtems_task_argument argument) int *value_p, *value_p2; value_p = malloc( sizeof( int ) ); + rtems_test_assert(value_p != NULL); sc = pthread_setspecific( Key, value_p ); rtems_test_assert( !sc ); @@ -119,7 +120,7 @@ rtems_task Init(rtems_task_argument argument) pthread_mutex_lock( &mutex1 ); rc = rtems_task_create( - rtems_build_name( 'T', 'E', 'S', 'T' ), + rtems_build_name( 'T', 'E', 'S', 'T' ), 1, RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_MODES, |