Changeset 59d0e6a in rtems for cpukit/score/cpu/mips

Timestamp:
10/05/20 14:20:44 (4 years ago)
Author:
Frank Kühndel <frank.kuehndel@…>
Branches:
master
Children:
0007d65
Parents:
3bbd476
git-author:
Frank Kühndel <frank.kuehndel@…> (10/05/20 14:20:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/10/20 13:02:56)
Message:

capture: Fix unaligned pointer value warning

rtems_name is a four byte integer.
Giving an rtems_name as value instead of a pointer to ctrace_task_name_add()
fixes not only the compiler warning but it is also a bit more safe

For those who have asked for the warning:

../../../cpukit/libmisc/capture/capture_support.c:352:49: warning:
taking address of packed member of 'struct rtems_capture_task_record'
may result in an unaligned pointer value [-Waddress-of-packed-member]

352 | ctrace_task_name_add (rec_out->task_id, &task_rec.name);

| ~

(No files)

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