> Hi!
> 
> Since this was committed (r272247), I've noticed a failure to build
> glibc-2.29 for aarch64:
> #'target_mem_ref' not supported by expression#'pmap_rmt.c: In function
> 'clnt_broadcast':
> pmap_rmt.c:298:19: error:  may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>   298 |    baddr.sin_addr = addrs[i];
>       |    ~~~~~~~~~~~~~~~^~~~~~~~~~
> 
> while compiling sunrpc/pmap_rmt.os

It is hard to tell w/o preprocessed source, but looking at
https://github.com/lattera/glibc/blob/master/sunrpc/pmap_rmt.c addrs is
initialized by getbroadcastnests which has early exit when getifaddrs
fails leaving adds uninitialized. So this may be just an usual false
positive of -Wmaybe-uninitialized caused by better optimization :)

Honza
> 
> Christophe
> 
> 
> 
> > Honza

Reply via email to