From 3856a82b4345295df984ede2fdbad7bfa569228b Mon Sep 17 00:00:00 2001 From: Thomas Pedersen Date: Thu, 17 Dec 2020 14:53:28 -0800 Subject: [PATCH] Posix: fix build failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: a48f137896b9 ("Posix Port: Comment and remove unused variables (#230)") The above commit introduced the compile error: /FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c: In function ‘prvSetupSignalsAndSchedulerPolicy’: /FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:528:28: error: incompatible type for argument 3 of ‘pthread_sigmask’ *&xSchedulerOriginalSignalMask ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/signal.h:359, from FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c:53: /usr/include/x86_64-linux-gnu/bits/sigthread.h:33:31: note: expected ‘__sigset_t * restrict’ {aka ‘struct * restrict’} but argument is of type ‘sigset_t’ {aka ‘struct ’} __sigset_t *__restrict __oldmask)__THROW; --- portable/ThirdParty/GCC/Posix/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/ThirdParty/GCC/Posix/port.c b/portable/ThirdParty/GCC/Posix/port.c index 05d89ff14c..012e8b0a7d 100644 --- a/portable/ThirdParty/GCC/Posix/port.c +++ b/portable/ThirdParty/GCC/Posix/port.c @@ -525,7 +525,7 @@ int iRet; * will be unblocked. */ (void)pthread_sigmask( SIG_SETMASK, &xAllSignals, - *&xSchedulerOriginalSignalMask ); + &xSchedulerOriginalSignalMask ); /* SIG_RESUME is only used with sigwait() so doesn't need a handler. */