User Activity

  • Posted a comment on discussion Development on cppcheck

    I couldn't understand this so I'm reporting it. // void *Allocate(void); // void Free(void *p); void f(void) { void *p; p = Allocate(); if(p != NULL) { Free((void *)p); } } cppcheck reports: style: Argument '(void*)p' to function Free is always 1 [constArgument] If the (admittedly unnecessary) void pointer cast is removed from the Free() call, it disappears. Used cppcheck version is 1.89. Older version 1.77 did not report this.

View All

Personal Data

Username:
rawl
Joined:
2019-10-02 06:42:36

Projects

  • No projects to display.

Personal Tools