We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64b3f74 + d10ee46 commit c7e59d6Copy full SHA for c7e59d6
portable/ThirdParty/GCC/Posix/port.c
@@ -303,8 +303,8 @@ BaseType_t xPortStartScheduler( void )
303
memset( ( void * ) &hSigSetupThread.__opaque, 0, sizeof( hSigSetupThread.__opaque ) );
304
memset( ( void * ) &hThreadKeyOnce.__opaque, 0, sizeof( hThreadKeyOnce.__opaque ) );
305
#else /* Linux PTHREAD library*/
306
- hSigSetupThread = PTHREAD_ONCE_INIT;
307
- hThreadKeyOnce = PTHREAD_ONCE_INIT;
+ hSigSetupThread = ( pthread_once_t ) PTHREAD_ONCE_INIT;
+ hThreadKeyOnce = ( pthread_once_t ) PTHREAD_ONCE_INIT;
308
#endif /* __APPLE__*/
309
310
/* Restore original signal mask. */
0 commit comments