mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-13 22:32:27 +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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class Power : private concurrency::OSThread
|
||||
void reboot();
|
||||
// open circuit voltage lookup table
|
||||
uint8_t low_voltage_counter;
|
||||
int32_t lastLogTime = 0;
|
||||
uint32_t lastLogTime = 0;
|
||||
#ifdef DEBUG_HEAP
|
||||
uint32_t lastheap;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user