https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108944
Bug ID: 108944 Summary: libgm2/libm2pim/sckt.cc:254:3: warning: memset() called to fill 0 bytes. [memsetZeroBytes] Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Source code is memset (&sa, sizeof (struct sockaddr_in), 0); Parameters wrong way around. Maybe better code: memset (&sa, 0, sizeof (struct sockaddr_in)); Thanks to static analyser cppcheck for finding this problem.