[PATCH] GCC 4.5 warning case value ‘4294967295’ not in enumerated type ‘PartitionScheme’

Martin Pitt martin.pitt at ubuntu.com
Thu Oct 21 00:39:50 PDT 2010


Hello Marti,

Marti Raudsepp [2010-10-20 19:27 +0300]:
> Since nobody responded the last time

Ah, sorry about that. Must have gotten lost in the stack.

> I am still hitting this problem when building latest git version with
> GCC 4.5.1. Normally this would be a warning, but since udisks builds
> with -Werror by default, it breaks the build.

Thanks for pointing this out, I can reproduce that with gcc 4.5. I did
this a little differently, which I consider a cleaner approach:

  http://cgit.freedesktop.org/udisks/commit/?id=5d07c97811138fa1542dd09f3178dad812b81a23

After that I got another warning about an uninitialized variable,
fixed as well in

  http://cgit.freedesktop.org/udisks/commit/?id=dd48c454f14b6063f8584631f04bf4528969a82b

Now udisks git head builds fine with gcc 4.5.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20101021/44789934/attachment.pgp>


More information about the devkit-devel mailing list