You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/Development/Arduino/libraries/ArduinoIoTCloud/src/ota/interface/OTAInterfaceDefault.cpp: In member function 'virtual OTACloudProcessInterface::State OTADefaultCloudProcessInterface::fetch()':
~/Development/Arduino/libraries/ArduinoIoTCloud/src/ota/interface/OTAInterfaceDefault.cpp:150:12: warning: deleting object of polymorphic class type 'HttpClient' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
delete http_client;
^~~~~~~~~~~
______________________________________________
~/Development/Arduino/libraries/ArduinoIoTCloud/src/ota/interface/OTAInterfaceDefault.cpp: In member function 'virtual void OTADefaultCloudProcessInterface::reset()':
~/Development/Arduino/libraries/ArduinoIoTCloud/src/ota/interface/OTAInterfaceDefault.cpp:226:12: warning: deleting object of polymorphic class type 'HttpClient' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
delete http_client;
^~~~~~~~~~~
Activity
[-]non-virtual destructor compiler warnings[/-][+]`-Wdelete-non-virtual-dtor` compiler warnings[/+]pennam commentedon Feb 11, 2025
Proposed solution can be found here arduino/ArduinoCore-API#218