svn commit: r294246 - user/ngie/socket-tests/tools/regression/sockets/unix_cmsg
Bruce Evans
brde at optusnet.com.au
Thu Jan 21 10:35:52 UTC 2016
On Wed, 20 Jan 2016, NGie Cooper wrote:
>> On Jan 17, 2016, at 21:13, Bruce Evans <brde at optusnet.com.au> wrote:
>>
>> On Mon, 18 Jan 2016, Garrett Cooper wrote:
>>
>>> Log:
>>> Checkpoint work to bump WARNS to 6
>>>
>>> Try to fix -Wcast-align issues by using bcopy to assign the values in
>>> the structure.
>>
>> Using the standard memmove() instead of the BSD bcopy() might be considered
>> a style bug. However, this is a case where memmove() works better. The
> ...
> I tried memmove and unfortunately it failed similar to bcopy. I think I need to do “deeper copying†in the structures to ensure that all of the fields are properly copied over in the bcopy, but I’ll look at what gdb says first.
I didn't know that using bcopy didn't actually work. On x86 you should
expect it to not change the object code except for bugs in the conversion
or some complication which is hopefully localized.
Bruce
More information about the svn-src-user
mailing list