summaryrefslogtreecommitdiff
path: root/testsuites/libtests/dl10/dl10-o6.c
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-10-05 16:20:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-10 15:02:56 +0200
commit59d0e6aed1efea068cea13651dc1d2b7c2809fc0 (patch)
tree0c4de89138ff6dee9978a0bfd0307b0a6421245c /testsuites/libtests/dl10/dl10-o6.c
parent3bbd47638f7e2d79147e9040291061feabbc7f85 (diff)
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); | ^~~~~~~~~~~~~~
Diffstat (limited to 'testsuites/libtests/dl10/dl10-o6.c')
0 files changed, 0 insertions, 0 deletions