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:
@@ -348,9 +348,9 @@ bool Integer_Value_Description_Set(
|
||||
* @param object_instance - object-instance number of the object
|
||||
* @return description text or NULL if not found
|
||||
*/
|
||||
char *Integer_Value_Description_ANSI(uint32_t object_instance)
|
||||
const char *Integer_Value_Description_ANSI(uint32_t object_instance)
|
||||
{
|
||||
char *name = NULL;
|
||||
const char *name = NULL;
|
||||
struct integer_object *pObject;
|
||||
|
||||
pObject = Integer_Value_Object(object_instance);
|
||||
@@ -358,7 +358,7 @@ char *Integer_Value_Description_ANSI(uint32_t object_instance)
|
||||
if (pObject->Description == NULL) {
|
||||
name = "";
|
||||
} else {
|
||||
name = (char *)pObject->Description;
|
||||
name = pObject->Description;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user