mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-19 17:22:59 +00:00
fix some minor compiler warnings. Note: The 'delete' is actually safe, so we suppress the warning.
This commit is contained in:
@@ -13,7 +13,10 @@ DFRobotGravitySensor::DFRobotGravitySensor() : TelemetrySensor(meshtastic_Teleme
|
||||
DFRobotGravitySensor::~DFRobotGravitySensor()
|
||||
{
|
||||
if (gravity) {
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
delete gravity;
|
||||
#pragma GCC diagnostic pop
|
||||
gravity = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user