diff --git a/FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c b/FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c index 0313b1c0ae..c2e2881ccd 100644 --- a/FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c +++ b/FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c @@ -397,7 +397,7 @@ void vLoggingPrintf( const char * pcFormat, pcTarget--; } - sscanf( pcTarget, "%8X", &ulIPAddress ); + ( void ) sscanf( pcTarget, "%8X", &ulIPAddress ); rc = sprintf( pcTarget, "%lu.%lu.%lu.%lu", ( unsigned long ) ( ulIPAddress >> 24UL ), ( unsigned long ) ( ( ulIPAddress >> 16UL ) & 0xffUL ), @@ -601,7 +601,7 @@ static void prvLogToFile( const char * pcMessage, remove( pcFullLogFileName ); } - rename( pcLogFileName, pcFullLogFileName ); + ( void ) rename( pcLogFileName, pcFullLogFileName ); ulSizeOfLoggingFile = 0; } } diff --git a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Keep_Alive/DemoTasks/KeepAliveMQTTExample.c b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Keep_Alive/DemoTasks/KeepAliveMQTTExample.c index b89bb644d8..95aa751c51 100644 --- a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Keep_Alive/DemoTasks/KeepAliveMQTTExample.c +++ b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Keep_Alive/DemoTasks/KeepAliveMQTTExample.c @@ -71,6 +71,9 @@ /* Transport interface include. */ #include "transport_plaintext.h" +/* FreeRTOS+TCP IP config include. */ +#include "FreeRTOSIPConfig.h" + /*-----------------------------------------------------------*/ /* Compile time error for undefined configs. */