Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-11-12 20:28:38 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-11-12 20:28:38 +0300
commit7adaca6e2fdcdf3b2cc540edbd62411c625ab120 (patch)
tree2a6b1d56db94f8d3e8b5f251a4de182d1892146f
parentbb7522106bfbe952073bed10f06abe31777b33f5 (diff)
Fixed benign static analysis errors
-rw-r--r--src/ObjectModel/ObjectModel.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/ObjectModel/ObjectModel.h b/src/ObjectModel/ObjectModel.h
index 60082fcd..3fbc9bc5 100644
--- a/src/ObjectModel/ObjectModel.h
+++ b/src/ObjectModel/ObjectModel.h
@@ -61,8 +61,12 @@ enum class ExpansionDetail : uint32_t
#endif
-class ObjectModel; // forward declaration
-class ObjectModelArrayDescriptor; // forward declaration
+// Forward declarations
+class ObjectModel;
+class ObjectModelArrayDescriptor;
+class ObjectModelTableEntry;
+class IoPort;
+class UniqueId;
// Encapsulated time_t, used to facilitate overloading the ExpressionValue constructor
struct DateTime
@@ -72,12 +76,6 @@ struct DateTime
time_t tim;
};
-// Forward declarations
-class ObjectModelTableEntry;
-class ObjectModel;
-class IoPort;
-class UniqueId;
-
// Struct used to hold the expressions with polymorphic types
struct ExpressionValue
{
@@ -119,7 +117,7 @@ struct ExpressionValue
explicit ExpressionValue(uint64_t u) noexcept : type((uint32_t)TypeCode::Uint64) { Set56BitValue(u); }
explicit constexpr ExpressionValue(const ObjectModel* null om) noexcept : type((om == nullptr) ? (uint32_t)TypeCode::None : (uint32_t)TypeCode::ObjectModel_tc), param(0), omVal(om) { }
constexpr ExpressionValue(const ObjectModel *null om, uint8_t tableNumber) noexcept : type((om == nullptr) ? (uint32_t)TypeCode::None : (uint32_t)TypeCode::ObjectModel_tc), param(tableNumber), omVal(om) { }
- explicit constexpr ExpressionValue(const char *s) noexcept : type((uint32_t)TypeCode::CString), param(0), sVal(s) { }
+ explicit constexpr ExpressionValue(const char *_ecv_array s) noexcept : type((uint32_t)TypeCode::CString), param(0), sVal(s) { }
explicit constexpr ExpressionValue(const ObjectModelArrayDescriptor *omad) noexcept : type((uint32_t)TypeCode::Array), param(0), omadVal(omad) { }
explicit constexpr ExpressionValue(IPAddress ip) noexcept : type((uint32_t)TypeCode::IPAddress_tc), param(0), uVal(ip.GetV4LittleEndian()) { }
explicit constexpr ExpressionValue(nullptr_t dummy) noexcept : type((uint32_t)TypeCode::None), param(0), uVal(0) { }