Fix compiler error: /tinyxml2.h:2268:18: error: [-Werror=overloaded-virtual=] #985
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I get an error after updating to the latest ESP idf v5.2.1 ( platformIO Espressif 32 v6.7.0 ) when compiling tinyxml2.
But making explicit what was intended this error is solved.
See log below:
Compiling .pio/build/4d_systems_esp32s3_gen4_r8n16/liba1d/tinyxml2/tinyxml2.o
In file included from .pio/libdeps/4d_systems_esp32s3_gen4_r8n16/tinyxml2/contrib/html5-printer.cpp:43:
.pio/libdeps/4d_systems_esp32s3_gen4_r8n16/tinyxml2/contrib/../tinyxml2.h:2268:18: error: 'virtual void tinyxml2::XMLPrinter::CloseElement(bool)' was hidden [-Werror=overloaded-virtual=]
2268 | virtual void CloseElement( bool compactMode=false );
| ^~~~~~~~~~~~
.pio/libdeps/4d_systems_esp32s3_gen4_r8n16/tinyxml2/contrib/html5-printer.cpp:66:18: note: by 'virtual void XMLPrinterHTML5::CloseElement()'
66 | virtual void CloseElement () {
| ^~~~~~~~~~~~
cc1plus: some warnings being treated as errors
*** [.pio/build/4d_systems_esp32s3_gen4_r8n16/liba1d/tinyxml2/contrib/html5-printer.o] Error 1