doesn't compile with GCC 4.6

Bug #775460 reported by Marc Plano-Lesay
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
burg
New
Undecided
Unassigned

Bug Description

With GCC 4.6, the bzr trunk doesn't compile due to unused variable warnings :
/tmp/yaourt-tmp-marc/aur-burg-bzr/src/burg/efiemu/main.c: In function ‘grub_efiemu_prepare’:
/tmp/yaourt-tmp-marc/aur-burg-bzr/src/burg/efiemu/main.c:288:14: erreur: variable ‘err’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Tags: gcc4.6
Revision history for this message
Aivis (ap1821) wrote :

same issue with me running fedora 15 x86_64

Revision history for this message
Kyle Reid (reidk) wrote :

Same issue with a fresh install of Fedora 15 x86_64 trying to compile with gcc version 4.6.1

Revision history for this message
Patrick Shehan (adeligen-deactivatedaccount) wrote :

Having this issue as well, Fedora 15 x86_64 with gcc version 4.6.1

Revision history for this message
Marc Plano-Lesay (kernald) wrote :

Here's a patch to solve all the warnings reported by gcc 4.6 (at least for -Werror compiled sections).

Revision history for this message
Ben Shadwick (benshadwick) wrote :

You can also work around this by disabling the treatment of warnings as errors, via a parameter to the configure script:

./configure --disable-werror
make

This is safe to do if the only warnings you're seeing during the make are "variable 'whatever' set but not used" because those warnings are completely innocuous.

Revision history for this message
Marc Plano-Lesay (kernald) wrote :

As you said, it's only a workaround. The real problem is the presence of warnings, which can be corrected (see the patch).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.