Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler error: /tinyxml2.h:2268:18: error: [-Werror=overloaded-virtual=] #985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EvEggelen
Copy link

@EvEggelen EvEggelen commented Jun 6, 2024

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

…2::XMLPrinter::CloseElement(bool)' was hidden [-Werror=overloaded-virtual=]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant