mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 10:42:33 -05:00 
			
		
		
		
	Fix warning introduced in PR 730 (#735)
The change addresses the following warning:
```
tasks.c:5549:40: warning: assignment discards 'volatile' qualifier from
pointer target type [-Wdiscarded-qualifiers]
 5549 |             pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
      |
```
Also add the "Build Posix_GCC Demo for Coverage Test" in the PR checks
as coverage test target treats warnings as errors and therefore, will
catch such warnings in PR checks.
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
			
			
This commit is contained in:
		
							parent
							
								
									b51a37314c
								
							
						
					
					
						commit
						85d2cba801
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								.github/workflows/kernel-demos.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/kernel-demos.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -85,6 +85,11 @@ jobs:
 | 
			
		|||
        working-directory: FreeRTOS/Demo/Posix_GCC
 | 
			
		||||
        run: make -j
 | 
			
		||||
 | 
			
		||||
      - name: Build Posix_GCC Demo for Coverage Test
 | 
			
		||||
        shell: bash
 | 
			
		||||
        working-directory: FreeRTOS/Demo/Posix_GCC
 | 
			
		||||
        run: make -j COVERAGE_TEST=1
 | 
			
		||||
 | 
			
		||||
  MSP430-GCC:
 | 
			
		||||
    name: GNU MSP430 Toolchain
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								tasks.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								tasks.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5546,7 +5546,7 @@ static void prvCheckTasksWaitingTermination( void )
 | 
			
		|||
        pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority;
 | 
			
		||||
        pxTaskStatus->pxStackBase = pxTCB->pxStack;
 | 
			
		||||
        #if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
 | 
			
		||||
            pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
 | 
			
		||||
            pxTaskStatus->pxTopOfStack = ( StackType_t * ) pxTCB->pxTopOfStack;
 | 
			
		||||
            pxTaskStatus->pxEndOfStack = pxTCB->pxEndOfStack;
 | 
			
		||||
        #endif
 | 
			
		||||
        pxTaskStatus->xTaskNumber = pxTCB->uxTCBNumber;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue