[dpdk-dev] [PATCH 7/7] eal: improve musl compatibility
Bruce Richardson
bruce.richardson at intel.com
Wed Aug 29 14:40:38 CEST 2018
On Wed, Aug 29, 2018 at 01:39:26PM +0100, Bruce Richardson wrote:
> On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote:
> > Musl complains about pthread id being of wrong size. Fix it by
> > casting to 64-bit and printing 64-bit hex unconditionally.
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> > ---
> Given that on linux pthread_t is a pointer type, will this not give other
> warnings of casting from pointer to integer of a different type when
s/type/size/
> compiling 32-bit? For safety I suggest casting to long or uintptr_t
> instead, to ensure we always get an int of the right size.
>
> /Bruce
More information about the dev
mailing list