[PATCH] GCC 4.5 warning case value ‘4294967295’ not in enumerated type ‘PartitionScheme’
marti at juffo.org
Wed Oct 20 09:27:39 PDT 2010
Since nobody responded the last time, I am resending this patch as-is.
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.
If you don't think this is the right way to go about this, I'm open to
suggestions; I'm willing to do extra work to get this fixed.
On Wed, May 19, 2010 at 22:03, Marti Raudsepp <marti at juffo.org> wrote:
> When building the current UDisks version from git I get the following error:
> make: Entering directory
> cc1: warnings being treated as errors
> partutil.c: In function ‘part_add_change_partition’:
> partutil.c:1459:5: error: case value ‘4294967295’ not in enumerated
> type ‘PartitionScheme’
> The fix (below) is quite simple, but I don't know if it's the right
> way to go about this... Adding PART_TYPE_UNKNOWN to the enumeration
> seemed like an overkill for this one-off case.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 961 bytes
Desc: not available
More information about the devkit-devel