Enabled style and CERT-C addon for CPPCHECK (#869)
* Enabled style and CERT-C addon for CPPCHECK with some suppressions and fixed the defects found..
This commit is contained in:
@@ -412,9 +412,7 @@ void Life_Safety_Zone_Out_Of_Service_Set(uint32_t object_instance, bool value)
|
||||
|
||||
pObject = Keylist_Data(Object_List, object_instance);
|
||||
if (pObject) {
|
||||
if (pObject->Out_Of_Service != value) {
|
||||
pObject->Out_Of_Service = value;
|
||||
}
|
||||
pObject->Out_Of_Service = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -614,9 +612,7 @@ void Life_Safety_Zone_Maintenance_Required_Set(
|
||||
|
||||
pObject = Keylist_Data(Object_List, object_instance);
|
||||
if (pObject) {
|
||||
if (pObject->Maintenance_Required != value) {
|
||||
pObject->Maintenance_Required = value;
|
||||
}
|
||||
pObject->Maintenance_Required = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user