mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-22 01:30:31 -05:00
Fix optimization bug and cleanup (#1363)
- Compiling Demo/Common/Minimal/TimerDemo.c with "gcc -flto" breaks the tests, so add "volatile" modifier to "ucOneShotTimerCounter" to fix this. - In Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/main_networking.c print the network configuration even more visible. - In MessageBufferDemo.c and Demo/Posix_GCC/main_full.c fix compiler warnings from "gcc -Wwrite-strings" by adding a const modifier. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
parent
722d17b13a
commit
e0aa5eac74
4 changed files with 6 additions and 4 deletions
|
|
@ -259,8 +259,10 @@ BaseType_t xTasksAlreadyCreated = pdFALSE;
|
|||
#else
|
||||
FreeRTOS_GetAddressConfiguration( &ulIPAddress, &ulNetMask, &ulGatewayAddress, &ulDNSServerAddress );
|
||||
#endif /* defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) */
|
||||
FreeRTOS_printf( ( "Network Configuration:\r\n\r\n" ) );
|
||||
|
||||
FreeRTOS_inet_ntoa( ulIPAddress, cBuffer );
|
||||
FreeRTOS_printf( ( "\r\n\r\nIP Address: %s\r\n", cBuffer ) );
|
||||
FreeRTOS_printf( ( "IP Address: %s\r\n", cBuffer ) );
|
||||
|
||||
FreeRTOS_inet_ntoa( ulNetMask, cBuffer );
|
||||
FreeRTOS_printf( ( "Subnet Mask: %s\r\n", cBuffer ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue