[lxc-users] Failure to compile with gcc 4.9.0 due to -Werror=maybe-unitialized

Leonid Isaev lisaev at umail.iu.edu
Wed Jun 18 02:21:47 UTC 2014


Hi,

On Tue, Jun 17, 2014 at 03:44:23AM +0000, Serge Hallyn wrote:
> Date: Tue, 17 Jun 2014 03:44:23 +0000
> From: Serge Hallyn <serge.hallyn at ubuntu.com>
> To: lxc-users at lists.linuxcontainers.org
> Subject: Re: [lxc-users] Failure to compile with gcc 4.9.0 due to
>  -Werror=maybe-unitialized
> User-Agent: Mutt/1.5.21 (2010-09-15)
> 
> 
> The compiler is being stupid, but if it's causing you trouble feel
> feel free to send a patch to initialize saveptr to NULL.
> 

I am attaching the patch which fixes the build for me. I'm not sure that you
want to apply it though, given that only Archlinux seems to be affected at the
moment...

Thanks,
-- 
Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bdev.c-initialize-a-pointer-to-avoid-build-failures-.patch
Type: text/x-diff
Size: 814 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140617/8fe5162f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140617/8fe5162f/attachment.sig>


More information about the lxc-users mailing list