diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-09 00:41:45 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-09 00:41:45 +0300 |
commit | 890d18e32fa955feb4a6846cc47f282397e93549 (patch) | |
tree | de867399672145f14312defe6fdc726f61e967c8 | |
parent | 27840753979b35ceaf86570cc8a1e4eb614d1bc6 (diff) |
Fixes for static analysis
-rw-r--r-- | src/Fans/FansManager.h | 2 | ||||
-rw-r--r-- | src/ObjectModel/ObjectModel.h | 2 | ||||
-rw-r--r-- | src/bossa/Samba.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Fans/FansManager.h b/src/Fans/FansManager.h index 382b722c..0bcc6702 100644 --- a/src/Fans/FansManager.h +++ b/src/Fans/FansManager.h @@ -60,7 +60,7 @@ public: private: LocalFan *CreateLocalFan(uint32_t fanNum, const char *pinNames, PwmFrequency freq, const StringRef& reply) noexcept; - Fan *fans[MaxFans]; + Fan *_ecv_from fans[MaxFans]; }; #endif /* SRC_FANS_FANSMANAGER_H_ */ diff --git a/src/ObjectModel/ObjectModel.h b/src/ObjectModel/ObjectModel.h index abbf1f5d..60082fcd 100644 --- a/src/ObjectModel/ObjectModel.h +++ b/src/ObjectModel/ObjectModel.h @@ -376,7 +376,7 @@ public: bool IsObsolete() const noexcept { return ((uint8_t)flags & (uint8_t)ObjectModelEntryFlags::obsolete) != 0; } // See whether we should add the value of this element to the buffer, returning true if it matched the filter and we did add it - bool ReportAsJson(OutputBuffer* buf, ObjectExplorationContext& context, const ObjectModelClassDescriptor *classDescriptor, const ObjectModel *self, const char* filter, bool first) const noexcept; + bool ReportAsJson(OutputBuffer* buf, ObjectExplorationContext& context, const ObjectModelClassDescriptor *classDescriptor, const ObjectModel *_ecv_from self, const char *_ecv_array filter, bool first) const noexcept; // Return the name of this field const char *_ecv_array GetName() const noexcept { return name; } diff --git a/src/bossa/Samba.h b/src/bossa/Samba.h index e404e01e..3e471499 100644 --- a/src/bossa/Samba.h +++ b/src/bossa/Samba.h @@ -61,7 +61,7 @@ public: void setDebug(bool debug) noexcept { _debug = debug; } #endif - const SerialPort& getSerialPort() noexcept { return *_port; } + const SerialPort &_ecv_from getSerialPort() noexcept { return *_port; } // Extended SAM-BA functions bool canChipErase() noexcept { return _canChipErase; } |