Skip to content

fixing ESP IDF V 5.4 compiler error [-Werror=mismatched-new-delete]#1906

Merged
zackees merged 1 commit into
FastLED:masterfrom
rommo911:master
Mar 19, 2025
Merged

fixing ESP IDF V 5.4 compiler error [-Werror=mismatched-new-delete]#1906
zackees merged 1 commit into
FastLED:masterfrom
rommo911:master

Conversation

@rommo911

Copy link
Copy Markdown
Contributor

compiling the library using latest EDP IDF V5.4 produce compiler warning as error [-Werror=mismatched-new-delete]
this is due to allocating using
new uint8_t[width * height] ( using [] )
while deleter is not using [] operators in scoped_ptr
fix : using scoped_array instead

@zackees
zackees merged commit 23bf49d into FastLED:master Mar 19, 2025
@zackees

zackees commented Mar 19, 2025

Copy link
Copy Markdown
Member

Thank you very much! This is great and very much appreciated!

@rommo911

Copy link
Copy Markdown
Contributor Author

you are welcome !

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.

2 participants