diff --git a/examples/Test_tar_gz_tgz/test_tools.h b/examples/Test_tar_gz_tgz/test_tools.h index a326d30..4caeaec 100644 --- a/examples/Test_tar_gz_tgz/test_tools.h +++ b/examples/Test_tar_gz_tgz/test_tools.h @@ -9,13 +9,14 @@ extern "C" { #endif #if defined ESP32 - #if defined ESP_IDF_VERSION_MAJOR && ESP_IDF_VERSION_MAJOR >= 4 + #if defined ESP_IDF_VERSION_MAJOR && ESP_IDF_VERSION_MAJOR >= 4 && ESP_IDF_VERSION_MAJOR < 5 #include #else #include #endif #endif +#pragma GCC diagnostic ignored "-Wswitch" bool isManualReset() { @@ -89,7 +90,7 @@ void SerialPrintCentered(const char *s, bool open = false, bool close = false ) if( open ) Serial.println( OpenLine ); Serial.println( out ); if( close ) Serial.println( CloseLine ); - delete out; + delete[] out; } void SerialPrintfCentered(const char* format, ... )