clang warnings again #2055
This commit is contained in:
parent
f1c9f9d08e
commit
b41ca74386
|
@ -52,8 +52,8 @@ class AirmassModelBase;
|
||||||
#define CYCLE_ALTERNATION 2
|
#define CYCLE_ALTERNATION 2
|
||||||
|
|
||||||
class IEtbController;
|
class IEtbController;
|
||||||
class IFuelComputer;
|
struct IFuelComputer;
|
||||||
class IInjectorModel;
|
struct IInjectorModel;
|
||||||
|
|
||||||
class PrimaryTriggerConfiguration final : public TriggerConfiguration {
|
class PrimaryTriggerConfiguration final : public TriggerConfiguration {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
using SensorResult = expected<float>;
|
using SensorResult = expected<float>;
|
||||||
|
|
||||||
// Fwd declare - nobody outside of Sensor.cpp needs to see inside this type
|
// Fwd declare - nobody outside of Sensor.cpp needs to see inside this type
|
||||||
struct SensorRegistryEntry;
|
class SensorRegistryEntry;
|
||||||
class Logging;
|
class Logging;
|
||||||
|
|
||||||
class Sensor {
|
class Sensor {
|
||||||
|
|
|
@ -41,20 +41,3 @@ void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
|
|
||||||
/**
|
|
||||||
* See also getRemainingStack()
|
|
||||||
*/
|
|
||||||
int getMaxUsedStack(uint8_t *ptr, int size) {
|
|
||||||
/**
|
|
||||||
* maximum used stack size total stack buffer size minus position of first modified byte
|
|
||||||
*/
|
|
||||||
#if ! EFI_UNIT_TEST
|
|
||||||
for (int i = 0; i < size; i++) {
|
|
||||||
if (ptr[i] != CH_DBG_STACK_FILL_VALUE) {
|
|
||||||
return size - i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* EFI_UNIT_TEST */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* @return for a given stack memory region returns how much stack was ever used
|
|
||||||
*/
|
|
||||||
int getMaxUsedStack(uint8_t *ptr, int size);
|
|
||||||
|
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
|
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
|
|
Loading…
Reference in New Issue