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



On Fri, Nov 18, 2011 at 3:00 AM, Idan Levin <idan ilt co il> 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]