[PATCH] GCC 4.5 warning case value ‘4294967295’ not in enumerated type ‘PartitionScheme’
Marti Raudsepp
marti at juffo.org
Wed Oct 20 09:27:39 PDT 2010
Hi,
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.
Regards,
Marti
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[4]: Entering directory
> `/usr/src/builds/udisks-git/src/udisks-build/src/helpers'
> [...]
> 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...
Name: 0001-partutil.c-Avoid-GCC-4.5-error-with-case-1-statement.patch
Type: text/x-patch
Size: 961 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20101020/ccac71b0/attachment.bin>
More information about the devkit-devel
mailing list