mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 02:02:23 +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()
|
DFRobotGravitySensor::~DFRobotGravitySensor()
|
||||||
{
|
{
|
||||||
if (gravity) {
|
if (gravity) {
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||||
delete gravity;
|
delete gravity;
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
gravity = nullptr;
|
gravity = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class Power : private concurrency::OSThread
|
|||||||
void reboot();
|
void reboot();
|
||||||
// open circuit voltage lookup table
|
// open circuit voltage lookup table
|
||||||
uint8_t low_voltage_counter;
|
uint8_t low_voltage_counter;
|
||||||
int32_t lastLogTime = 0;
|
uint32_t lastLogTime = 0;
|
||||||
#ifdef DEBUG_HEAP
|
#ifdef DEBUG_HEAP
|
||||||
uint32_t lastheap;
|
uint32_t lastheap;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user