Changeset 0d51b6d8 in rtems

Timestamp:
06/28/18 12:39:37 (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
5, master
Children:
26c3f9f
Parents:
408fad3
git-author:
Daniel Hellstrom <daniel@…> (06/28/18 12:39:37)
git-committer:
Daniel Hellstrom <daniel@…> (08/24/18 13:51:39)
Message:

capture: prevent unaligned access when reading time

LLVM warns about this:

cpukit/libmisc/capture/capture.c:405:30: warning:

taking address of packed member 'time' of class or structure
'rtems_capture_record' may result in an unaligned pointer value
[-Waddress-of-packed-member]

rtems_capture_get_time (&in.time);

And on sparc it generates an unaligned trap which makes smpcapture01
and smpcapture02 test to fail on sparc.

(No files)

Note: See TracChangeset for help on using the changeset viewer.