Re: mrp-resource.c:594:11: error: variable 'task' set but not used [-Werror=unused-but-set-variable]

Alexandre Franke <[email protected]> Fri, 18 Nov 2011 11:45:56 +0100
Newsgroups gmane.comp.gnome.apps.planner.devel
Message-ID <CAJ-e=JCYhm2j6MTpjLrRcM_C_bjpd1P=xOsmgzRVWjjbLMe-0g@mail.gmail.com>
On Fri, Nov 18, 2011 at 3:00 AM, Idan Levin <idan-CNOLBb2W6wpmR6Xm/[email protected]> wrote:
> Hey

Hi,

> I downloaded the latest version from the git repository and I got this
> error:
> mrp-resource.c:594:11: error: variable 'task' set but not used
> [-Werror=unused-but-set-variable]

Yes, we are aware of that. There is a bug report
(https://bugzilla.gnome.org/show_bug.cgi?id=662063) with two patches
that are currently being reviewed and should land in git soon.

This is caused by GCC becoming stricter and introducing
-Wunused-but-set-variable in latest versions, as can be seen in
http://lists.debian.org/debian-devel-announce/2011/02/msg00012.html

In the meantime, you can compile with -Wno-unused-parameter to disable
the check.

-- 
Alexandre Franke