Skip to content

Argument names different between declaration and definition #234

@rolegic

Description

@rolegic

Style warnings raised by cppcheck

cJSON.c:224: style: Function 'cJSON_Delete' argument 1 names different: declaration 'c' definition 'item'.
cJSON.c:1271: style: Function 'cJSON_PrintPreallocated' argument 2 names different: declaration 'buffer' definition 'buf'.
cJSON.c:1271: style: Function 'cJSON_PrintPreallocated' argument 3 names different: declaration 'length' definition 'len'.
cJSON.c:1272: style: Function 'cJSON_PrintPreallocated' argument 4 names different: declaration 'format' definition 'fmt'.
cJSON.c:2460: style: Function 'cJSON_CreateBool' argument 1 names different: declaration 'boolean' definition 'b'.
  • cJSON_Delete
    CJSON_PUBLIC(void) cJSON_Delete(cJSON *c);
    CJSON_PUBLIC(void) cJSON_Delete(cJSON *item)
    
  • PrintPreallocated
    cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);
    cJSON_PrintPreallocated(cJSON *item, char *buf, const int len, const cJSON_bool fmt)
    
  • cJSON_CreateBool
    cJSON_CreateBool(cJSON_bool boolean)
    cJSON_CreateBool(cJSON_bool b)
    

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions