Michael H. Schimek
-
2016-10-17
- status: open --> closed-fixed
- assigned_to: Michael H. Schimek
- Group: -->
test-pdc.h:92:45: warning: argument to 'sizeof' in 'int memcmp(const void, const void, size_t)' call is the same expression as the first source; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
Source code is
return (0 == memcmp (this, &other, sizeof (this)));
Maybe better code
return (0 == memcmp (this, &other, sizeof (*this)));