HomeFreeBSD

silence cast-align warnings from clang on powerpc64

Description

silence cast-align warnings from clang on powerpc64

silence the following warning when compiling libthr with clang 8
for powerpc64 architecture:

usr/src/lib/libthr/arch/powerpc/include/pthread_md.h:82:10: error:
cast from 'uint8_t *' (aka 'unsigned char *') to 'struct tcb *'
increases required alignment from 1 to 8 [-Werror,-Wcast-align]
82: return ((struct tcb *)(_tp - TP_OFFSET));

Submitted by: alfredo.junior_eldorado.org.br
Reviewed by: git_bdragon.rtk0.net, emaste, kib, jhibbits, luporl
Differential Revision: https://reviews.freebsd.org/D18807

Details

Committed
luporlFeb 13 2019, 6:28 PM
Reviewer
git_bdragon.rtk0.net
Differential Revision
D18807: silence cast-align warnings from clang on powerpc64
Parents
rS344108: Implement per-CPU pmap activation tracking for RISC-V.
Branches
Unknown
Tags
Unknown