Skip to content

Commit 5455498

Browse files
committed
Fix gcc warning in posix port
Fix warning from "gcc -Wsign-compare" in the file portable/ThirdParty/GCC/Posix/port.c since PTHREAD_STACK_MIN is used from system headers. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
1 parent 17dfd0f commit 5455498

File tree

1 file changed

+1
-1
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+1
-1
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
180180
thread->xDying = pdFALSE;
181181

182182
/* Ensure ulStackSize is at least PTHREAD_STACK_MIN */
183-
ulStackSize = (ulStackSize < PTHREAD_STACK_MIN) ? PTHREAD_STACK_MIN : ulStackSize;
183+
ulStackSize = (ulStackSize < ( size_t ) ( PTHREAD_STACK_MIN ) ) ? ( size_t ) ( PTHREAD_STACK_MIN ) : ulStackSize;
184184

185185
pthread_attr_init( &xThreadAttributes );
186186
iRet = pthread_attr_setstacksize( &xThreadAttributes, ulStackSize );

0 commit comments

Comments
 (0)