To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=111747 Issue #|111747 Summary|svl: invalid use of memset Component|framework Version|current Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|PATCH Priority|P3 Subcomponent|code Assigned to|mst Reported by|b_michaelsen
------- Additional comments from [email protected] Fri May 21 10:10:35 +0000 2010 ------- gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3 rightfully complains about broken usage of memset: In function 'void* memset(void*, int, size_t)', inlined from 'SfxULongRanges& SfxULongRanges::operator/=(const SfxULongRanges&)' at ..../svl/source/items/nranges.cxx:693: /usr/include/bits/string3.h:82: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters In function 'void* memset(void*, int, size_t)', inlined from 'SfxULongRanges& SfxULongRanges::operator-=(const SfxULongRanges&)' at ..../svl/source/items/nranges.cxx:483: /usr/include/bits/string3.h:82: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters In both cases the memset is directly followed by a memcpy, so it is superfluous anyway and should simply be removed. Assigned to mst because he has a fitting cws at hand. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
