mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Fix compiler warning in config assert() on 64 bit architecture (#158)
* Replace the following code that was used to force an assert: configASSERT( pxTCB->ulNotifiedValue[ uxIndexToNotify ] == ~0UL ); with: configASSERT( xTickCount == ( TickType_t ) 0 ); Because the former generates a warning on 64-bit architectures.
This commit is contained in:
		
							parent
							
								
									82fdc1c3ee
								
							
						
					
					
						commit
						700c1cf9c6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								tasks.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								tasks.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4887,7 +4887,7 @@ TickType_t uxTaskResetEventItemValue( void )
 | 
			
		|||
                    /* Should not get here if all enums are handled.
 | 
			
		||||
                     * Artificially force an assert by testing a value the
 | 
			
		||||
                     * compiler can't assume is const. */
 | 
			
		||||
                    configASSERT( pxTCB->ulNotifiedValue[ uxIndexToNotify ] == ~0UL );
 | 
			
		||||
                    configASSERT( xTickCount == ( TickType_t ) 0 );
 | 
			
		||||
 | 
			
		||||
                    break;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -5030,7 +5030,7 @@ TickType_t uxTaskResetEventItemValue( void )
 | 
			
		|||
                    /* Should not get here if all enums are handled.
 | 
			
		||||
                     * Artificially force an assert by testing a value the
 | 
			
		||||
                     * compiler can't assume is const. */
 | 
			
		||||
                    configASSERT( pxTCB->ulNotifiedValue[ uxIndexToNotify ] == ~0UL );
 | 
			
		||||
                    configASSERT( xTickCount == ( TickType_t ) 0 );
 | 
			
		||||
                    break;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue