From: Andrii Nakryiko > Sent: 07 February 2019 17:50 > > Few files in libbpf are using bzero() function (defined in strings.h header), > but > don't include corresponding header. When libbpf is added as a dependency to > pahole, > this undeterministically causes warnings on some machines: > > bpf.c:225:2: warning: implicit declaration of function ‘bzero’ > [-Wimplicit-function-declaration] > bzero(&attr, sizeof(attr)); > ^~~~~
Wouldn't it be better to change these to the more portable memset()? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)